IH8PunkRok Posted January 12, 2010 Author Report Share Posted January 12, 2010 (edited) What happens if you type an m at that point, and what happens if you type another character at that point? that^ *edit with that b! command it makes the first question come up again once the second is answered correctly Edited January 12, 2010 by IH8PunkRok Quote -Matt2005 Dodge Magnum RTJVC KD-AVX1 2 PPI S580.2 Obsidian Audio ST1 Horn Tweeters PRV 8MB450s Audio Legion 3500.1D 2 RE MT 18s 360 ah LiFePO4 BatterySHCA 2/0 155.2 @ 29 hzKicker CVR 15's buildDD 3512e buildMini T-Line Build(6) 8s BuildNightshade 15s Wall BuildMagnum AB XFL 12s BuildNewest Magnum Build Link to comment Share on other sites More sharing options...
bkolfo4 Posted January 12, 2010 Report Share Posted January 12, 2010 change the while statement to b != 'm' instead of b== 'all the letters'. When you input the m, the program should go back and ask you to input the opposite of 666 again, since 999 is less than 1000. It does not like the condition of that while statement. I thought you had to say while (b=='a' || b=='b' || b=='c' . . .etc. || is the OR statement. change it to b != 'm' and run it. Wish I had a C compiler. Brian Quote Current system: 1997 Blazer - (4) Customer Fi NEO subs with (8) American Bass Elite 2800.1s Previous systems: 2000 Suburban - (4) BTL 15's and (4) IA 40.1's = 157.7 dB at 37 Hz. 1992 Astro Van - (6) BTL 15's and (6) IA 40.1's = 159.7 dB at 43 Hz. Link to comment Share on other sites More sharing options...
IH8PunkRok Posted January 12, 2010 Author Report Share Posted January 12, 2010 i believe the program im using was free. its called bloodshed dev-c++ it did what you said it would Quote -Matt2005 Dodge Magnum RTJVC KD-AVX1 2 PPI S580.2 Obsidian Audio ST1 Horn Tweeters PRV 8MB450s Audio Legion 3500.1D 2 RE MT 18s 360 ah LiFePO4 BatterySHCA 2/0 155.2 @ 29 hzKicker CVR 15's buildDD 3512e buildMini T-Line Build(6) 8s BuildNightshade 15s Wall BuildMagnum AB XFL 12s BuildNewest Magnum Build Link to comment Share on other sites More sharing options...
bkolfo4 Posted January 12, 2010 Report Share Posted January 12, 2010 (edited) type 999 for the number, then m for the letter, then type in 555 for the number. Should ask for the number again without anything about the letter. When it does, type 1001. Want to see what the first loop does and if the program will actually end. Edited January 12, 2010 by bkolfo4 Quote Current system: 1997 Blazer - (4) Customer Fi NEO subs with (8) American Bass Elite 2800.1s Previous systems: 2000 Suburban - (4) BTL 15's and (4) IA 40.1's = 157.7 dB at 37 Hz. 1992 Astro Van - (6) BTL 15's and (6) IA 40.1's = 159.7 dB at 43 Hz. Link to comment Share on other sites More sharing options...
IH8PunkRok Posted January 12, 2010 Author Report Share Posted January 12, 2010 (edited) did that^ and the program ended. just shut itself btw thanks for the help man Edited January 12, 2010 by IH8PunkRok Quote -Matt2005 Dodge Magnum RTJVC KD-AVX1 2 PPI S580.2 Obsidian Audio ST1 Horn Tweeters PRV 8MB450s Audio Legion 3500.1D 2 RE MT 18s 360 ah LiFePO4 BatterySHCA 2/0 155.2 @ 29 hzKicker CVR 15's buildDD 3512e buildMini T-Line Build(6) 8s BuildNightshade 15s Wall BuildMagnum AB XFL 12s BuildNewest Magnum Build Link to comment Share on other sites More sharing options...
bkolfo4 Posted January 12, 2010 Report Share Posted January 12, 2010 did that^ and the program ended. just shut itself did you type 999 the first time or 666? I messed up when typing. Quote Current system: 1997 Blazer - (4) Customer Fi NEO subs with (8) American Bass Elite 2800.1s Previous systems: 2000 Suburban - (4) BTL 15's and (4) IA 40.1's = 157.7 dB at 37 Hz. 1992 Astro Van - (6) BTL 15's and (6) IA 40.1's = 159.7 dB at 43 Hz. Link to comment Share on other sites More sharing options...
bkolfo4 Posted January 12, 2010 Report Share Posted January 12, 2010 did that^ and the program ended. just shut itselfbtw thanks for the help man If you do not type 999 the first time, it should say incorrect and ask again as long as the number you typed was below 1000. . .anything over 1000 should end the program. Quote Current system: 1997 Blazer - (4) Customer Fi NEO subs with (8) American Bass Elite 2800.1s Previous systems: 2000 Suburban - (4) BTL 15's and (4) IA 40.1's = 157.7 dB at 37 Hz. 1992 Astro Van - (6) BTL 15's and (6) IA 40.1's = 159.7 dB at 43 Hz. Link to comment Share on other sites More sharing options...
IH8PunkRok Posted January 12, 2010 Author Report Share Posted January 12, 2010 i typed 999 the first time. i figured the 666 was a typo but yea when i typed 1001 it ended the only thing is it will ask the second question once and not wait for a response before giving away the incorrect answer response Quote -Matt2005 Dodge Magnum RTJVC KD-AVX1 2 PPI S580.2 Obsidian Audio ST1 Horn Tweeters PRV 8MB450s Audio Legion 3500.1D 2 RE MT 18s 360 ah LiFePO4 BatterySHCA 2/0 155.2 @ 29 hzKicker CVR 15's buildDD 3512e buildMini T-Line Build(6) 8s BuildNightshade 15s Wall BuildMagnum AB XFL 12s BuildNewest Magnum Build Link to comment Share on other sites More sharing options...
bkolfo4 Posted January 12, 2010 Report Share Posted January 12, 2010 (edited) It is buffering the new line when you hit enter after typing 999. Make this change and try it: if (a==999) { printf("\nCorrect\n"); printf("Next Question\n"); printf("\n"); do { scanf("%c" , &; printf("\nThe 13th letter of the alphabet is:"); scanf("%c" , &; if (b=='m') { printf("\nCorrect\n"); printf("Next Question\n"); Edited January 12, 2010 by bkolfo4 Quote Current system: 1997 Blazer - (4) Customer Fi NEO subs with (8) American Bass Elite 2800.1s Previous systems: 2000 Suburban - (4) BTL 15's and (4) IA 40.1's = 157.7 dB at 37 Hz. 1992 Astro Van - (6) BTL 15's and (6) IA 40.1's = 159.7 dB at 43 Hz. Link to comment Share on other sites More sharing options...
bkolfo4 Posted January 12, 2010 Report Share Posted January 12, 2010 sorry, add it here: if (a==999) { printf("\nCorrect\n"); printf("Next Question\n"); printf("\n"); do { scanf("%c" , &; printf("\nThe 13th letter of the alphabet is:"); scanf("%c" , &; if (b=='m') { printf("\nCorrect\n"); printf("Next Question\n"); In the other position, it will only work one time - it will not work the second time if you input the wrong letter. Quote Current system: 1997 Blazer - (4) Customer Fi NEO subs with (8) American Bass Elite 2800.1s Previous systems: 2000 Suburban - (4) BTL 15's and (4) IA 40.1's = 157.7 dB at 37 Hz. 1992 Astro Van - (6) BTL 15's and (6) IA 40.1's = 159.7 dB at 43 Hz. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.