本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
binhong
/
TicketingSystem
镜像来自
https://github.com/binhonglee/TicketingSystem
關注
1
收藏
0
複製
0
程式碼
問題
0
版本發佈
0
Wiki
活動
瀏覽代碼
Person empty constructor
Empty constructor for Person is being declared.
Fixing-travis-yml
BinHong Lee
8 年之前
父節點
c5d712babe
當前提交
570ac37bac
共有
3 個檔案被更改
,包括
11 行新增
和
0 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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();
Write
Preview
Loading…
取消
儲存