- 博客(12)
- 收藏
- 关注
原创 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
320
原创 Python集合
Python 集合用法集合(set)是一个无序的不重复元素序列。可以使用大括号 { } 或者 set() 函数创建集合,注意:创建一个空集合必须用 set() 而不是 { },因为 { } 是用来创建一个空字典。>>>basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'}>>>...
2019-09-04 16:27:04
229
原创 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
294
原创 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
195
原创 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
164
原创 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
219
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人