f0915.cpp
来自「it is a usefull thing」· C++ 代码 · 共 18 行
CPP
18 行
//=====================================
// f0915.cpp
// class conversion
//=====================================
#include<iostream>
using namespace std;
class Student{
string name;
public:
Student(const string& s):name(s){}
};//-----------------------------------
void fn(Student& s){ cout<<"ok\n"; }
//-------------------------------------
int main(){
fn(string("Jenny"));
}//====================================
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?