Advertisement
mfrankic

E

Apr 20th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.51 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. #ifndef DEBUG
  5. #define DEBUG(...) printf(__VA_ARGS__)
  6. #endif
  7.  
  8. // Napisati funkciju koja vraca broj stranica polihedrona
  9. int get_face_number(char word[]) {
  10. }
  11.  
  12. int main() {
  13.   char word[128];
  14.   int sum = 0;
  15.  
  16.   // Deklaracija i otvaranje datoteke
  17.   FILE *fp;
  18.   fp = fopen("input.dat", "r");
  19.  
  20.  
  21.   // Procitati sadrzaj datoteke i prebrojati broj stranica svakog polihedrona
  22.  
  23.  
  24.  
  25.   printf("%d\n", sum);
  26.  
  27.   // Zatvoriti datoteku
  28.   fclose(fp);
  29.  
  30.   return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement