Help!

So here is what i need i need a way i can add 3 variables one after the other example:

int a = 1;
int b = 2;
int c = 3;


//Here comes my problem
int d = a + b + c;

When I wite it like thet d = 6 ,but I need it to be 123, help ty.
cout<<a<<b<<c;
1
2
3
4
string a="1";
string b="2";
string c="3";
string d=a+b+c;
;)
1
2
3
4
int a=1;
int b=2;
int c=3;
int d=a*100+b*10+c*1;
lol
Chriscpp ty
Topic archived. No new replies allowed.