ch03.04.c
来自「C++ Primer(第三版)的随书源代码」· C语言 代码 · 共 22 行
C
22 行
// #include <iostream>
#include <iostream.h>
const char *st = "The expense of spirit\n";
/**
** 22:
**/
int main()
{
int len = 0;
// oops: this advances st until it addresses
// the terminating null of the string
while ( *st++ ) ++len;
cout << len << ": " << st << endl;
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?