1.17
Copied!
#include "stdafx.h"
#include <iostream>
#include <strstream>
using namespace std;
int main() {
char buf[] = "SalomBuxoro 1980 28.01 B";
istrstream istr(buf);
char str[80]; float f; char c; int i;
istr >> str >> i >> f >> c;
cout << str << ' ' << i << ' ' << f << ' ' << c << '\n';
system("pause");
return 0;
}
Run on cpp.sh
Copied!