# include <iostream>
# include <cstring>
using namespace std;
int main()
{
char text [81];
char *word ;
int count=0;
int minValue,minIndex;
cout << "Please enter a sentence ";
cout << "not exeeding 30 words:\n"<<endl;
cin.getline(text,31);//
for (int i=0; i < count; i++ )
{
cout << word <<endl;
}
word = strtok (text, " "
;
if (word < minValue)
{
minValue = word ;
minIndex = i;
}
while (word != NULL)
{
cout << word <<endl;
word = strtok(NULL," "
;
}
cout <<" \n"<<endl;
return 0;
}
# include <cstring>
using namespace std;
int main()
{
char text [81];
char *word ;
int count=0;
int minValue,minIndex;
cout << "Please enter a sentence ";
cout << "not exeeding 30 words:\n"<<endl;
cin.getline(text,31);//
for (int i=0; i < count; i++ )
{
cout << word <<endl;
}
word = strtok (text, " "
if (word < minValue)
{
minValue = word ;
minIndex = i;
}
while (word != NULL)
{
cout << word <<endl;
word = strtok(NULL," "
}
cout <<" \n"<<endl;
return 0;
}