阅读背景:

C++,类的拷贝构造函数,类的申明和实现分开写, 语法练习

来源:互联网 

 

// 类的申明和实现分开写在不同的文件中

main.cpp

// main.cpp
#include <iostream>
#include <string>
#include "student.h"
using namespace std;

int main(void)
{

	Student x1("柳絮飘",22,"学明路115号");	
	Student x2(x1);

// ----
     return 0;
}
// main.c



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: