摘要: 对于一个(n,n)大小的矩阵,使得对角线上的元素全为x,其他元素都是y #include<iostream> #include<vector> using namespace std; int main() { const int n=20; int x=4; int y=2; int M[n][n 阅读全文
posted @ 2019-08-28 17:43 Wangtn 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 字符串操作 #include<iostream> #include<string> using namespace std; int main() { string name; cin>>name; cout<<"Hello ,"<<name<<endl; cout<<name.size()<<en 阅读全文
posted @ 2019-08-28 16:56 Wangtn 阅读(333) 评论(0) 推荐(0) 编辑