cpp24.cpp
来自「C++参考书」· C++ 代码 · 共 24 行
CPP
24 行
// Coded by plusir -- Dec.28.2002.
// Standard C++ Bible -- (P189-6-24)
#include <iostream>
using namespace std ;
char *names[] = { "Bill", "Sam", "Jim", "Paul", "Charles", "Donald", NULL } ;
void displayNames( char **nm )
{
if ( *nm != 0 ) {
displayNames( nm + 1 ) ;
cout << *nm << endl ;
}
}
int main()
{
displayNames( names ) ;
return 0 ;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?