Click here to Skip to main content
15,922,574 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: best way to replace items in a string Pin
Nish Nishant19-Mar-02 13:36
sitebuilderNish Nishant19-Mar-02 13:36 
GeneralRe: best way to replace items in a string Pin
Tim Smith19-Mar-02 13:48
Tim Smith19-Mar-02 13:48 
GeneralRe: best way to replace items in a string Pin
tbbooher20-Mar-02 7:29
tbbooher20-Mar-02 7:29 
GeneralRe: best way to replace items in a string Pin
Tim Smith20-Mar-02 7:35
Tim Smith20-Mar-02 7:35 
GeneralRe: best way to replace items in a string Pin
Tim Smith20-Mar-02 7:42
Tim Smith20-Mar-02 7:42 
GeneralRe: best way to replace items in a string Pin
Mazdak19-Mar-02 10:56
Mazdak19-Mar-02 10:56 
GeneralRe: best way to replace items in a string Pin
dazinith19-Mar-02 11:00
dazinith19-Mar-02 11:00 
GeneralRe: best way to replace items in a string Pin
Joaquín M López Muñoz19-Mar-02 11:50
Joaquín M López Muñoz19-Mar-02 11:50 
QuestionSuggestions on Using Grids? Pin
dazinith19-Mar-02 9:08
dazinith19-Mar-02 9:08 
AnswerRe: Suggestions on Using Grids? Pin
Tomasz Sowinski19-Mar-02 9:19
Tomasz Sowinski19-Mar-02 9:19 
AnswerRe: Suggestions on Using Grids? Pin
alex.barylski19-Mar-02 9:52
alex.barylski19-Mar-02 9:52 
GeneralRe: Suggestions on Using Grids? Pin
dazinith19-Mar-02 10:31
dazinith19-Mar-02 10:31 
QuestionDynamic array??? Possible??? Pin
19-Mar-02 8:25
suss19-Mar-02 8:25 
AnswerRe: Dynamic array??? Possible??? Pin
Paul M Watt19-Mar-02 8:42
mentorPaul M Watt19-Mar-02 8:42 
AnswerRe: Dynamic array??? Possible??? Pin
Tomasz Sowinski19-Mar-02 8:49
Tomasz Sowinski19-Mar-02 8:49 
AnswerRe: Dynamic array??? Possible??? Pin
Nemanja Trifunovic19-Mar-02 8:49
Nemanja Trifunovic19-Mar-02 8:49 
AnswerRe: Dynamic array??? Possible??? Pin
dazinith19-Mar-02 9:00
dazinith19-Mar-02 9:00 
im a newbie myself, but i have been using CStringArray, CObArray, and CUIntArray. These are build in classes for arrays of different types. They are cool because you can add and delete them without caring about what the size is. example:

// add stuff to it
CStringArray strArray;
CString strTemp("Hello");
strArray.Add(strTemp);
strTemp = "Second string";
strArray.Add(strTemp);

// get stuff from it
strTemp = strArray.GetAt(0);
strTemp += strArray.GetAt(1);

// delete an unwanted string
CString* pStr = strArray.GetAt(0);
delete pStr;
strArray.Remove(0);

keep in mind that these are arrays of pointers which point to strings, or objects, etc.


-dz
GeneralRe: Dynamic array??? Possible??? Pin
Christian Graus19-Mar-02 10:22
protectorChristian Graus19-Mar-02 10:22 
QuestionHow to create global variable? Pin
19-Mar-02 7:49
suss19-Mar-02 7:49 
AnswerRe: How to create global variable? Pin
Carlos Antollini19-Mar-02 7:51
Carlos Antollini19-Mar-02 7:51 
AnswerRe: How to create global variable? Pin
Paul M Watt19-Mar-02 8:07
mentorPaul M Watt19-Mar-02 8:07 
GeneralRe: How to create global variable? Pin
Tomasz Sowinski19-Mar-02 8:11
Tomasz Sowinski19-Mar-02 8:11 
GeneralRe: How to create global variable? Pin
Paul M Watt19-Mar-02 8:21
mentorPaul M Watt19-Mar-02 8:21 
GeneralRe: How to create global variable? Pin
Christian Graus19-Mar-02 10:24
protectorChristian Graus19-Mar-02 10:24 
GeneralRe: How to create global variable? Pin
Paul M Watt19-Mar-02 10:34
mentorPaul M Watt19-Mar-02 10:34 

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.