?? cat.cpp
字號:
#include <iostream.h>
class Cat //declare the calss object
{
public: //members which follow are public(others can access it)
int itsAge;
int itsWeight;
};
void main()
{
Cat Mesho;
Mesho.itsAge= 5; //assign 5 to itsAge
cout<<"Mesho is a cat who is " <<Mesho.itsAge<<" years old. \n";
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -