摘要:
知乎 博客园 csdn blog static还有另外一个用途,它可以限制文件的使用域 阅读全文
posted @ 2022-03-30 20:11
兮何其
阅读(23)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <cstring> #include <algorithm> using namespace std; int main() { char s[100]; string S; cin.getline(s,10); S=s; cout<<s<< 阅读全文
posted @ 2022-03-30 11:49
兮何其
阅读(90)
评论(0)
推荐(0)
摘要:
1、put()函数 cout.put(单字符/字符形变量/ASCII码); 2、get()函数 get()函数在读入数据时可包括空白符,而提取运算符“>>”在默认情况下拒绝接收空白字符。 cin.get(字符型变量) 3、getline()函数 cin.getline(字符数组, 字符个数n, 终止 阅读全文
posted @ 2022-03-30 10:33
兮何其
阅读(39)
评论(0)
推荐(0)
摘要:
#define Max(x, y)((x >= y) ? x : y)//Max(x,y) 返回x和y的最大值,x,y的类型不确定 阅读全文
posted @ 2022-03-30 10:16
兮何其
阅读(11)
评论(0)
推荐(0)

浙公网安备 33010602011771号