#include<windows.h>
#include<vector>
#include<map>
#include<list>
#include<conio.h>
#include<tchar.h>
using namespace std;
void main(void)
{
TCHAR* String1;
TCHAR* String2;
TCHAR* String3;
TCHAR* Mystring;
String1="Hi ";
String2="Welcome ";
String3="to Know My C++ Blog";
_stprintf(Mystring,_T("%s%s%s"),String1,String2,String3);
_tprintf("\n\n Mystring:%s",Mystring);
getch( );
}
Output:
Mystring:Hi Welcome to Know My C++ Blog
#include<vector>
#include<map>
#include<list>
#include<conio.h>
#include<tchar.h>
using namespace std;
void main(void)
{
TCHAR* String1;
TCHAR* String2;
TCHAR* String3;
TCHAR* Mystring;
String1="Hi ";
String2="Welcome ";
String3="to Know My C++ Blog";
_stprintf(Mystring,_T("%s%s%s"),String1,String2,String3);
_tprintf("\n\n Mystring:%s",Mystring);
getch( );
}
Output:
Mystring:Hi Welcome to Know My C++ Blog
thanks,
ReplyDelete