Website Summary Files Commits Branches @commit @diff @stats
path: root / Week02 / Exercise03 / intarray.h
blob: 9f1c0b03cb520c0e1b3ab638d8529e6f48495fde (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef _INTARRAY
#define _INTARRAY

struct IntArray {
	unsigned size;
	int* elems;

	void deleteSelf();
	int sum();
};

IntArray newIntArray(unsigned size);
void deleteIntArray(IntArray& arr);

#endif