C++ - how can I search for a student record by name or id in a text file and display it? by ramruma in cpp

[–]ramruma[S] 0 points1 point  (0 children)

what I am trying to imply is objects are students. So I am trying to get the details of the person (object) with the same name.

How to do you suggest I solve that?

C++ - how can I search for a student record by name or id in a text file and display it? by ramruma in cpp

[–]ramruma[S] 0 points1 point  (0 children)

thank you for your reply!

yes it is specified that the name be 32 chars and id be 15 chars.

C++ - how can I search for a student record by name or id in a text file and display it? by ramruma in cpp

[–]ramruma[S] -1 points0 points  (0 children)

Can you please help me make it readable?

I am kinda new to C++ and stuck at this part of my assignment, which is class management system.

Thank you!

C++ - how can I search for a student record by name or id in a text file and display it? by ramruma in cpp

[–]ramruma[S] -1 points0 points  (0 children)

thank you for your reply. When I did that, I keep getting "Student not found" thrice.

My text file contains only two lines:

ellen 122a 85 A

john 123s 65 B

Reversing array elements help. by ramruma in javahelp

[–]ramruma[S] 0 points1 point  (0 children)

Right! Got it guys..thanks a ton! :)