📄 11i.cpp
字号:
// Capitalize.cpp A program to input a word and output the capitalization#include <iostream>#include <string>#include <ctype.h>using namespace std;void (main){ string word; cout << "enter word to be capitalized: " ; cin >> word; if (islower(word[0])) word[0] = toupper(word[0]); cout << "capitalized word is: " << word << endl;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -