摘要: strcmp:C++自带函数 字典序 strcpy:交换顺序 getline: 本质上有两种getline函数,一种在头文件中,是istream类的成员函数。一种在头文件中,是普通函数。 在中的getline函数有两种重载形式: 作用是从istream中读取至多n个字符保存在s对应的数组中。即使还没 阅读全文
posted @ 2019-12-07 11:26 orange_lyc 阅读(140) 评论(0) 推荐(0)
摘要: 1 #include<cstdio> 2 #include<iostream> 3 #include<cstring> 4 using namespace std; 5 char ch, letter[101]; 6 int i=1; 7 int main() 8 { 9 printf("Input 阅读全文
posted @ 2019-12-07 09:44 orange_lyc 阅读(115) 评论(0) 推荐(0)
摘要: 1 #include<cstdio> 2 using namespace std; 3 const int maxn=11; 4 int a[maxn][maxn]; 5 int n, x, y, tot; 6 int main() 7 { 8 scanf("%d", &n); 9 tot = a[ 阅读全文
posted @ 2019-12-07 09:13 orange_lyc 阅读(161) 评论(0) 推荐(0)