-
Notifications
You must be signed in to change notification settings - Fork 0
c in 24h part 1 #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
pjohn3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nincs előttem a könyv, majd együtt menjünk végig rajta. Stílusra kommenteltem.
helloworld/H7_E1.c
Outdated
| return 0; | ||
| } | ||
|
|
||
| //setbuf(stdout, NULL); No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ezt töröld ki. Ki is van kommentelve, meg amúgy se lehetne itt.
helloworld/TYC_Hour_2
Outdated
| void main() | ||
| { | ||
| printf ("Howdy, neighbor! This is my first C program.\n"); | ||
| exit(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inkább return 0; az exit()-nek csak akkor van értelme, ha nem main()-ben vagy,
| 3: | ||
| 4: main() | ||
| 5: { | ||
| 6: printf ("Howdy, neighbor! This is my first C program.\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
printf után ne legyen space
| int i; | ||
| int j; | ||
| printf("2. feladat\n"); | ||
| for (i = 0, j = 1; i < 8; i++, j++) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
akkor is legyen kinn a kapcsos zárójel a for loopnál, ha csak egy sorból áll a teste. Ugyanez igaz az if-re, a while-ra, stb. Vagy itt pont ez volt a feladat?
No description provided.