#include <iostream>
#include <cstring>
using namespace std;
void afisare(char *p){
char cuv[100];
strcpy(cuv,p);
p=strtok(NULL, " ");
if(p)afisare(p);
cout << cuv << " ";
}
int main(){
char s[100];
cin.get(s,100,'*');
char *p=strtok(s, " ");
afisare(p);
}
Te rog nu mai face spam cu intrebari. Pune o singura intrebare si asteapta pana raspunde cineva.