使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
binhong
/
TicketingSystem
镜像自地址
https://github.com/binhonglee/TicketingSystem
关注
1
点赞
0
派生
0
代码
工单
0
版本发布
0
百科
动态
浏览代码
Person empty constructor
Empty constructor for Person is being declared.
Fixing-travis-yml
BinHong Lee
8 年前
父节点
c5d712babe
当前提交
570ac37bac
共有
3 个文件被更改
,包括
11 次插入
和
0 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+2
-0
LogInSystem.cpp
+8
-0
Person.cpp
+1
-0
Person.h
+ 2
- 0
LogInSystem.cpp
查看文件
@@ -6,6 +6,7 @@
#include <iostream>
#include <string>
#include <fstream>
#include "Person.cpp"
using namespace std;
int getUsernameCounter(string, int);
@@ -20,6 +21,7 @@ void chgPhoneNo();
void quit();
const int size = 10000;
Person person[size];
string username[size];
string password[size];
string email[size];
+ 8
- 0
Person.cpp
查看文件
@@ -2,6 +2,14 @@
#include "Person.h"
using namespace std;
Person::Person()
{
name = "unknown";
password = "";
email = "unknown";
phoneNo = "555-5555";
}
Person::Person(string name, string password, string email, string phoneNo)
{
this->name = name;
+ 1
- 0
Person.h
查看文件
@@ -11,6 +11,7 @@ class Person
string phoneNo;
public :
Person();
Person(string, string, string, string);
void setName(string);
string getName();
撰写
预览
正在加载...
取消
保存