Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~876 People Reached
Favorite Forums
Favorite Tags
c++ x 7
Member Avatar for lookforlohith

#include<iostream> #include<fstream> #include<iomanip> using namespace std; class lohi { int x; int y; public : lohi() { x=10; y=20; } }X; int main() { fstream io; io.open("just1",ios::in | ios:: out | ios::app); io.write((char*)&X,sizeof(X)); io.close(); } in this programme i expect a file to be created and contents of x,y to …

Member Avatar for ivailosp
0
109
Member Avatar for lookforlohith

/tmp/ccSx0L0H.o: In function `employee::getdata()': multi.cc:(.text._ZN8employee7getdataEv[employee::getdata()]+0x31): warning: the `gets' function is dangerous and should not be used.

Member Avatar for Narue
0
128
Member Avatar for lookforlohith

[code=cplusplus] #include<iostream> using namespace std; class item { int itemno; int itemprice; public : static int total; void getprice(); void printprice(); friend void calculate(item a); }; int item :: total=0; void item :: getprice() { cout<<"Print item number \n"; cin>>itemno; cout<<"Print item price \n"; cin>>itemprice; total++; } void item :: …

Member Avatar for lookforlohith
0
639