Advertisement
NoMatchFound

Array of structs: dinamic allocation (.h)

Dec 13th, 2011
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #ifndef DINALLOC_H
  2. #define DINALLOC_H
  3. #define N 255
  4.  
  5. typedef char str[N];
  6.  
  7. typedef struct {
  8.     str name;
  9.     int cnt;
  10. } hi;
  11.  
  12. int exist(hi*, int, str);
  13. void loadHistogram(hi*, int&);
  14. void printHistogram(hi*, int);
  15.  
  16. #endif // DINALLOC_H
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement