Code:
#include <iostream>
#include "addressbook.h"
using namespace std;
struct PERSON
{
char fName[25];
char lName[25];
char email[25];
};
PERSON addresses[MAXADDRESS]:
#include <iostream>
#include "addressbook.h"
using namespace std;
struct PERSON
{
char fName[25];
char lName[25];
char email[25];
};
PERSON addresses[MAXADDRESS]:
/* Write a function called foo that asks the user for their age. Pass the age value to a function called showAge that uses a select case structure to print out the following: If the age is 0-12 print out "You are still a child. If the age is 13 - 19 print out "You are a teenager. If the age is 20 - 40 print "You
/* Write a function called foo that asks the user for their age. Pass the age value to a function called showAge that uses a select case structure to print out the following: If the age is 0-12 print out "You are still a child. If the age is 13 - 19 print out "You are a teenager. If the age is 20 - 40 print "You are an adult" anything
#include <iostream>
using namespace std;
int foo ();
int x;
int showAge ();
int main()
{
foo();
}
int foo()
{
cout << "Please Enter Your Age:" << endl;
cin >> x;
showAge();
return x;
}
int showAge ()
{
Leave a comment: