Question: How to Add the ability to save data to a disk in one or more files. The menu or menus should give the user the
How to Add the ability to save data to a disk in one or more files. The menu or menus should give the user the option to save or retrieve data in this program?
#include
#include
using namespace std;
// These are the function prototype/declaration which we need to tell the compiler before defining the functions.
int wordgame();
int talkabout(string);
int maths(string);
int mathgame();
int main()
{
string userName;
cout<<"Hi Whats your name? "< cin>>userName; cout << userName << "Nice to meet you, My name is Raphie"< wordgame(); talkabout(userName); maths(userName); } int wordgame() { const int a = 3; string word[a] = { "apple","ball","cat" }; string nword[a] = { "lppea","lalb","cta" }; string j; int point=0; int ctr = 0;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
