Rewrite the following C++ code after removing the syntax error(s) (if any). Underline each correction.
include<iostream.h>
class FLIGHT{
long FlightCode;
char Description[25];
public:
void AddInfo ()
{
cin>>FlightCode; gets(Description);
}
void ShowInfo()
{
cout<<FlightCode<<“:” <<Description<<end1;
}
};
void main() {
FLIGHT F;
AddInfo.F();
ShowInfo.F();
}
All Replies
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.