摘要: 在编写的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)