上一页 1 ··· 6 7 8 9 10
摘要: 在编写的c++程序中,如果是窗口,有时会一闪就消失了,如果不想让其消失,在程序结尾处添加: system("pause"); 注意:不要再return 的语句之后加,那样就执行不到了。 分析: system() 是调用系统命令;pause 暂停命令; 这样在运行到此处时,会显示“Press any 阅读全文
posted @ 2016-11-17 09:10 PirateLHX 阅读(1566) 评论(0) 推荐(0)
摘要: clear:清空字符串 std::string::erase 原型:string& erase (size_t pos = 0, size_t len = npos); 说明:删除源字符串以下标为pos开始的len个字符,返回修改后的字符串。 原型:iterator erase (const_ite 阅读全文
posted @ 2016-11-17 08:58 PirateLHX 阅读(444) 评论(0) 推荐(0)
摘要: #include #include #include #include #include #include #include #include #include #include #include #include 阅读全文
posted @ 2016-11-17 08:38 PirateLHX 阅读(100) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2016-11-16 23:59 PirateLHX 阅读(4) 评论(0) 推荐(0)
摘要: #include using namespace std; int main() { int N,M; char comd; int p,q; cin>>N>>M; int gpa[N]; int max; for(int i=0;i>gpa[i]; for(int t=0;t>comd>>p>>q; if(comd=='Q... 阅读全文
posted @ 2016-11-16 23:54 PirateLHX 阅读(83) 评论(0) 推荐(0)
摘要: #include #include using namespace std; int main() { string s; int i,j; string result=""; cin>>s; int len=s.length(); int a[len]; for(i=0;i<len;i++) a[i]=1; fo... 阅读全文
posted @ 2016-11-16 23:54 PirateLHX 阅读(143) 评论(0) 推荐(0)
摘要: #include #include using namespace std; int convert(char a) { int flag=-1; if(a=='A'||a=='B'||a=='C'||a=='2') flag=2; if(a=='D'||a=='E'||a=='F'||a=='3') flag=3; if(a=='G'||... 阅读全文
posted @ 2016-11-16 23:52 PirateLHX 阅读(132) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10