摘要: #include<iostream> #include<cstring> #include<algorithm> #include<vector> using namespace std; int g[510][510]; int num[510]; int dist[510]; int st[51 阅读全文
posted @ 2023-03-16 20:17 youngbrooke 阅读(124) 评论(0) 推荐(0)
摘要: scanf("%s", a) 对于char型数组使用 读取一串字符,遇到空格停止 gets(a) 对于char型数组使用 读取一行字符,并且需要注意使用 gets() 时,系统会将最后“敲”的换行符从缓冲区中取出来,然后丢弃,所以缓冲区中不会遗留换行符。这就意味着,如果前面使用过 gets(),而后 阅读全文
posted @ 2021-10-25 22:05 youngbrooke 阅读(649) 评论(0) 推荐(0)