forked from ASD-ADF/ASD_Task_3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
my_data.h
36 lines (30 loc) · 762 Bytes
/
my_data.h
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
31
32
33
34
35
36
#ifndef MY_DATA_H_INCLUDED
#define MY_DATA_H_INCLUDED
#include <iostream>
using namespace std;
/**
CLASS : IF - 43 - 05
NAME : Hassan Rizky Putra Sailellah
STUDENT ID : 1301190328
**/
struct mytype {
/**
TODO: create a new Data type with specification:
- an integer variable acted as an ID
- string name
- integer rank
- float score
*/
//=================================================
// YOUR CODE STARTS HERE
int ID;
string name;
int rank;
float score;
// YOUR CODE ENDS HERE
//=================================================
};
mytype create_data();
void view_data(mytype d);
void edit_data(mytype &d);
#endif // MY_DATA_H_INCLUDED