anonymous
  • anonymous
can any one help me to write an algorithm for my program (c++) ?
Mathematics
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

anonymous
  • anonymous
pls
KingGeorge
  • KingGeorge
This would be better in the Computer Science area, but I can try.
anonymous
  • anonymous
#include #include #include class student { char name [25]; char grade; float marks; public: void getdata(void); void display(void); }; void student :: getdata(void) { char ch; cin.get(ch); cout<<"Enter name : "; cin.getline(name,25); cout<<"Enter grade : "; cin>>grade; cout<<"Enter marks : "; cin>>marks; cout<<"\n"; } void student :: display(void) { cout<<"NAME : ";puts(name); cout<<"MARKS : "<

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

KingGeorge
  • KingGeorge
What exactly are you trying to write here?
anonymous
  • anonymous
i am using a file program to input and display 3 student details
KingGeorge
  • KingGeorge
And what's going wrong for you?
anonymous
  • anonymous
i want to write the algoritm for this program
KingGeorge
  • KingGeorge
As far as I can tell, the algorithm is correct, you just have some errors you need to fix. At least, as far as inputting the student details. I can't see any part that displays the details.
anonymous
  • anonymous
k
anonymous
  • anonymous
i'll check it out thanks
KingGeorge
  • KingGeorge
To display them, it should be almost the same, but you use the display function in the class instead of the getdata

Looking for something else?

Not the answer you are looking for? Search for more explanations.