I am trying to get an array input using gets, but it is not even showing up when I compile. Thre program just skips over that part and goes from the prompt to the cout. I dont get any error messages. Can someone please tell me whatr I am doing wrong?
I am using these libraries:Code:void zero(){
char h[6]={"honda"}, t[7]={"toyota"}, f[5]={"ford"}, m[9]={"mercedes"}, *p, symbol='\0';
if (insertcount<4){
cout <<"Please enter the car info \n";
gets ( originalarray [insertcount]);
fflush (stdin);
cout << "orig array "<< originalarray [insertcount]<<endl;
int e=strlen(originalarray[insertcount]);
for (int r=0;r<e;r++){
secondarray[insertcount][r]=originalarray[insertcount][r];
}
#include <cstdio>
#include <iostream>
#include <cstring>
#include <cctype>