Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionunmanaged c++ VS2005 Pin
spin vector19-May-07 7:38
spin vector19-May-07 7:38 
AnswerRe: unmanaged c++ VS2005 Pin
CPallini19-May-07 11:39
mveCPallini19-May-07 11:39 
AnswerRe: unmanaged c++ VS2005 Pin
Michael Dunn19-May-07 11:50
sitebuilderMichael Dunn19-May-07 11:50 
Questionproblems coding with Arrays :/ Pin
Immunity1819-May-07 6:32
Immunity1819-May-07 6:32 
AnswerRe: problems coding with Arrays :/ Pin
Immunity1819-May-07 8:15
Immunity1819-May-07 8:15 
QuestionC++ in TURBO C Pin
WHATEVE19-May-07 6:04
WHATEVE19-May-07 6:04 
AnswerRe: C++ in TURBO C Pin
normanS19-May-07 7:52
normanS19-May-07 7:52 
Questionproblem while casting long to double Pin
Immunity1819-May-07 5:36
Immunity1819-May-07 5:36 
I am trying to make a long number to double ( or that isn't possible? )
compiler throw me 2 errors on s variable (illegal , left operant has type 'double' )

What am I do wrong ? :/ as usually

my code :
double find_values( long p[] ,int nCount )
{
double mid ;
double s ;
for ( int i =0 ; i < nCount ; i++ )
{
mid = mid + p[i];
}
mid = mid/nCount;
for (int z = 0 ; z < nCount ; z++)
{
s = (double) (s + (p[z] - mid)^2);
}
s = (s/(nCount -1))^(1/2);

return (mid,s);
}
AnswerRe: problem while casting long to double Pin
shivditya19-May-07 6:10
shivditya19-May-07 6:10 
GeneralRe: problem while casting long to double Pin
Immunity1819-May-07 6:12
Immunity1819-May-07 6:12 
AnswerRe: problem while casting long to double Pin
Michael Dunn19-May-07 6:18
sitebuilderMichael Dunn19-May-07 6:18 
GeneralRe: problem while casting long to double Pin
Immunity1819-May-07 6:20
Immunity1819-May-07 6:20 
QuestionPrint Preview without printer Pin
shivditya19-May-07 5:30
shivditya19-May-07 5:30 
AnswerRe: Print Preview without printer Pin
Hamid_RT19-May-07 6:47
Hamid_RT19-May-07 6:47 
QuestionRe: Print Preview without printer Pin
shivditya19-May-07 6:59
shivditya19-May-07 6:59 
AnswerRe: Print Preview without printer Pin
Don Fletcher19-May-07 15:12
Don Fletcher19-May-07 15:12 
GeneralRe: Print Preview without printer Pin
shivditya19-May-07 17:43
shivditya19-May-07 17:43 
Questionprogram of find Mode Pin
KARFER19-May-07 3:42
KARFER19-May-07 3:42 
AnswerRe: program of find Mode Pin
shivditya19-May-07 5:53
shivditya19-May-07 5:53 
GeneralRe: program of find Mode Pin
KARFER20-May-07 6:11
KARFER20-May-07 6:11 
QuestionAppend a string to another Pin
C_Zealot19-May-07 1:18
C_Zealot19-May-07 1:18 
AnswerRe: Append a string to another Pin
Christian Graus19-May-07 1:51
protectorChristian Graus19-May-07 1:51 
QuestionClistCtrl DoubleClick Hit Column??? Pin
tiflo19-May-07 0:40
tiflo19-May-07 0:40 
AnswerRe: ClistCtrl DoubleClick Hit Column??? Pin
kvrnkiran20-May-07 22:40
kvrnkiran20-May-07 22:40 
QuestionLinkedList Pin
T.RATHA KRISHNAN19-May-07 0:25
T.RATHA KRISHNAN19-May-07 0:25 

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.