?? intro29.cpp
字號:
//INTRO29.CPP--Example from Chapter 3, "An Introduction to C++"
#include <iostream.h>
#include <string.h>
int main()
{
char string[80]; // Has 79 usable elements
int pos, num_chars;
cout << "Enter a string for the character array: ";
cin.get(string,80,'\n');
cout << "How many characters do you want to extract? ";
cin >> num_chars;
for (pos = 0; pos < num_chars; pos++)
cout << string[pos];
cout << '\n';
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -