K
Kay
If my input is an integer, how can I compare w/ the queue
(mode shows as below) in order to display the context containing the
integer that I input ?
char *name, *cuisine, *mode;
//change type of name of restaurant from string to char
name = new char[temp_name.length() + 1 ];
strcpy( name, temp_name.c_str());
//change type of name of cuisine from string to char
cuisine = new char[temp_cuisine.length() + 1 ];
strcpy( cuisine, temp_cuisine.c_str());
//change type of operation mode from string to char
mode = new char[temp_mode.length() + 1 ];
strcpy( mode, temp_mode.c_str());
//cout << name << cuisine << mode << endl;
--> mode QueueInsert( ReCuMo, name, cuisine, mode);
(mode shows as below) in order to display the context containing the
integer that I input ?
char *name, *cuisine, *mode;
//change type of name of restaurant from string to char
name = new char[temp_name.length() + 1 ];
strcpy( name, temp_name.c_str());
//change type of name of cuisine from string to char
cuisine = new char[temp_cuisine.length() + 1 ];
strcpy( cuisine, temp_cuisine.c_str());
//change type of operation mode from string to char
mode = new char[temp_mode.length() + 1 ];
strcpy( mode, temp_mode.c_str());
//cout << name << cuisine << mode << endl;
--> mode QueueInsert( ReCuMo, name, cuisine, mode);