?? vc0301.cpp
字號:
// Example 3.1:將大寫字母轉換為小寫字母
#include <iostream.h>
int mylower(int ch)
{
if(ch>='A' && ch<='Z')
ch = ch-'A'+'a';
return ch;
}
void main()
{
char s[] = "HELLO, C!";
int i = 0, c;
while(s[i]!=0)
{
c = s[i];
s[i]=mylower(c);
i = i+1;
}
cout<<s<<endl;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -