example8.cpp

来自「Advanced Internet Programming Lecture 2 」· C++ 代码 · 共 22 行

CPP
22
字号
#include <iostream>using namespace std;class myclass {  int a, b;public:  // automatic inline  void init(int i, int j) { a=i; b=j; }  void show() { cout << a << " " << b << "\n"; }};int main(){  myclass x;  x.init(10, 20);  x.show();  return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?