Click here to Skip to main content
16,004,969 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to Implement a Virtual Grid Pin
Stuck At Zero18-Jul-07 7:36
Stuck At Zero18-Jul-07 7:36 
GeneralRe: How to Implement a Virtual Grid Pin
led mike18-Jul-07 8:38
led mike18-Jul-07 8:38 
GeneralRe: How to Implement a Virtual Grid Pin
Stuck At Zero18-Jul-07 9:02
Stuck At Zero18-Jul-07 9:02 
GeneralRe: How to Implement a Virtual Grid Pin
led mike18-Jul-07 9:50
led mike18-Jul-07 9:50 
GeneralRe: How to Implement a Virtual Grid Pin
David Crow10-Aug-07 10:14
David Crow10-Aug-07 10:14 
Questionhow to keep white spaces when input from text file? Pin
andyspartyshop17-Jul-07 9:29
andyspartyshop17-Jul-07 9:29 
AnswerRe: how to keep white spaces when input from text file? Pin
Nelek17-Jul-07 19:45
protectorNelek17-Jul-07 19:45 
GeneralRe: how to keep white spaces when input from text file? Pin
andyspartyshop20-Jul-07 6:36
andyspartyshop20-Jul-07 6:36 
Not sure if I'm suppose to reply or not but oh well...
Thanks for the help. I looked at it and it gave me another idea. Since I was controlling the format of the input file, I just decided to have a word then '\t' delimiter then num1 tab num2 tab num3 endl

Here's what it looked like codewise:

while(getline(input1, word, '\t')) //reads the first line of input until the first tab delimiter is found
{
input1>>num1>>num2>>num3; //inputs the numbers associated with the word respectively
if (word == "Total") //Total is a separate data set that needs to be kept away from rest of data
{
total1+=num1;
total2+=num2;
total3+=num3;
}
else
{
wordCount[word] += num1; //take the word and if new add it to the maps
single[word] += num2; //otherwise if word already exists just update the count
compound[word] += num3;
}
getline(input1, word, '\n'); //formatting trick so that the endline delimiter wouldn't become new word
}
--------------------------

I'm new to programming and still learning so I am open to any suggestions or comments you or anyone else may have.

Once again thanks.
GeneralRe: how to keep white spaces when input from text file? Pin
Nelek28-Jul-07 4:29
protectorNelek28-Jul-07 4:29 
QuestionShowing and hidind parts of a bitmap [modified][Solved] Pin
RickyC17-Jul-07 9:13
RickyC17-Jul-07 9:13 
AnswerRe: Showing and hidind parts of a bitmap Pin
RickyC17-Jul-07 9:22
RickyC17-Jul-07 9:22 
QuestionTry - Catch VC6.0 VS VC2k5 Pin
Wouter Dhondt17-Jul-07 8:32
Wouter Dhondt17-Jul-07 8:32 
AnswerRe: Try - Catch VC6.0 VS VC2k5 Pin
Mark Salsbery17-Jul-07 10:11
Mark Salsbery17-Jul-07 10:11 
GeneralRe: Try - Catch VC6.0 VS VC2k5 Pin
Wouter Dhondt17-Jul-07 11:04
Wouter Dhondt17-Jul-07 11:04 
GeneralRe: Try - Catch VC6.0 VS VC2k5 Pin
Mark Salsbery17-Jul-07 11:43
Mark Salsbery17-Jul-07 11:43 
QuestionUnwanted reuse of existing VC++ 6.0 instance Pin
cbrack66617-Jul-07 8:27
cbrack66617-Jul-07 8:27 
GeneralRe: Unwanted reuse of existing VC++ 6.0 instance Pin
thammadi18-Jul-07 22:41
thammadi18-Jul-07 22:41 
QuestionWhat is the best way to convert existing ActiveX DLL to ActiveX EXE? Pin
Anand Todkar17-Jul-07 7:57
Anand Todkar17-Jul-07 7:57 
AnswerRe: What is the best way to convert existing ActiveX DLL to ActiveX EXE? Pin
Cedric Moonen17-Jul-07 8:35
Cedric Moonen17-Jul-07 8:35 
GeneralRe: What is the best way to convert existing ActiveX DLL to ActiveX EXE? Pin
Anand Todkar17-Jul-07 20:25
Anand Todkar17-Jul-07 20:25 
QuestionDLL to check loaded DLLs Pin
Chris Christian17-Jul-07 7:33
Chris Christian17-Jul-07 7:33 
AnswerRe: DLL to check loaded DLLs Pin
Perspx17-Jul-07 9:31
Perspx17-Jul-07 9:31 
GeneralRe: DLL to check loaded DLLs Pin
Chris Christian17-Jul-07 10:13
Chris Christian17-Jul-07 10:13 
GeneralRe: DLL to check loaded DLLs Pin
Perspx17-Jul-07 10:15
Perspx17-Jul-07 10:15 
QuestionCProgressCtrl freezes during processing Pin
theallmightycpd17-Jul-07 7:01
theallmightycpd17-Jul-07 7:01 

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.