sourcecode
چهارشنبه 11 فروردین 1395, 14:37 عصر
کار کلاس <sstream> در ++C چیه کسی هست دقیقا کارشو بگه ?
sstream = stringstream
AliAskari1375
چهارشنبه 11 فروردین 1395, 17:47 عصر
برای تبدیل متن به عدد و یا برعکس کاربرد داره.
#include <iostream>
#include <sstream>
#include <string>
#include <conio.h>
using namespace std;
int main()
{
int n = 200;
int t = 55;
char Text[256];
stringstream Stream;
Stream<<n<<t;
Stream>>Text;
cout<<Text<<endl;
_getch();
return 0;
}
vBulletin® v4.2.5, Copyright ©2000-1403, Jelsoft Enterprises Ltd.