C++ IN VXWORKS

S

Thread Starter

srikantan

my code startup:<pre>
#include<iostream>
using namespace std;

class aa
{
private:
int a;
char ch;
public:
void getdata(void);
void disp();
};
void aa::getdata()
{
cin>>a;
cin>>ch;
}
void aa::disp()
{
cout<<a;
cout<<ch;
}
int main(void)
{
aa A;
A.getdata();
A.disp();
return 0;
}</pre>
**cin is not recognized by the compiler?
 
Top