i learnt C++ for 3 months, i only got limited knowledge on C++
now ,i hv to write a C++ program by reading txt file from C++
eg
content of txt file included :
Peter male math a chem b Chinese c
Mary female math c chem a Chinese b
and i hv to sort their name by alphabetical order (a to z)
then calculate total marks of subjects.
such as ...
weight of subjects : math 30%,chem 30%, Chinese 40%
marks of subjects: a=10 b=8 c=6
for Peter;
10x0.3 + 8x0.3+6x0.4 = total marks
also ,i need to sort it by total marks
i don't know how to write it.
is there anyone can help me?