64 630
Assignments Done
99,1%
Successfully Done
In September 2018

Answer to Question #3060 in C++ for leomaria

Question #3060
I have a :<br><br>class Type{<br>public:<br>& & & string s;<br>& & & int i;<br>& & & char c;& & & <br>};<br><br>and i want :<br>t[0].s= "hello" ;<br><br>but what is the problem?
Expert's answer
class Type{
public:
string s;
int i;
char c;
};

Answer:
t.s= &quot;hello&quot; ;

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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions