I'm trying to finish up some homework, and keep getting the "invalid conversion from `char' to `const char*' " error. I'm trying to insert into a linear linked list, any help would be appericated. Heres the code, I hope its enough of the puzzle.
Code:food_TYPE *data; node *type; head = new node; current = new node; current = head; head->next = NULL; node *temp; temp = new node; int len; if(temp) { //copy into node strcpy (current->data->food, foodm); strcpy(current->food_TYPE->location, location); current->data.rating = rating; }