Saturday, January 23, 2010

Cls Student Loans Help With My C++ Project!?! Part 2?

Help with my c++ project!?! part 2? - cls student loans

/ / Here is

# \\ \\ Include \\ \\ \\ \\ u0026lt; iostream>
# \\ \\ Include \\ \\ \\ \\ u0026lt \\ \\ \\ \\ u0026lt; stdlib.h>
using namespace std;
Students in the class
(
char name;
int marks;
public:
Student () (names, marks;)
Student (char a, int b) (name = a, b = marks;)
void getName (char x) (x = name;)
getMarks void (int) (flag = y;)
Putnam void () (Court \\ \\ \\ \\ \\ \\ \\ \\ u0026lt \\ \\ \\ \\ \\ \\ \\ \\ u0026lt, "Your name is:" \\ \\ \\ \\ \\ \\ \\ \\ u0026lt \\ \\ \\ \\ \\ \\ \\ \\ u0026lt \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; \\ \\ \\ \\ name \\ \\ \\ \\ u0026lt; endl;)
putMarks void () (Court \\ \\ \\ \\ \\ \\ \\ \\ u0026lt \\ \\ \\ \\ \\ \\ \\ \\ u0026lt: "Your brand is" \\ \\ \\ \\ \\ \\ \\ \\ u0026lt \\ \\ \\ \\ \\ \\ \\ \\ u0026lt \\ \\ u0026lt \\ \\ mark \\ \\ \\ \\ u0026lt \\ \\ \\ \\ \\ \\ \\ \\; endl;)
);
void main ()
(
system ( "CLS");
Student s1;
s1.getName (NAME) / * name must be written here ", but to not compile error: undeclared identifier, reason unknown * /
s1.putName ();
Student s2;
s2.getMarks (85);
s2.putMarks ();
)



>>>>>> Well, I really do not know how to use ropes. Please help me revise this program to ... Thank you very much!

2 comments:

EagerToL... said...

Fir all its activities, please write programs in plain text! Thanks
Well, the first, an argument as a string or an array of characters, the use of U-pointer as a pointer may contain the base address can then give your name to approach! char pointer, you can do to give the address!
Why? u OOP or not to write so badly! OK, do not take me seriously, or you can place your order by writing simply reading a few chapters.
You can obtain information about users
as
cin>> name;
The quality of object-oriented programming or not to use something else just
simple explanation. and U did not spend any argument
The program will be easier!
All the best! u can do a little better to do with the book :-)

pıʌɐſ said...

has 2 choises! One is the use of C-style strings with char * and the second class include \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; string> and you will use! If you use Visual Studio that will help you in the class \\ \\ \\ \\ \\ \\ \\ \\ u0026lt>; string functions! Good luck!
Note that if you define a char variable (eg, name char;) on the variable on a single character, not a string!

Post a Comment