[C++]Guess you number
This is a program I helped a new C++ programmer with... I figured someone might want it here
Code:
#include <windows.h> |
What's the relevance in asking "Is your number 50?" if you chose, say, 20? Besides, if you lie to the program and say your number is out of the specified range, the program will get stuck somewhere and ask something like "Is your number 27?" over and over again. Otherwise, nice program. :)
|
Quote:
|
I poked around with a different, lazier version of the number guessing game which does a lot of checking.
Code:
#include <iostream.h> |
I am assuming you used
char choice[50]; to prevent an error when someone stupid types in more than one character responce? |
Yeah, like if someone would type in "higher" instead of 'h'.
|
I just relized I left that stupid char z = (int)65; in the code lol. It was an example to show how (int) (char) and such work
|
Even Lazier..
Bah, you call that lazy? Here's lazy.. (in QBASIC).
Code:
PRINT "Pick a number from 1 to 20000." |
Quote:
|
No i no even lazyier.
Input/show "; Num; "." ...yea, u type in ur number and thats it. lets c anyone get lazier then that.hahaha umm or *is* "; Num; "." * input/show number* |
Can we refrain from posting such obvious stupidity next time? mmm kthnxbye
|
All times are GMT -6. The time now is 05:50 AM. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.