How can I get the apstrings data type to work? I've tried to download =
different Apstring header files from the internet and tried using each =
one, but none of them work. This is the program i'm trying to create:
#include "apstring.h"
#include<iostream.h>
int main()
{
apstring name, rank;
char middle_initial;
int years_of_service;
cout<<"Enter the full name: ";
getline(cin, name);
cout<<"Enter the rank (Assistant, Associate, or Full): ";
cin>>rank;
cout<<"Enter the number of years of service: ";
cin>>years_of_service;
cout<<endl<<endl;
cout<<"name: "<<name<<endl;
cout<"Rank: "<<rank<<" Professor"<<endl;
cout<<"Years of service: "<<years_of_service<<endl;
return 0;
}
|