文章列表
string类的构造函数
摘要: #include<iostream> #include<string.h> using namespace std; int main(int argc, char const *argv[……
string类的加减操作以及find函数
摘要: #include<iostream> #include<string.h> #include<cmath> #include<cctype> using namespace std; i……
对字母字符串进行排序
摘要:#include<iostream>#include<cstring>using namespace std;int main(int argc, char const *argv[]) { cha……
DNA:打印类似DNA的图形,这种题主要找规律
摘要:#include<iostream>using namespace std;int main(int argc, char const *argv[]) { int N; cin>>N; ……
计算int数的各个数加起来的和
摘要:#include <iostream>//方法一#include <cmath>using namespace std;long long n;//long long代表他是64位int main……
很多人围成一圈,叫号,叫到某固定号出去。这里提供两种方法,希望可以理解。
摘要:#include<iostream>using namespace std;void fenxi(int n,int m){ int a[1000],s,num=0,i=0; for(i=0;i<……
利用递归函数寻找最大路径的方法,例题来自p1004
摘要:#include<iostream>#include<cstdio>using namespace std;int a[1001][1001],b[1001][1001];//a数组表示这个位置的高度……
getline() 与get()两个函数的异同
摘要:#include<iostream>
#include<cstdio>
#include<string>
#include<vector>
using namespace std;
cons……