11 2022 档案
摘要:C++中关于count的用法总结 下面是关于字符串中count的两种用法,STL容器,数组的用法类似 #include <iostream> #include <string> #include <algorithm> //count using namespace std; int main()
阅读全文
摘要:OJ简单的一个问题-输出表格 第一行输入两个整数n, m,分别表示要输出的方格行数和列数,方格的行为"±–+"列为’|’ 输出为n行m列的方格 代码如下: #include <iostream> #include <string> using namespace std; int main() {
阅读全文