Normally I want a variable contain this “Hey you!”.
In Javascript we can
var str = 'Hey' + 'you!';
In Web language we can
$str = 'Hey'.'you!';
but in c++
+ or . also cannot combine it..
Any ideas? I believe maybe it’s just a simple thing but i really have no idea how to combine this in c++, please help…
If I well understood, you just need
(no punctuation in between)
Just a note about the space:
NOTE: in all the OP provided samples, you will get
"Heyyou"with no spaces in between.I just reproduced the OP request. (so adding a space in this answer is wrong, since it will not match the requirement)
Whether that can be not the real intention (he just wanted
"Hey you") than a space after Hey or before you is required.