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

📄 cbackupframe.cpp

📁 AA制消费管理系统 要深入学习C++面向对象编程的同学可以看看。
💻 CPP
字号:
#include "CBackUpFrame.h"
#include "interface.h"
#include "check_empty.h"
#include "CPrintMessage.h"
#include "data_cmp.h"
#include "CDelSpace.h"
#include <windows.h>
#include "CFile.h "

void CBackUpFrame ::printBackUpFrame()
{
	CFile file;
	string path;
	system("cls");
	 CInterface::printTitle("Back Up To File");
	while( ( (path=pathInputCtrl()) =="0" )          );
	if(file.backUpData(path)==true)
	{
	
		cout<<"save successful!!";

		system("pause");
	}

}
//////////////////////////////////////
string  CBackUpFrame::pathInputCtrl()
{
	string path_temp;
	cout<<endl<<"please input the path :";
	char str_temp[1024];
	cin.get(str_temp,1024);
	cin.clear();
	cin.ignore(1024,'\n');
	path_temp=str_temp;
			
	if(!(Cchcek_empty::check_empty(path_temp)==1))
	{
		CPrintMessage::printMessage(Cchcek_empty::check_empty(path_temp));
		system("pause");
		return "0";
					
	}
	else
	{
		CDelSpace::delSpace(path_temp);
		if(!(C_check_cmp::checkFileName(path_temp)==1))
		{
			CPrintMessage::printMessage(C_check_cmp::checkFileName(path_temp));
			system("pause");
			return "0";
		}
		else
		{	
			return path_temp;

		
		}
	}



}

⌨️ 快捷键说明

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