i am starter in c/c++
i need to convert this:

cout <<"  "<<ch1<<ch2 <<" "<<ch1<<ch3 <<"   " <<ch0<<" "<<ch1 <<"  "<<ch1 <<ch4 <<"  "<<ch1<<"   "<<ch3<<ch5<<"  "<<ch0 <<" " <<ch2<<ch3<<" "<<ch1<<ch5<<ch0<<" "<<ch1<<ch4 <<"\n";

in printf, but i dont know how to do it.

Are those characters or something else?
If they are chars, you could:

printf("   %c%c %c%c", ch1,ch2,ch3,ch4);
/*placing a %c everywhere you need a character and adding that reference to the char at the end of the paraeter list*/
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.