No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
The easiest game that I can think of is wheel of fortune. I'm assuming that your teacher wants console application. Create a text that contains several common phrases. Upon start up of the program a phrase is selected at random. Then the user is prompted to guess the phrase. Well, …
[QUOTE]Can some one help to understand why am I getting warning in above code?[/QUOTE] What compiler are you using? Because that makes a difference. I just compiled your source with the gcc compiler and got these warnings: [CODE] test.c: In function ‘main’: test.c:12: warning: format ‘%s’ expects type ‘char *’, …
I'm not sure, If I'm actually helping since I'm still learning c myself. What I would suggest is that you test for 'p' before executing the loop. [B]This is your code:[/B] [CODE] if (!(strcmp(userinput, led))){ //condition 1 for(howlong = 0; howlong++ < 0xFF; howlong++){ //condition 2 blink(); if (getch() == …
The End.
lvl99