| [Weapon] ID Name Value Weight Attack #10001 <Stick> <80> <8> <1> #10002 <Claw> <100> <10> <2> #10003 <Sword> <150> <10> <3> [...] |
|
|
|
|
s1 stores nothing, iss has "#10002 <Claw> <100> <10> <2>"getline(iss, s1, '<');iss and stores them into s1 until the delimitation character '<' is found. The delimiter '<' is extracted and discarded from iss, too.s1 now stores "#10002 "iss has "Claw> <100> <10> <2>"getline(iss, s1, '>');s1 now stores "Claw"iss has " <100> <10> <2>"getline(iss, s2, '<');s2 now stores " "iss has "100> <10> <2>"getline(iss, s2, '>');s1 now stores "100"iss has " <10> <2>" |
|
|
|