⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cpp

📁 this a good book.
💻 CPP
字号:
#include<iostream.h>
#include<fstream>
#include<iomanip>
#include<cmath>
using namespace std;


void WriteFile(int x)
{
	ofstream out1;
// * * 1 * * 
	out1.open("out3.txt",  );
	out1 << x << ' ';
    out1.close();
}

void ClearFile()
{
	ofstream out1;
	out1.open("out3.txt");
    out1.close();
}
class Sample
{
public:
	void disp()
	{
		cout << "m=" << m << endl;
		WriteFile(m);
		cout << "n=" << n << endl;
		WriteFile(n);
	}
// * * 2 * * 
	
};

	void main()
	{
// * * 3 * *
		
		
		ClearFile();
		Sample a;
	    a.*p=30;
// * * 4 * *
		
		a.*p=45;
		a.disp();
	}

⌨️ 快捷键说明

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