while(a->next)
Would this loop break when a->next is null?
Sorry i've only really done java before, not really sure how while loops work in C.
Blogs > Steelflight-Rx |
Steelflight-Rx
United States1389 Posts
while(a->next) Would this loop break when a->next is null? Sorry i've only really done java before, not really sure how while loops work in C. | ||
R1CH
Netherlands10340 Posts
| ||
IzzyCraft
United States4487 Posts
Or a is a int/double/long double and you input a character, but you can prevent that from breaking by use a ignore command err umm. cin >> a; if( !cin) { cin.clear(); //cin.ignore(); cin.ignore(100, '\n'); } But if your just incrementing a or something i doubt it would break normally =p ionno im very limited c knowlege T_T | ||
R1CH
Netherlands10340 Posts
| ||
Steelflight-Rx
United States1389 Posts
thanks for the help | ||
R1CH
Netherlands10340 Posts
| ||
| ||
The PiG Daily
Best Games of SC
Rogue vs CreatorLIVE!
Rogue vs Reynor
Reynor vs Solar
Reynor vs Dark
[ Submit Event ] |
StarCraft 2 StarCraft: Brood War Dota 2 League of Legends Counter-Strike Super Smash Bros Other Games Organizations StarCraft 2 Other Games StarCraft: Brood War StarCraft 2 StarCraft: Brood War |
Online Event
ESL Pro Tour
OSC
OSC
ESL Pro Tour
BSL
TerrOr vs Sziky
Nyoken vs Zhanhum
DaveTesta Events
Sparkling Tuna Cup
ESL Pro Tour
ESL Pro Tour
[ Show More ] BSL
Bonyth vs StRyKeR
DragOn vs MiStrZZZ
ESL Pro Tour
ESL Open Cup
ESL Open Cup
ESL Open Cup
ESL Pro Tour
ESL Pro Tour
PassionCraft
ESL Pro Tour
ESL Pro Tour
Korean StarCraft League
|
|