Răspunsuri

  • Utilizator Brainly
2014-02-18T21:58:27+02:00
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
char np[100], *c1, *c2;
cin>>np;
c1=strtok(np, " ");
c2=strtok(NULL, " ");
cout<<c2<<' '<<c1;
return 0;
}

http://www.cplusplus.com/reference/cstring/strtok/