Think Different Tugas ASD Siskom: Rabu 20 Maret 2013 .

TUGAS ASD (RABU 20 Maret 2012)
ALOKASI MEMORI DINAMIS PADA STRUCT


Contoh Program struct tanpa malloc()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

17
18
19
20



#include
#include
struct motor{
float amps;
float volts;
};
typedef struct motor motor;
int main()
{
motor m;
m.volts = 4.5;
m.amps = 6;
cout