A few issues;
1. You should include
iostream
, not
iostream.h
2. The class declaration must end with
;
3. Change the return type of
main
from
void
to
int
I think you want your code to look more like this;
#include<iostream>
using namespace std;
class crcpara
{
public:
void chooser_disp()
{
cout << "\t no: name of the ocean \n";
cout << "\t 1 Indian ocean \n";
cout << "\t 2 pacific ocean \n";
cout << "\t 3 atlantic ocean \n";
cout << "\t 4 articic ocean \n";
}
};
int main()
{
crcpara plm;
cout << " hello, this program is for enterpreuners and NOT for kids, so maintain caution "<<endl;
cout << " please choose the ocean which your going to fish in "<<endl;
plm.chooser_disp();
cin.get();
return 0;
}
Hope this helps,
Fredrik