?? 11-4.txt
字號:
/* 范例:11-4 */
#include <iostream.h>
#include <string.h>
void main(void)
{
char *str="steven";
cout.put('s'); // 使用put()成員函數(shù)輸出's'
cout << 'c' << 'a';
cout <<endl; /* endl結(jié)束輸出并換新行 */
cout.write(str,strlen(str)); /* write()輸出長度(strlen(str))的str字符串 */
cout << endl;
getchar();
}
程序執(zhí)行結(jié)果﹕
sca
steven
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -