Click here to Skip to main content
15,914,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp with ADODC in Visual C++ Pin
vanceliang11-Jul-03 22:26
vanceliang11-Jul-03 22:26 
GeneralRe: Help with ADODC in Visual C++ Pin
Toni7812-Jul-03 10:25
Toni7812-Jul-03 10:25 
GeneralRe: Help with ADODC in Visual C++ Pin
John M. Drescher12-Jul-03 19:11
John M. Drescher12-Jul-03 19:11 
GeneralRe: Help with ADODC in Visual C++ Pin
vanceliang13-Jul-03 4:27
vanceliang13-Jul-03 4:27 
QuestionHow can i get all modify info about a rowset? Pin
realfly11-Jul-03 21:17
realfly11-Jul-03 21:17 
Answerup Pin
realfly14-Jul-03 3:07
realfly14-Jul-03 3:07 
QuestionIs an STL vector an array? Pin
DaveE9th11-Jul-03 20:53
DaveE9th11-Jul-03 20:53 
AnswerRe: Is an STL vector an array? Pin
Andrew Walker11-Jul-03 21:37
Andrew Walker11-Jul-03 21:37 
No. But it can do many of the same types of things that an array can, and a bit more. Vectors are dynamic arrays, in that they can grow as you add elements to them. They are similar to arrays in that they provide the subscript operator[] (you can use standard array notation).

Use a vector if your code might throw exceptions.
Use a vector if most of your inserts will be at the back, and few near the front (otherwise consider deque or list).
Use a vector to support better initialisation.

Always prefer standard containers, list, vector, deque to arrays. less code, cleaner code, better support for copying - and in the end easier to work with.

[edit]Most vectors are internally implemented as arrays, but that shouldn't matter to the end user.[/edit]


If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.

Rudyard Kipling

GeneralRe: Is an STL vector an array? Pin
peterchen11-Jul-03 21:59
peterchen11-Jul-03 21:59 
GeneralRe: Is an STL vector an array? Pin
Ryan Binns11-Jul-03 22:53
Ryan Binns11-Jul-03 22:53 
GeneralRe: Is an STL vector an array? Pin
Tim Smith12-Jul-03 6:22
Tim Smith12-Jul-03 6:22 
AnswerRe: Is an STL vector an array? Pin
realfly11-Jul-03 21:38
realfly11-Jul-03 21:38 
GeneralRe: Is an STL vector an array? Pin
DaveE9th12-Jul-03 2:12
DaveE9th12-Jul-03 2:12 
Generali am very confused please help me! i am chinese ,my english is very poor, i had troubled with a question in MFC Pin
hongge11-Jul-03 20:13
hongge11-Jul-03 20:13 
Generalsomething like that8) Pin
realfly11-Jul-03 21:35
realfly11-Jul-03 21:35 
GeneralRe: something like that8) Pin
hongge11-Jul-03 23:15
hongge11-Jul-03 23:15 
GeneralRe: something like that8) Pin
realfly13-Jul-03 15:40
realfly13-Jul-03 15:40 
GeneralNeed some help(Beginner) Pin
Fightingbee11-Jul-03 19:43
Fightingbee11-Jul-03 19:43 
GeneralRe: Need some help(Beginner) Pin
Michael Dunn11-Jul-03 20:09
sitebuilderMichael Dunn11-Jul-03 20:09 
GeneralRe: Need some help(Beginner) Pin
Fightingbee11-Jul-03 20:21
Fightingbee11-Jul-03 20:21 
GeneralRe: Need some help(Beginner) Pin
Michael P Butler11-Jul-03 21:43
Michael P Butler11-Jul-03 21:43 
GeneralRe: Need some help(Beginner) Pin
Fightingbee12-Jul-03 5:54
Fightingbee12-Jul-03 5:54 
GeneralRe: Need some help(Beginner) Pin
Snyp12-Jul-03 6:33
Snyp12-Jul-03 6:33 
GeneralChanging Font Pin
Kristian Kratzenstein11-Jul-03 19:39
Kristian Kratzenstein11-Jul-03 19:39 
GeneralRe: Changing Font Pin
hongge11-Jul-03 20:29
hongge11-Jul-03 20:29 

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.