Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #44.3K
Ranked #3K
~665 People Reached
Favorite Forums
Favorite Tags
c x 4

3 Posted Topics

Member Avatar for shanki himanshu

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, …

Member Avatar for Kamatari
-8
139
Member Avatar for onus

[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 *’, …

Member Avatar for lvl99
0
401
Member Avatar for iwanttolearnc

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() == …

Member Avatar for iwanttolearnc
0
125

The End.