Click here to Skip to main content
15,901,284 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Console runtime null variables Pin
Maarten Kools14-May-04 12:00
professionalMaarten Kools14-May-04 12:00 
QuestionNeed to retrieve data from a dialog into my class(not MFC class) How? Pin
Larry A Mills14-May-04 11:53
Larry A Mills14-May-04 11:53 
GeneralCasting into a short from a byte array Pin
Wheatbread14-May-04 11:45
Wheatbread14-May-04 11:45 
GeneralRe: Casting into a short from a byte array Pin
Wheatbread14-May-04 11:58
Wheatbread14-May-04 11:58 
QuestionHow to get HWND of VC++ OCX from VB Client Pin
Nirav Doshi14-May-04 11:23
Nirav Doshi14-May-04 11:23 
AnswerRe: How to get HWND of VC++ OCX from VB Client Pin
Member 42102514-May-04 14:27
Member 42102514-May-04 14:27 
GeneralRe: How to get HWND of VC++ OCX from VB Client Pin
Nirav Doshi14-May-04 21:37
Nirav Doshi14-May-04 21:37 
GeneralHelp for a New programmer Pin
Anonymous14-May-04 9:42
Anonymous14-May-04 9:42 
Hi.

I am taking my first programming class and I am trying to write a sample void function. Would anyone be willing to show me what I am doing wrong? Here is what I have so far:


#include <iostream>


using namespace std;
void GetNumbers(int&, int&, int&);

int main ()

{
int a;
int b;
int c;
int average;

GetNumbers (a,b,c);
average=(a+b+c)/3;

cout << "The average of your numbers is"<< average << endl;

}

Void GetNumbers(int& firstnumber, int& secondnumber, int& thirdnumber)

{
cout<< "enter three numbers" <<endl;
cin>>firstnumber>>secondnumber>>thirdnumber;

}
GeneralRe: Help for a New programmer Pin
Anonymous14-May-04 10:03
Anonymous14-May-04 10:03 
GeneralRe: Help for a New programmer Pin
Anonymous14-May-04 18:50
Anonymous14-May-04 18:50 
GeneralRe: Help for a New programmer Pin
J. Eric Vaughan14-May-04 10:47
J. Eric Vaughan14-May-04 10:47 
GeneralRe: Help for a New programmer Pin
Anonymous14-May-04 18:54
Anonymous14-May-04 18:54 
GeneralRe: Help for a New programmer Pin
Cpudood14-May-04 12:00
Cpudood14-May-04 12:00 
GeneralRe: Help for a New programmer Pin
Anonymous14-May-04 19:06
Anonymous14-May-04 19:06 
GeneralActivex method Pin
Roger H Art14-May-04 9:31
sussRoger H Art14-May-04 9:31 
GeneralRe: Activex method Pin
Member 42102515-May-04 7:34
Member 42102515-May-04 7:34 
GeneralUsing fprintf in sockets Pin
pie14-May-04 9:26
pie14-May-04 9:26 
GeneralBorland to Visual C++ Conversion Pin
Bill Miller14-May-04 9:11
Bill Miller14-May-04 9:11 
GeneralRe: Borland to Visual C++ Conversion Pin
Joe Woodbury14-May-04 9:33
professionalJoe Woodbury14-May-04 9:33 
GeneralRe: Borland to Visual C++ Conversion Pin
Bill Miller14-May-04 10:49
Bill Miller14-May-04 10:49 
Generalerror PRJ0019: A tool returned an error code: Performing registration Pin
parkerpkthn14-May-04 7:51
parkerpkthn14-May-04 7:51 
GeneralRe: error PRJ0019: A tool returned an error code: Performing registration Pin
Giles14-May-04 8:58
Giles14-May-04 8:58 
QuestionHow to find paint region of every window? Pin
alexiworld14-May-04 6:57
alexiworld14-May-04 6:57 
AnswerRe: How to find paint region of every window? Pin
Maarten Kools14-May-04 7:25
professionalMaarten Kools14-May-04 7:25 
GeneralTimeStamp Protocol Pin
Luis Ricardo14-May-04 6:56
Luis Ricardo14-May-04 6:56 

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.