i have this c++ code and i wondered how ot would be in c
#include <vector> // for vector
#include <sstream> // for stringstream
#include <iostream>
#include <string>
using namespace std;
int main()
{
stringstream ss;
string input, temp;
vector<string> comand;
cout << ">: ";
getline(cin, input);
ss << input; // brake up line and put each part into the vector
while( ss >> temp)
{
comand.push_back(temp);
}
// display vector
for(size_t i = 0; i < comand.size(); i++)
cout << comand[i] << endl;
cin.get(); // pause program
return 0;
}
what is does it takes in an input from the user and then brake it up into keywords and then display them again.
i used this type of program to make my own terminal program. so how is this code going to be in C
thanks....