still not work...
get much more mistakes T_T
Referring to your OP:
Line 2: Should be <cstdio>
Line 3: Missing using namespace std;
Line 34: You can't use gets() into an int.
Use: cin >> id.nilai;
With these 3 changes the code compiles cleanly using VS2010.
Also, chwsks's code also compiles cleanly for me.
Please post the exact text of the errors you're getting along with the exact code you're trying to compile.
Maybe you could benefit with using an `up to date' compiler.
At least one that conforms with the 98 standard, by instance gcc.