-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstate.h
More file actions
30 lines (23 loc) · 686 Bytes
/
state.h
File metadata and controls
30 lines (23 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include <cstring>
#include <fstream>
#include <iostream>
class State
{
private:
int stateId, seats;
char stateName[25];
public:
State();
State(const char *sName);
void getStateInfo();
void showStateInfo() const { std::cout << stateName << std::endl; }
int getSeats() const { return seats; }
void setSeats(int x) { seats = x; }
int getstateId() const { return stateId; }
void setstateId(int id) { stateId = id; }
std::string getstateName() const { return stateName; }
void setstateName(const char *sName) { strcpy(stateName, sName); }
void storeState();
void getStates(int x);
};