string and int
-
Visual C++ i think it's a trivial question but i don't know the right syntax: i have, for example : int ID1=70; int age1=55; String (or CString) Name="Bell"; CString All; // i want to make All to be: All=" The ID is " ID1 " and his age is " age1 " and his name is " Name .. how to make this?:-D
-
Visual C++ i think it's a trivial question but i don't know the right syntax: i have, for example : int ID1=70; int age1=55; String (or CString) Name="Bell"; CString All; // i want to make All to be: All=" The ID is " ID1 " and his age is " age1 " and his name is " Name .. how to make this?:-D
-
Visual C++ i think it's a trivial question but i don't know the right syntax: i have, for example : int ID1=70; int age1=55; String (or CString) Name="Bell"; CString All; // i want to make All to be: All=" The ID is " ID1 " and his age is " age1 " and his name is " Name .. how to make this?:-D
well i tell a how to achieve it with char*; char[200] str=""; int i=20; double d=10.00; char* s="test string"; wsprintf(str,"The integer is %d and the double is %f and the character array contains %s",i,d,s); NOW str WILL contain "The integer is 20 and the double is 10.000000 and the character array contains test string"
Remember... testing & debugging are always part of programming ...so exterminate those stinking bugs