since my questions are answered i wanted to close the thread but i don't know how to so if anyone else can do it then please close the thread.
Thank you.
Type: Posts; User: Dynamis
since my questions are answered i wanted to close the thread but i don't know how to so if anyone else can do it then please close the thread.
Thank you.
Thanks everyone without your help i wouldn't have been able to compile my program successfully.
thanks laserlight the program works fine on dev C++ 4.9.9.2.
Can you explain me what was wrong in the code which i posted in post #5 and what you did to make it work on your code as i don't know...
I didn't meant that pic. i was saying about this
output of the code in post #5
// here are the errors -
enter name af
enter grade // no grade
enter marks...
but i can't change my compiler my school won't allow that.
isn't there anything else one can do to compile the code without garbage value that i latest posted in borland 5.0.2 or on TC++ 4.5.
10292@laserlight: but that code doesn't work in borland 5.0.2. it give errors. i have uploaded the image untitled.jpg
I have made the changes as you said....
#include <fstream>
#include <iostream>
#include <stdio>
#include <stdlib>
//definition for class student
First of all thanks i will surely follow your advices.
But one more problem has has occurred now (i think this one is due to that #7 point you
stated) -
now when the the program asks for second...
I am having trouble writing and reading array of objects.
this program is representing the trouble that I am having in real one.
I want to write class objects in a file "Stu.txt" and then read it...