📄 site.cpp
字号:
// Site.cpp : implementation file
//
#include "stdafx.h"
#include "pheiFTP.h"
#include "Site.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSite
CSite::CSite()
{
}
CSite::~CSite()
{
}
BEGIN_MESSAGE_MAP(CSite, CWnd)
//{{AFX_MSG_MAP(CSite)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSite message handlers
void CSite::Empty()
{
strcpy(name,"");
strcpy(server,"");
strcpy(user,"");
strcpy(password,"");
strcpy(port,"");
}
void CSite::Copy(CSite & dsite)
{
strcpy(dsite.name,name);
strcpy(dsite.server,server);
strcpy(dsite.user,user);
strcpy(dsite.password,password);
strcpy(dsite.port,port);
}
bool CSite::sitecmp(CSite &cmps)
{
if(strcmp(cmps.name,name)==0)
{
AfxMessageBox("The site already exists!");
return false;
}
else
return true;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -