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

📄 main.cpp

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

#define MAX_LEN 1024
class CLock
{
private:
	//* * 1 * *

	static char key[32];
public:
	void Load(istream& in,bool isSource = true)
	{
		//* * 2 * *
		
	}
	void Show(ostream& out,bool isSource = false)
	{
		if( isSource)
		{
			out<<s;
		}
		else
		{
			out<<d;
		}
	}
};

char CLock::key[32]=
{
	'c','a','z','b','s','q','z','e',
	'b','h','u','i','o','p','r','s',
	'z','a','d','f','g','h','j','r',
	'i','m','n','u','t','u','e','b'
};
void main()
{
	CLock obj;
	cout<<"please input a string: ";
	//* * 3 * *
	

	//save to abc.txt
	ofstream fp;
	fp.open("abc.txt");
	obj.Show(fp);
	fp.close();

	//load file abc.txt
	ifstream fp2;
	fp2.open("abc.txt");
	obj.Load(fp2,false);

	//* * 4 * *
	

}

⌨️ 快捷键说明

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