c++ - How to insert the value of a variable in a char* -
I have mastered C # and I decided to start on C ++ to work on some personal things Have done Anyway, I want to know how to do this (C #) in C ++ For the
(int i = 0; i & lt; 16; i ++) say ("[" + "+ i +"] idk ");
Any and all help is appreciated, even if it is writing in the original C ++ also helps.
You can also use stringstream
s,
#include & lt; Iostream & gt; # Include & lt; Sstream & gt; using namespace std; Int main () {Ostringstream OS; For (Int i = 0; I
Comments
Post a Comment