Answer to Question #3060 in C++ for leomaria

Question #3060
I have a :

class Type{
public:
& & & string s;
& & & int i;
& & & char c;& & &
};

and i want :
t[0].s= "hello" ;

but what is the problem?
1
Expert's answer
2011-06-07T05:03:25-0400
class Type{
public:
string s;
int i;
char c;
};

Answer:
t.s= "hello" ;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS