- 博客(1)
- 收藏
- 关注
原创 学习C++复合数据类型
String 类型char str[20]; //strlen(str)的长度不一定是20cin.getline(str,20); //读入一行输入(cin是iostream类的一个对象,getline()是iostream类的一个类方法)使用R来标识原始字符串cout<<R"(Tom is handsome,\n"this is wrong".)"<<'\n';//运行结果:Tom is handsome,\n"this is wrong".C++结构体#
2020-12-30 17:24:54
219
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人