.cpp - Dev-C++ 5.11
專案(P) 執行(2) 工具T) AStyle 混密W) 求助(日)
口回贈
TDM-GCC 4.9.2 64-bit Re
**#1.cpp [*] 1.xl#2.cpp hw10_20.c
3 int main()
4日{
5
6
7
8
9自
10
11白
char *ptr[3]={ "Tom", "Lily", "James Lee"};
int total=0, count;
=,;
for(int i=0;i<3;i++)
puts(ptr[i]);
for(int i=0;i<3; i++){
count=0;
=;
while(*(ptr+count)!='\0'){
count++;
;
}
count++;
total=total+count;
}
printf("#%d(MRITT\n", total*sizeof(char));
12
13
14
15
16
17
18
19
system("pause");
return 0;
20
而j 吕歇腳踏
除鐘回覆尋結果 小化
訊息
\\" #
=r\Desktop\新文件2.cpp
\Desktop\新文件2.cpp
er\Desktop\fi+2.cpp
=\Desktop\新文件2.cpp
In function 'int main()':
[Warning] deprecated conversion from string constant to char*' [-Wwrite-strings]
[Warning) deprecated conversion from string constant to 'char* [-Wwrite-strings]
[Warning] deprecated conversion from string constant to 'char*' [-Wwrite-strings]
反白字数:
0
总行数:
21
程案長度: 362
插入模式
完成解析(花了0.016 秒)