随笔分类 -  STL-string

摘要:Problem Description 夏天来了~~好开心啊,呵呵,好多好多水果~~ Joe经营着一个不大的水果店.他认为生存之道就是经营最受顾客欢迎的水果.现在他想要一份水果销售情况的明细表,这样Joe就可以很容易掌握所有水果的销售情况了. Input 第一行正整数N(0<N<=10)表示有N组测 阅读全文
posted @ 2021-01-15 12:36 月亮茶 阅读(50) 评论(0) 推荐(0)
摘要:Problem Description Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is gues 阅读全文
posted @ 2021-01-15 10:36 月亮茶 阅读(44) 评论(0) 推荐(0)
摘要:来自https://www.cnblogs.com/jm-Xu/p/9318705.html string(s小写)是C++标准库中的类,纯C中没有,使用时需要包含头文件#include<string> 1 string的定义及初始化 2 string s1 = "hello"; //初始化字符串 阅读全文
posted @ 2019-11-10 20:59 月亮茶 阅读(1700) 评论(0) 推荐(3)
摘要:1.读取char[] 1 char s[1000000]; 2 int l; 3 1. 4 scanf("%[^\n]",s); 5 /*说明:在scanf函数中,可以使用%c来读取一个字符,使用%s读取一个字符串, 6 但是读取字符串时不忽略空格,读字符串时忽略开始的空格, 7 并且读到空格为止, 阅读全文
posted @ 2019-10-12 15:19 月亮茶 阅读(1027) 评论(0) 推荐(0)