I have a question. do we have any function in C++ to get back the previous value while running the program?
For Example:
First Name: Anthony
Last Name: john
Gender:
the pointer is at the Gender value right now soo is there any way to get back up at the Last Name value to change the name in C++? I just start learning C++, thank everybody.
Quoc_4
0
Newbie Poster
Recommended Answers
Jump to PostYou just create that function to navigate back to redo your input. Here, I check for input during the gender input to see if the letter 'b' (back) is entered. If so, the last name function is called.
#include <iostream> #include <string> using namespace std; int …
All 2 Replies
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
toneewa
81
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.