| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | #Help `c` problem again |
#: 4562 S3/Languages
22-Jun-90 17:26:30
Sb: #Help 'c' problem again
Fm: SCOTT HOWELL 70270,641
To: all
Why is'nt this program working. I want the program to keep looping until a
character other than 'd' is pressed char c; main() {
while(c=='d'); {
printf("this is a test\n");
c=getchar(); }
printf("\nIt works\n"); }
This is another reason why I think 'c' is such a confusing language.
There is 1 Reply.
|
|
| SOURCE: compuserve via textfiles.com | |
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™.