I want to put some text in a string, I did the following:
But he gives errors on this!Code:char part1[1]; char part2[1]; char total[1]; int main() { part1 = "this is"; part2 = "a test"; total = part1 + " " + part2 //So total would be 'this is a test' return 0; }
How could it?
thanks,
WP







Reply With Quote