23 lines
525 B
C++
23 lines
525 B
C++
|
/*************************************************************************
|
||
|
> File Name : intaddstring.cpp
|
||
|
> Author : TL Song
|
||
|
> EMail : songtianlun@frytea.com
|
||
|
> Created Time : Fri 31 Jul 2020 04:17:15 PM CST
|
||
|
************************************************************************/
|
||
|
|
||
|
#include <iostream>
|
||
|
#include <string>
|
||
|
#include <sstream>
|
||
|
using namespace std;
|
||
|
int main()
|
||
|
{
|
||
|
int a = 2;
|
||
|
string b = "abc";
|
||
|
stringstream ss;
|
||
|
char* aaa;
|
||
|
ss << b << a;
|
||
|
ss >> aaa;
|
||
|
cout << aaa << endl;
|
||
|
return 0;
|
||
|
}
|