When I use the resize function, it doesnt do it right.
it should add this (211210999999788789) at the end, but it doesnt. there are just some ramdom o letter with a line on top.
Does anyone know how to fix this?
I tryed changing aa to a string, but it gave me an error, aying that you can insert a string into the resize function.
Keyn is a user input.
Outputn is the Output.
int nine(999999);
unsigned long long aa;
unsigned long long keyn;
string outputn;
std::cin >> keyn << endl;
aa = nine * keyn;
outputn.resize(80, aa);
std::cout << outputn;
Thankyou.
I expected this outcome: 460886096095635214735862262257526448155944944896789211210999999788789211210999999788789211210999999788789211210999999788789211210999999788789211210999999788789211210999999788789211210999999788789211210999999788789211210999999788789211210999999788789211210999999788789211210999999788789211210999999788789211210999999788789211210999999788789211210999999788789211210999999788789211210999999788789211210999999788789 and so on.
But I got this:
460886096095635214735862262257526448155944944896789õõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõõ and so on.
Lugan Wolf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.