Click here to Skip to main content
16,004,887 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get Ip Pin
gamitech1-Jun-04 23:42
gamitech1-Jun-04 23:42 
AnswerRe: How to get Ip Pin
Nirav Doshi1-Jun-04 23:54
Nirav Doshi1-Jun-04 23:54 
GeneralRe: How to get Ip Pin
gamitech1-Jun-04 23:58
gamitech1-Jun-04 23:58 
AnswerRe: How to get Ip Pin
Antony M Kancidrowski1-Jun-04 23:57
Antony M Kancidrowski1-Jun-04 23:57 
GeneralRe: How to get Ip Pin
gamitech2-Jun-04 0:01
gamitech2-Jun-04 0:01 
GeneralRe: How to get Ip Pin
gamitech2-Jun-04 0:02
gamitech2-Jun-04 0:02 
AnswerRe: How to get Ip Pin
David Crow2-Jun-04 3:28
David Crow2-Jun-04 3:28 
Generaloverloading the iostream operators ( >> and <<) Pin
kaspasewe1-Jun-04 23:09
kaspasewe1-Jun-04 23:09 
Confused | :confused: i've tried overloading the operator >> and <<... but the compiler keeps complaining that i cant acess private data. this is after using a friend fuction. all other friend fuctions can acess private data except these two function. i am currently using VC++ 6.0 can anybody tell me whats the problem.
hre is an example of the code
//point class
class mypoints
{
private:
int x;
int y;
public:
//constructors
friend istream& operator >> (istream& s, mypoint& p);
friend ostream& operator << (ostream& s, mypoint& p);
};
//////////////////////////////////////////////
//function defination
istream& operator >> (istream& s, mypoint& p) {
cout<<"enter the x value : ";s>>p.x;
cout<<"enter the y value : ";s>>p.y;
return s;
}
what could be the problem
help !!!!



THE STUDENT
GeneralRe: overloading the iostream operators ( &gt;&gt; and &lt;&lt;) Pin
gamitech1-Jun-04 23:52
gamitech1-Jun-04 23:52 
GeneralRe: overloading the iostream operators ( &gt;&gt; and &lt;&lt;) Pin
kaspasewe4-Jun-04 0:08
kaspasewe4-Jun-04 0:08 
Generalchangin rezolution in a Win32 APP Pin
gamitech1-Jun-04 23:09
gamitech1-Jun-04 23:09 
GeneralRe: changin rezolution in a Win32 APP Pin
Frank K2-Jun-04 0:34
Frank K2-Jun-04 0:34 
GeneralRe: changin rezolution in a Win32 APP Pin
gamitech2-Jun-04 0:55
gamitech2-Jun-04 0:55 
Generalhowto Determine encoding of a text file Pin
ananttrivedi1-Jun-04 22:55
ananttrivedi1-Jun-04 22:55 
GeneralRe: howto Determine encoding of a text file Pin
RChin1-Jun-04 23:33
RChin1-Jun-04 23:33 
QuestionCRectTracker problem? Pin
raed1-Jun-04 22:39
raed1-Jun-04 22:39 
GeneralUsing latest SDK with Visual C++ 6.0 Pin
Anonymous1-Jun-04 22:37
Anonymous1-Jun-04 22:37 
GeneralRe: Using latest SDK with Visual C++ 6.0 Pin
Nirav Doshi1-Jun-04 23:09
Nirav Doshi1-Jun-04 23:09 
GeneralRe: Using latest SDK with Visual C++ 6.0 Pin
thowra1-Jun-04 23:31
thowra1-Jun-04 23:31 
GeneralDisplaying line number in MS VC++ 6.0 Pin
ron4ld1-Jun-04 22:03
ron4ld1-Jun-04 22:03 
GeneralRe: Displaying line number in MS VC++ 6.0 Pin
Nirav Doshi1-Jun-04 23:14
Nirav Doshi1-Jun-04 23:14 
GeneralRe: Displaying line number in MS VC++ 6.0 Pin
ron4ld1-Jun-04 23:38
ron4ld1-Jun-04 23:38 
GeneralRe: Displaying line number in MS VC++ 6.0 Pin
RChin2-Jun-04 0:32
RChin2-Jun-04 0:32 
GeneralRe: Displaying line number in MS VC++ 6.0 Pin
si_692-Jun-04 2:05
si_692-Jun-04 2:05 
GeneralRe: Displaying line number in MS VC++ 6.0 Pin
RChin2-Jun-04 2:31
RChin2-Jun-04 2:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.