im trying to write a number guessing game in C, when trying to run this program i got the following error:Code:#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int guess = -1; int num = 0; int answer; int i; unsigned seed; printf{"Enter seed:\n"); scanf("%d",&seed); srand(seed) for(i=1;i<=1000,i++); { answer = rand() % 100 + 1; while ( guess != answer ) { num++; printf("Enter guess %d: ",num); if ( guess < answer ) printf("Too high,try again\n"); if ( guess > answer ) printf("Too low,try again\n"); } printf("Correct! you guessed the number!\n\n",num); } return 0; }
expression evaluates to a function which is missing an argument list
expression evaluates to a function which is missing an argument list
what does that mean and how should i fix it?



LinkBack URL
About LinkBacks



