Jump to content

xdb0wx

Member
  • Posts

    3
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

About xdb0wx

xdb0wx's Achievements

0

Reputation

  1. I bought this book called "Sams' teach yourself C in 24 hours" and I can't find the page but i think it says something like %random% (x=o y>x y=10) [you can make "y=10" to 'y=8' for the 8 numbers] I am most likely wrong but I'll try to find the page.
  2. ===== Post Nº 1 ===== Well, I've been making a simple program with a friend or too just to pass around to the computers in school to entertain and I was in the process of debugging when an error occurred. Well, I would select a choice, and it would close. I will show you the code I'm using. @echo off title click on this QUIZ color f0 echo WELCOME! echo We, the programmers of the famous "Click on this" have echo created a questionaire to see what YOU the user wants! echo Yes! That's right! YOU! YOU! YOU! echo It's quite simple. And maybe fun?echo All you need to do is answer 5 questions with a 1,2,3,or 4.echo Ready?! echo Lets go! Press any key to begin. pause >nul cls echo Question A. What would you like to see in the next "Click on this"? echo 1. More interactive features echo 2. I DON'T WANT TO SEE ANY MORE! IT SUCKS! (?) echo 3. More humor (Is it possible?) echo 4. More interesting features set choice= set /p choice=Select a number from above: if not '%choice%'==" set choice=%choice:~0,1% if '%choice%'=='1' goto A if '%choice%'=='2' goto A if '%choice%'=='3' goto A if '%choice%'=='4' goto A :A echo Question B. I don't see any problem, but of course I'm just a nooby VB2005 programmer (and not that great at all). PROBLEM SOLVED! I changed '%choice%' to '%var%' and I took out "set choice=" and it works perfectly! ===== Post Nº 2 ===== Well, after a couple gummy worms and some headaches, its COMPLETE! @echo off title click on this QUIZ color f0 echo WELCOME! echo We, the programmers of the famous "Click on this" have echo created a questionaire to see what YOU the user wants! echo Yes! That's right! YOU! YOU! YOU! echo It's quite simple. And maybe fun? echo All you need to do is answer 2 questions with a 1,2,3,or 4. echo Ready?! echo Lets go! Press any key to begin. pause >nul cls echo Question A. What would you like to see in the next "Click on this"? echo 1. More interactive features echo 2. I DON'T WANT TO SEE ANY MORE! IT SUCKS! (?) echo 3. More humor (Is it possible?) echo 4. More interesting features set /p var= Please choose 1,2,3, or 4. if '%var%'=='1.' goto A if '%var%'=='2.' goto A if '%var%'=='3.' goto A if '%var%'=='4.' goto A :A cls echo You chose option '%var%' pause cls echo Question B. echo What don't you like about "Click on this"? echo 1. The stupid typing (I personaly hate it.) echo 2. The non-interactiveness (is that a word?) echo 3. The difficulty of use? echo 4. The people who made it.... set /p aar= Please choose 1,2,3, or 4. if '%aar%'=='1.' goto B if '%aar%'=='2.' goto B if '%aar%'=='3.' goto B if '%aar%'=='4.' goto B :B cls echo You chose '%aar%' pause cls Echo Thank you for taking this quiz. echo It will surely aid in our decision making process in "Click on this v2.0" echo. echo.. echo... echo.... echo... echo.. echo. echo Just one more question. set /p bar= If you do not wish to answer the folowing question, type "no" (WARNING: Case sensative so make sure you put "no" if '%bar%' == 'no' GOTO :end if '%bar%' == 'yes' GOTO :C :C cls echo Was this quiz easy to use? set /p dar= Type "yes" or "No" if '%dar%' == 'yes' GOTO D if '%dar%' == 'no' GOTO D :D :end cls Echo Thank you for taking this quiz. Echo Press any key to exit. pause >nul It's almost completely bug free!
×
×
  • Create New...