Click here to Skip to main content
15,913,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MRU list, how do i use it ? Pin
Igor Sukhov2-Dec-01 6:17
Igor Sukhov2-Dec-01 6:17 
GeneralRe: MRU list, how do i use it ? Pin
robbied2-Dec-01 7:12
robbied2-Dec-01 7:12 
GeneralChecking a menu item Pin
IGx891-Dec-01 14:47
IGx891-Dec-01 14:47 
GeneralRe: Checking a menu item Pin
Tim Smith1-Dec-01 14:56
Tim Smith1-Dec-01 14:56 
GeneralRe: Checking a menu item Pin
IGx892-Dec-01 8:38
IGx892-Dec-01 8:38 
GeneralCView Pin
Pham Viet Tung1-Dec-01 13:48
Pham Viet Tung1-Dec-01 13:48 
GeneralRe: CView Pin
Nish Nishant1-Dec-01 15:30
sitebuilderNish Nishant1-Dec-01 15:30 
GeneralInsight on STL Containers & One Specific Question Pin
valikac1-Dec-01 12:53
valikac1-Dec-01 12:53 
Hi,
What is your perference when it comes to STL containers? I know many programmers prefer the vector because it random-access. However, deque container is random-access and could be changed from front, middle and back. I prefer the list, but it is hard for me to access specific data inside the list mainly because of my inexperience with STL. Nonetheless, I prefer list because of the innovative way it manages insert and delete (does not need to move all data).

I am implementing deque a program. The program reads data from a file line by line. The program saves each line of data from the file into a character array. I want to "push" each character array into a deque. At the end, I use the unique function to delete all clones. For example let say I have a file with the following:
-------
123
231
123
321
-------

First, the program reads one line at a time and copy the line into a character array. Then the program copies the entire character array into the STL container. Once the program has reached the end of the file, then it will delete all clones such as "123" from the above example.

How do you push a *character array* into an STL container, specifically a deque?

Thanks,
Kuphryn

GeneralRe: Insight on STL Containers & One Specific Question Pin
Chris Hafey1-Dec-01 17:08
Chris Hafey1-Dec-01 17:08 
GeneralRe: Insight on STL Containers & One Specific Question Pin
Todd Smith2-Dec-01 5:29
Todd Smith2-Dec-01 5:29 
GeneralRe: Insight on STL Containers & One Specific Question Pin
valikac3-Dec-01 12:48
valikac3-Dec-01 12:48 
GeneralFinding the keyboard and mouse Pin
Winstone1-Dec-01 11:10
Winstone1-Dec-01 11:10 
GeneralRe: Finding the keyboard and mouse Pin
Nish Nishant1-Dec-01 15:34
sitebuilderNish Nishant1-Dec-01 15:34 
GeneralRe: Finding the keyboard and mouse Pin
Hadi Rezaee1-Dec-01 19:06
Hadi Rezaee1-Dec-01 19:06 
GeneralRe: Finding the keyboard and mouse Pin
Nish Nishant1-Dec-01 21:21
sitebuilderNish Nishant1-Dec-01 21:21 
QuestionName of Internet Connection ? Pin
ColinDavies1-Dec-01 9:18
ColinDavies1-Dec-01 9:18 
QuestionIs there an API to add a header/footer to a PDF? Pin
Nish Nishant1-Dec-01 8:58
sitebuilderNish Nishant1-Dec-01 8:58 
AnswerRe: Is there an API to add a header/footer to a PDF? Pin
Rick York1-Dec-01 9:25
mveRick York1-Dec-01 9:25 
GeneralRe: Is there an API to add a header/footer to a PDF? Pin
Nish Nishant1-Dec-01 9:29
sitebuilderNish Nishant1-Dec-01 9:29 
Generaldll example problem Pin
Kuniva1-Dec-01 8:32
Kuniva1-Dec-01 8:32 
GeneralRe: dll example problem Pin
Rick York1-Dec-01 9:24
mveRick York1-Dec-01 9:24 
GeneralRe: dll example problem Pin
Lim Bio Liong3-Dec-01 1:15
Lim Bio Liong3-Dec-01 1:15 
GeneralHyperlink on a dialog Pin
1-Dec-01 7:17
suss1-Dec-01 7:17 
GeneralRe: Hyperlink on a dialog Pin
Michael Dunn1-Dec-01 7:48
sitebuilderMichael Dunn1-Dec-01 7:48 
GeneralRe: Hyperlink on a dialog Pin
Jon Sagara1-Dec-01 7:49
Jon Sagara1-Dec-01 7:49 

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.