OK now how the hell do these work. I'm more used to java so but I thought this would be dead easy. How do you use 'strings' properly here? What it needs to do is display the current date, read in a new date and replace the old with the new date.
Compileing the code below just says lvalue required so somethings not right
Whered I go wrongCode:void Apointments::setDate(){ char date[20]; char todaysDate[20]; date = "18/03/2004"; <-----HERE std::cout << "Todays date is currently: " << todaysDate; std::cout << "\nPlease newdate: "; std::cin >> todaysDate; date = todaysDate; <------HERE } //end setDate![]()


LinkBack URL
About LinkBacks
Reply With Quote
