Click here to Skip to main content
15,893,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Getting LogicalDriveInformation of different hard disks..... Pin
User 74293388-Jan-11 1:26
professionalUser 74293388-Jan-11 1:26 
AnswerRe: Getting LogicalDriveInformation of different hard disks..... Pin
Luc Pattyn8-Jan-11 1:33
sitebuilderLuc Pattyn8-Jan-11 1:33 
QuestionRe: Getting LogicalDriveInformation of different hard disks..... Pin
David Crow10-Jan-11 5:48
David Crow10-Jan-11 5:48 
QuestionRead Serial Port data [modified] Pin
shiv@nand8-Jan-11 0:15
shiv@nand8-Jan-11 0:15 
AnswerRe: Read Serial Port data Pin
User 74293388-Jan-11 1:48
professionalUser 74293388-Jan-11 1:48 
AnswerRe: Read Serial Port data Pin
Richard MacCutchan8-Jan-11 2:36
mveRichard MacCutchan8-Jan-11 2:36 
QuestionPopulate An Array With Numbers. Pin
Mike Certini7-Jan-11 10:39
Mike Certini7-Jan-11 10:39 
AnswerRe: Populate An Array With Numbers. Pin
Nuri Ismail7-Jan-11 10:48
Nuri Ismail7-Jan-11 10:48 
Here is the problem:
// You are indexing with "limit", which is the size of your array
scanf("%d", &numbers[limit]);
// Change the above line to:
scanf("%d", &numbers[index]);



Mike Certini wrote:
What I have discovered is that I have to input a \o for the program to know that it is the end of my input.

This is not true. When you enter the limit-th number the loop will end and the program will exit.


Mike Certini wrote:

Secondly, I have problems with index variable. When I loop one time or when I press enter after inputing a number, my index number advances to 8. My question is why the index does not advance to 2?

Actually it is incremented by 1 after each iteration (index++ part of your for loop) but you are indexing with wrong variable (I pointed out this problem at the start of my answer).

I hope this helps. Smile | :)
GeneralRe: Populate An Array With Numbers. Pin
Mike Certini7-Jan-11 12:40
Mike Certini7-Jan-11 12:40 
QuestionUsing CSplitterWnd OnCreateClient to split window Pin
cy163@hotmail.com7-Jan-11 4:32
cy163@hotmail.com7-Jan-11 4:32 
AnswerRe: Using CSplitterWnd OnCreateClient to split window Pin
Eugen Podsypalnikov7-Jan-11 9:05
Eugen Podsypalnikov7-Jan-11 9:05 
Questionmanipulation de bits dans une variable quelconque Pin
andromida7-Jan-11 3:52
andromida7-Jan-11 3:52 
AnswerRe: manipulation de bits dans une variable quelconque Pin
Yusuf7-Jan-11 3:55
Yusuf7-Jan-11 3:55 
AnswerRe: manipulation de bits dans une variable quelconque Pin
Code-o-mat7-Jan-11 3:57
Code-o-mat7-Jan-11 3:57 
AnswerRe: manipulation de bits dans une variable quelconque Pin
User 74293387-Jan-11 4:02
professionalUser 74293387-Jan-11 4:02 
AnswerRe: manipulation de bits dans une variable quelconque Pin
Luc Pattyn7-Jan-11 5:26
sitebuilderLuc Pattyn7-Jan-11 5:26 
QuestionNot able to Read Contents for File while Reading Huge Amount of data. Pin
janaswamy uday7-Jan-11 3:37
janaswamy uday7-Jan-11 3:37 
AnswerRe: Not able to Read Contents for File while Reading Huge Amount of data. Pin
CPallini7-Jan-11 3:43
mveCPallini7-Jan-11 3:43 
AnswerRe: Not able to Read Contents for File while Reading Huge Amount of data. Pin
Paresh Chitte7-Jan-11 3:54
Paresh Chitte7-Jan-11 3:54 
AnswerRe: Not able to Read Contents for File while Reading Huge Amount of data. Pin
David Crow7-Jan-11 4:12
David Crow7-Jan-11 4:12 
AnswerRe: Not able to Read Contents for File while Reading Huge Amount of data. Pin
Richard MacCutchan7-Jan-11 5:38
mveRichard MacCutchan7-Jan-11 5:38 
AnswerRe: Not able to Read Contents for File while Reading Huge Amount of data. Pin
Andrew Brock10-Jan-11 23:55
Andrew Brock10-Jan-11 23:55 
GeneralRe: Not able to Read Contents for File while Reading Huge Amount of data. Pin
janaswamy uday11-Jan-11 18:24
janaswamy uday11-Jan-11 18:24 
Question#include "testView.h" in MainFrm.cpp [modified] Pin
cy163@hotmail.com7-Jan-11 2:24
cy163@hotmail.com7-Jan-11 2:24 
AnswerRe: #include "testView.h" in MainFrm.cpp Pin
Niklas L7-Jan-11 2:43
Niklas L7-Jan-11 2:43 

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.