c - I can't figure out why a for loop doesn't compile -


When I'm trying to compile this program, I get two errors: a

< Pre-class = "Lang-none-pretty-print-override"> main.c: 34: 24: error: 'Expected expression before') 'token

and others Having:

  main.c: 34: 24 Error: Expected ';' First ')' token (i = 0, i  

This is my code:

Header:

  #ifndef HEADER1 # defined Include HEADER1 # & lt; Stdlib.h & gt; # Include & lt; Stdio.h & gt; # Include & lt; Ctype.h & gt; #include & lt; String.h & gt; # Defined MAX_LEN 1024 # defined SP1 1 # SP2 2 zero eingabe_check (); Int spieler_check (int * r); #endif  

main.c:

  #include "header.h" zero eingabe_check () {} / * Überprüft welcher spiller is a der REE * / int spieler_check (int * r) {if (0 <(* r% 2)) Return SP1; ST2; } Main key (int argc, four * argv []) {if (argc & lt; 1) {exit; } Int a = 1, r = 1; Int * b = & amp; R; If (A & amp; R) {int game [MAX_LEN]; Int S, I; Switch (Spiller_check (B)) {Case 1: Case 2: Print ("% s ist an der reihe \ n", argv [Spiller_check (B)]); break; Default: Exit; } Scanf ("% i", game [R]); For (i = 0, i & lt; r, i ++) s + = game [i]; If (play [r]> 7 || game [r] == 0) printf ("s synd noor zahlen zuiline 0 and 7 elalmat \ n"); And if (s> = 21) printf ("& amp; GEWINNT !!", argv [speeller_check (b-1)]; Other R ++; } And exit; } Change the statement for  

(i = 0; i & lt ; R; I ++)


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -