Title
摘要: C语言学习—strcpy()和strcat() 格式 strcpy(等待接收信息得字符数组(只需数组名),想要添加的字符串) strcat(被连接的字符串,连接别人的字符串) strcat返回的是指向被连接的字符串的指针 ##代码 #include<bits/stdc++.h> using name 阅读全文
posted @ 2021-05-12 19:54 BeautifulWater 阅读(287) 评论(0) 推荐(0) 编辑
摘要: c++语言学习-cin.fail() cin.fail:读取失败 ##代码 #include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; if(cin.fail()) cout<<"您的输入存在问题"; return 阅读全文
posted @ 2021-05-12 19:28 BeautifulWater 阅读(595) 评论(0) 推荐(0) 编辑