自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 C#对于C++进行传参的类型修正

混合编程的参数传递1.有时候项目会要求不同语言所编译出来的文件进行联动工作,如C# 中将字符串/实数/整数等变量传送到.PY文件中,进行计算,就会涉及到参数传递2.我常用的方法是,先建立一个C++项目CPPDLL,在C++中调用python。2.1 由于Python文档中对于C++/C混合编程说明的很清晰。这部分我先鸽掉不写,可以先看这里.2.2 以及将C++中的变量传递到python中,...

2019-09-09 09:50:28 243

原创 Python集合

Python 集合用法集合(set)是一个无序的不重复元素序列。可以使用大括号 { } 或者 set() 函数创建集合,注意:创建一个空集合必须用 set() 而不是 { },因为 { } 是用来创建一个空字典。>>>basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'}>>>...

2019-09-04 16:27:04 166

原创 Rhyme Schemes

#include <cmath>#include <cstdio>#include <vector>#include <cstdlib>#include <cstring>#include <iostream>#include <algorithm>using namespace std;doubl

2019-01-22 15:50:43 233

原创 Matrix Chain Multiplication UVA - 442

#include <bits/stdc++.h>using namespace std;struct Matrix{    int m;    int n;    void setM(int m,int n)    {        this->m=m;        this->n=n;    }    bool prok(Matrix & ...

2018-12-04 22:53:10 139

原创 Rails UVA - 514

#include <bits/stdc++.h>using namespace std;stack <int> C;bool Judge(int a[],int n){    int k=0;    int i=1;    while(true)    {        if (i!=a[k])        {            if (!C.e...

2018-12-04 19:51:35 122

原创 51NOD 1005 大数加法

#include<iostream>  #include<string.h>  #include<stdio.h> #include <algorithm> using namespace std;  struct shu{ int x[13000]; int len; bool zheng; shu(){ memset(x,0,sizeof(in...

2018-06-03 16:48:52 158

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除