forked from ASD-ADF/ASD_Task_2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmy_data.h
More file actions
39 lines (32 loc) · 811 Bytes
/
my_data.h
File metadata and controls
39 lines (32 loc) · 811 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
31
32
33
34
35
36
37
38
39
#ifndef MY_DATA_H_INCLUDED
#define MY_DATA_H_INCLUDED
#include <iostream>
using namespace std;
/**
CLASS : IF-40-INT
NAME : Randy Kustiwa Koesma
STUDENT ID : 1301162472
**/
struct mytype {
typedef int number;
typedef string nmc;
typedef float real;
number nim;
nmc nama;
nmc kelas;
real berat;
/**
TODO: create a new Data type with specification:
- an integer variable acted as an ID
- two other variables
- a float variable
*/
//=================================================
// YOUR CODE STARTS HERE
// YOUR CODE ENDS HERE
//=================================================
};
mytype create_data();
void view_data(mytype d);
void edit_data(mytype &d);
#endif // MY_DATA_H_INCLUDED