Click here to Skip to main content
15,888,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . SOLVED Pin
Richard MacCutchan18-Sep-10 6:10
mveRichard MacCutchan18-Sep-10 6:10 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
garaber26-Jan-11 12:32
garaber26-Jan-11 12:32 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
Richard MacCutchan26-Jan-11 22:32
mveRichard MacCutchan26-Jan-11 22:32 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
garaber27-Jan-11 2:53
garaber27-Jan-11 2:53 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
garaber27-Jan-11 3:05
garaber27-Jan-11 3:05 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
Richard MacCutchan27-Jan-11 3:19
mveRichard MacCutchan27-Jan-11 3:19 
QuestionAdd iamge to subbutton in RibbonStatusbar failed? Pin
coolhem17-Sep-10 17:23
coolhem17-Sep-10 17:23 
QuestionDouble average Pin
Tim Dappen17-Sep-10 12:09
Tim Dappen17-Sep-10 12:09 
Greetings.

I need to write a function that has the following interface:

double average (int size, double values []);

The function should return the average of the first size values in the array values.


Here's an example of what I need to accomplish.

Enter number of values to be input : 5
Enter item 1 : 22.3
Current average is 22.3.
Enter item 2 : 54.2
Current average is 38.25.
Enter item 3 : 74
Current average is 50.1667.
Enter item 4 : 83.1
Current average is 58.4.
Enter item 5 : -90.
Final average is 28.72.
AnswerRe: Double average Pin
Maximilien17-Sep-10 12:44
Maximilien17-Sep-10 12:44 
GeneralRe: Double average Pin
Tim Dappen17-Sep-10 12:56
Tim Dappen17-Sep-10 12:56 
GeneralRe: Double average Pin
Richard MacCutchan17-Sep-10 22:07
mveRichard MacCutchan17-Sep-10 22:07 
QuestionRe: Double average Pin
David Crow17-Sep-10 15:58
David Crow17-Sep-10 15:58 
AnswerRe: Double average Pin
Maximilien17-Sep-10 16:59
Maximilien17-Sep-10 16:59 
GeneralRe: Double average Pin
David Crow18-Sep-10 9:33
David Crow18-Sep-10 9:33 
AnswerRe: Double average Pin
Tim Craig18-Sep-10 7:08
Tim Craig18-Sep-10 7:08 
AnswerRe: Double average Pin
Stephen Hewitt17-Sep-10 19:19
Stephen Hewitt17-Sep-10 19:19 
AnswerRe: Double average Pin
Aescleal18-Sep-10 8:26
Aescleal18-Sep-10 8:26 
GeneralRe: Double average Pin
Stephen Hewitt18-Sep-10 20:57
Stephen Hewitt18-Sep-10 20:57 
GeneralRe: Double average [modified] Pin
Stefan_Lang28-Sep-10 2:28
Stefan_Lang28-Sep-10 2:28 
QuestionUsing Windows DataGridViewTool Pin
Danzy8317-Sep-10 4:42
Danzy8317-Sep-10 4:42 
AnswerRe: Using Windows DataGridViewTool [modified] Pin
Cool_Dev17-Sep-10 5:15
Cool_Dev17-Sep-10 5:15 
GeneralRe: Using Windows DataGridViewTool Pin
Danzy8317-Sep-10 5:34
Danzy8317-Sep-10 5:34 
GeneralRe: Using Windows DataGridViewTool Pin
Cool_Dev17-Sep-10 5:38
Cool_Dev17-Sep-10 5:38 
AnswerRe: Using Windows DataGridViewTool Pin
Rolf Kristensen20-Sep-10 10:10
Rolf Kristensen20-Sep-10 10:10 
QuestionNew into parallel programming, looking for advice Pin
Stefan_Lang17-Sep-10 4:20
Stefan_Lang17-Sep-10 4:20 

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.