- 博客(2)
- 收藏
- 关注
原创 笔记 枚举变量的值
#include using namespace std;int main(){enum string{ x1, x2, x3=10, x4, x5, } x;cout 输出结果:x1=0 x2=1 x4=11 x5=12 x=0-----------------------
2017-04-05 22:38:00
379
原创 笔记 sizeof 字符串数组 数组 函数传值
#include using namespace std;int main(){int a,b,c,d[10],e;char str1[10]={'a','b','c'};char str2[3]={'a','b','c'};char str3[]="abc defg";a=sizeof(str1);b=sizeof(str2);c=sizeof(d[10]);
2017-04-05 22:28:14
287
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人