| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Boolean logic |
Something's obviously wrong with the program below. You programmers can,
I'm sure figure what I'm trying to learn. Will you straighten it up for me?
Thanks.
#include
#include
int main()
{
clrscr();
int IWantTo, IDontWantTo;
IWantTo = 0; IDontWantTo = 1;
cout << IDontWantTo << endl;
if(IWantTo)
{
cout << IWantTo << endl;
return IWantTo;
}
else
if(IDontWantTo)
{
cout << IDontWantTo << endl;
return IDontWantTo;
}
}
Sincerely,
Frank
--- PPoint 2.05
---------------
* Origin: Maybe in 5,000 years - frankmas@juno.com (1:396/45.12) |
|
| SOURCE: echomail via exec-pc | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.