Click here to Skip to main content
15,905,068 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Transparent Window on an WinCe-based PNA Pin
«_Superman_»27-Jul-09 1:52
professional«_Superman_»27-Jul-09 1:52 
GeneralRe: Transparent Window on an WinCe-based PNA Pin
ml196928-Jul-09 6:55
ml196928-Jul-09 6:55 
QuestionHttpSendRequest() not sending out HTTP requests Pin
GusSabina25-Jul-09 19:13
GusSabina25-Jul-09 19:13 
QuestionCompiler / Linker settings. Pin
FISH78625-Jul-09 18:59
FISH78625-Jul-09 18:59 
AnswerRe: Compiler / Linker settings. Pin
«_Superman_»26-Jul-09 3:47
professional«_Superman_»26-Jul-09 3:47 
GeneralRe: Compiler / Linker settings. Pin
FISH78626-Jul-09 4:52
FISH78626-Jul-09 4:52 
GeneralRe: Compiler / Linker settings. Pin
«_Superman_»26-Jul-09 16:40
professional«_Superman_»26-Jul-09 16:40 
GeneralRe: Compiler / Linker settings. Pin
FISH78626-Jul-09 16:53
FISH78626-Jul-09 16:53 
GeneralRe: Compiler / Linker settings. Pin
FISH78628-Jul-09 10:54
FISH78628-Jul-09 10:54 
QuestionCommunication DLL C# et DLL C++ Pin
wislamOS25-Jul-09 15:29
wislamOS25-Jul-09 15:29 
AnswerRe: Communication DLL C# et DLL C++ Pin
Joe Woodbury25-Jul-09 16:05
professionalJoe Woodbury25-Jul-09 16:05 
GeneralRe: Communication DLL C# et DLL C++ Pin
wislamOS25-Jul-09 16:21
wislamOS25-Jul-09 16:21 
GeneralRe: Communication DLL C# et DLL C++ Pin
harold aptroot25-Jul-09 16:31
harold aptroot25-Jul-09 16:31 
GeneralRe: Communication DLL C# et DLL C++ Pin
Joe Woodbury25-Jul-09 16:41
professionalJoe Woodbury25-Jul-09 16:41 
GeneralRe: Communication DLL C# et DLL C++ Pin
Richard Andrew x6425-Jul-09 17:13
professionalRichard Andrew x6425-Jul-09 17:13 
GeneralRe: Communication DLL C# et DLL C++ Pin
Joe Woodbury25-Jul-09 17:21
professionalJoe Woodbury25-Jul-09 17:21 
AnswerRe: Communication DLL C# et DLL C++ Pin
Randor 25-Jul-09 22:36
professional Randor 25-Jul-09 22:36 
QuestionData integrity question. Pin
Ahmed Charfeddine25-Jul-09 13:36
Ahmed Charfeddine25-Jul-09 13:36 
AnswerRe: Data integrity question. Pin
Joe Woodbury25-Jul-09 15:58
professionalJoe Woodbury25-Jul-09 15:58 
QuestionLimiting a Window's Size Pin
Steve Thresher25-Jul-09 7:07
Steve Thresher25-Jul-09 7:07 
AnswerRe: Limiting a Window's Size Pin
Code-o-mat25-Jul-09 7:38
Code-o-mat25-Jul-09 7:38 
GeneralRe: Limiting a Window's Size Pin
Steve Thresher25-Jul-09 10:59
Steve Thresher25-Jul-09 10:59 
QuestionSecond short, easy program with harmonic average, works, but need coments... Pin
zutautas25-Jul-09 7:00
zutautas25-Jul-09 7:00 
http://en.wikipedia.org/wiki/Harmonic_average[^]

This program calculates Harmonic avarage in my opinion, but as i understand its not exactly corect. If i would need to make this from tousands numbers would this " b=b+1.0000000/a[i]; " be the same value as it should be or its just a bit diferent.


/* 2. Write a program which reads 10 numbers, and computes the harmonic average
*/

#include <iostream>
using namespace std;

int main() {
double a[10];
double b;
b=0;
for(int i=0;i<10;i++){
cin >>a[i];
b=b+1.0000000/a[i];
}
cout <<b/10;
}
QuestionShort, easy program, dont work properly. Pin
zutautas25-Jul-09 1:48
zutautas25-Jul-09 1:48 
AnswerRe: Short, easy program, dont work properly. Pin
Rajesh R Subramanian25-Jul-09 2:19
professionalRajesh R Subramanian25-Jul-09 2:19 

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.