📄 pr06014.cpp
字号:
////////////////////////////////////////
// File Name: pr06014.cpp
////////////////////////////////////////
#include <iostream>
// An array of char pointers initialized with names.
char* Names[] =
{
"Bill",
"Sam",
"Jim",
"Paul",
"Charles",
"Donald",
0 // Null pointer to terminate array.
};
////////////////////////////////////////
// The main() function.
////////////////////////////////////////
int main()
{
// A pointer to a pointer.
char** nm = Names;
// Display the names.
while (*nm != 0)
std::cout << *nm++ << std::endl;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -