mirror of
https://github.com/A2osX/A2osX.git
synced 2024-06-12 20:29:41 +00:00
07172d7359
CC:comment,scopes fixes DAN2ETH:fixes for IIgs
38 lines
661 B
Plaintext
38 lines
661 B
Plaintext
NEW
|
||
AUTO 3,1
|
||
#include <stdio.h>
|
||
|
||
/* C-style comments....
|
||
...multi-lines */
|
||
|
||
int main(int argc, char *argv[])
|
||
{
|
||
puts("Press a key");
|
||
char c=getchar();
|
||
printf("char=%d\r\n", c);
|
||
if (c == 13)
|
||
{
|
||
puts("ENTER");
|
||
// C99 comments: skip LF
|
||
getchar();
|
||
}
|
||
else
|
||
if (c == 32)
|
||
{
|
||
puts("Not ENTER...but SPACE");
|
||
}
|
||
else
|
||
puts("Some other key...");
|
||
|
||
int i=0;
|
||
while (i++ < 10) {
|
||
if (i==5) continue;
|
||
printf("count1=%I\r\n", i);
|
||
}
|
||
do {
|
||
printf("count2=%I\r\n", i);
|
||
} while (i-- > 0);
|
||
}
|
||
MAN
|
||
TEXT root/ctest/testif.c
|