here is my code
int main()
{
int i;
char * cstr;
char * p;
string *userInput;
int sizeOfArray;
cin >> sizeOfArray;
add(i,userInput,sizeOfArray);
system("PAUSE");
}
void add(int i, string *userInput, int sizeOfArray)
{
string Input;
char * cstr;
char * p;
userInput = new string [sizeOfArray];
for(i= 0; i< sizeOfArray; i++)
{
getline(cin,*userInput);
getCommands(cstr,p,userInput,Input);
}
delete [] userInput;
}
i can only type the number for sizeOfArray,
and i cannot further enter anything..