Click here to Skip to main content
15,894,291 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: server socket problem, simple... Pin
includeh1029-Jun-02 16:02
includeh1029-Jun-02 16:02 
GeneralRe: server socket problem, simple... Pin
markkuk29-Jun-02 23:21
markkuk29-Jun-02 23:21 
Generalsynchronize remote recordset with local one Pin
28-Jun-02 17:42
suss28-Jun-02 17:42 
Questionhow to get info from stdio? Pin
includeh1028-Jun-02 17:36
includeh1028-Jun-02 17:36 
AnswerRe: how to get info from stdio? Pin
Michael Dunn28-Jun-02 20:20
sitebuilderMichael Dunn28-Jun-02 20:20 
GeneralRe: how to get info from stdio? Pin
Mike Nordell30-Jun-02 0:20
Mike Nordell30-Jun-02 0:20 
GeneralRe: how to get info from stdio? Pin
includeh1030-Jun-02 21:06
includeh1030-Jun-02 21:06 
Generalfriend function problem ... Pin
Hadi Rezaee28-Jun-02 16:33
Hadi Rezaee28-Jun-02 16:33 
What is the wrong ?

Confused | :confused:


#include <stdio.h>
#include <conio.h>
#include <iostream.h>

class MyMath
{
public:
friend int Sum(int v1, int v2);
};

int Sum(int v1, int v2)
{
return v1 + v2;
}

void main()
{
MyMath obj;
cout << "Result: " << obj.Sum(1, 3);
_getch();
}

My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html

Hadi Rezaie
GeneralRe: friend function problem ... Pin
moswal28-Jun-02 17:46
moswal28-Jun-02 17:46 
GeneralMemory Context Memory Leak Pin
moswal28-Jun-02 16:08
moswal28-Jun-02 16:08 
GeneralCircular Queue Pin
JohnnyG28-Jun-02 14:55
JohnnyG28-Jun-02 14:55 
GeneralRe: Circular Queue Pin
Ancient Dragon28-Jun-02 15:28
Ancient Dragon28-Jun-02 15:28 
GeneralRe: Circular Queue Pin
subtractive30-Jun-02 7:28
subtractive30-Jun-02 7:28 
GeneralRe: Circular Queue Pin
JohnnyG30-Jun-02 12:53
JohnnyG30-Jun-02 12:53 
GeneralOpaque Label Controls Pin
AndyO28-Jun-02 14:45
AndyO28-Jun-02 14:45 
GeneralWinCE Help Files Pin
Mel Stober28-Jun-02 12:27
Mel Stober28-Jun-02 12:27 
GeneralRe: WinCE Help Files Pin
Anders Molin29-Jun-02 3:03
professionalAnders Molin29-Jun-02 3:03 
GeneralMulti language Pin
orcun colak28-Jun-02 11:51
orcun colak28-Jun-02 11:51 
GeneralRe: Multi language Pin
Scott H. Settlemier29-Jun-02 6:20
Scott H. Settlemier29-Jun-02 6:20 
GeneralMessageBox problem - only flashes Pin
David Viggiano28-Jun-02 10:38
David Viggiano28-Jun-02 10:38 
GeneralRe: MessageBox problem - only flashes Pin
Jason Henderson28-Jun-02 16:24
Jason Henderson28-Jun-02 16:24 
GeneralHelp me>>>>>>>>>>>>>>>> Pin
Michael Liu28-Jun-02 8:36
Michael Liu28-Jun-02 8:36 
GeneralRe: Help me>>>>>>>>>>>>>>>> Pin
Mike Nordell28-Jun-02 8:46
Mike Nordell28-Jun-02 8:46 
GeneralRe: Help me>>>>>>>>>>>>>>>> Pin
Jason Henderson28-Jun-02 16:23
Jason Henderson28-Jun-02 16:23 
GeneralRe: Help me>>>>>>>>>>>>>>>> Pin
Christopher Lord28-Jun-02 20:45
Christopher Lord28-Jun-02 20:45 

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.