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
| ||
| ||
Sparkling Tuna Cup
Weekly #73
Krystianer vs IbaLIVE!
TBD vs Gerald
[ Submit Event ] |
StarCraft 2 StarCraft: Brood War Britney 30286 Dota 2Sea 3482 Horang2 2805 Pusan 957 Soulkey 597 BeSt 511 Last 243 Mini 218 Light 118 Stork 101 [ Show more ] League of Legends Counter-Strike Super Smash Bros Other Games Organizations Counter-Strike Dota 2 StarCraft 2 StarCraft: Brood War
StarCraft 2 • StrangeGG 57 StarCraft: Brood War• LUISG 40 • MindelVK 38 • Adnapsc2 17 • Laughngamez YouTube • sooper7s • Migwel • IndyKCrew • LaughNgamezSOOP • Kozan • intothetv • AfreecaTV YouTube League of Legends |
SC Evo Complete
WardiTV Invitational
PassionCraft
Online Event
BSL: ProLeague
Mihu vs kogeT
Sziky vs JDConan
Acropolis
Acropolis
Wardi Open
Replay Cast
Replay Cast
[ Show More ] Tenacious Turtle Tussle
The PondCast
Replay Cast
Replay Cast
SC Evo Complete
CSO Cup
Replay Cast
Sparkling Tuna Cup
|
|