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

C / C++ / MFC

 
GeneralCreating a Region from a bitmap Pin
Jon Hulatt8-Feb-02 2:22
Jon Hulatt8-Feb-02 2:22 
GeneralRe: Creating a Region from a bitmap Pin
Stan Shannon8-Feb-02 2:36
Stan Shannon8-Feb-02 2:36 
GeneralRe: Creating a Region from a bitmap Pin
Joaquín M López Muñoz8-Feb-02 2:32
Joaquín M López Muñoz8-Feb-02 2:32 
Generalspecial characters in static text Pin
8-Feb-02 1:51
suss8-Feb-02 1:51 
GeneralRe: special characters in static text Pin
Roger Allen8-Feb-02 3:20
Roger Allen8-Feb-02 3:20 
GeneralRe: special characters in static text Pin
8-Feb-02 22:07
suss8-Feb-02 22:07 
Generalno more debugging FAQ. Pin
8-Feb-02 1:43
suss8-Feb-02 1:43 
GeneralRe: no more debugging FAQ. Pin
Atul Dharne8-Feb-02 2:10
Atul Dharne8-Feb-02 2:10 
Use the vector class

#include<vector>
#include <iostream>

using std::vector;
using std::cout;
using std::endl;

int main()
{
vector<int> reszarr(1); //create a single element int vector
//whenever you want to put in an extra value it goes on resizing
reszarr.push_back(20); //here 20 is element number 2
reszarr[0] = 10; //populate the first element
//To display contents of reszarr
for(int count = 0;count < reszarr.size();++count)
cout << "Element Number: " << count+1 << " " << reszarr[count] << endl;
return EXIT_SUCCESS;
}

//for displaying the elements you can also use a iterator
#using namespace std;

vector<int>::iterator inIter;
for(inIter = reszarr.begin();inIter != reszarr.end();++inIter)
cout << *inIter << endl;


Atul

Sonork ID : 100.13714 netdiva
GeneralRe: no more debugging FAQ. Pin
marouane miftah el kheir8-Feb-02 3:42
marouane miftah el kheir8-Feb-02 3:42 
GeneralRe: no more debugging FAQ. Pin
8-Feb-02 3:42
suss8-Feb-02 3:42 
GeneralRe: no more debugging FAQ. Pin
Volodya Orlenko8-Feb-02 4:04
Volodya Orlenko8-Feb-02 4:04 
GeneralRe: no more debugging FAQ. Pin
Nish Nishant8-Feb-02 4:16
sitebuilderNish Nishant8-Feb-02 4:16 
GeneralRe: no more debugging FAQ. Pin
Atul Dharne8-Feb-02 4:37
Atul Dharne8-Feb-02 4:37 
GeneralRe: no more debugging FAQ. Pin
Christian Graus8-Feb-02 8:03
protectorChristian Graus8-Feb-02 8:03 
GeneralMain Frame Resizing Problem Pin
Paul A. Howes8-Feb-02 0:20
Paul A. Howes8-Feb-02 0:20 
GeneralRe: Main Frame Resizing Problem Pin
Joaquín M López Muñoz8-Feb-02 1:46
Joaquín M López Muñoz8-Feb-02 1:46 
Generalan advice for a book Pin
Gérald Mercet7-Feb-02 21:32
Gérald Mercet7-Feb-02 21:32 
GeneralRe: an advice for a book Pin
Christian Graus7-Feb-02 21:38
protectorChristian Graus7-Feb-02 21:38 
GeneralRe: an advice for a book Pin
Atul Dharne7-Feb-02 22:55
Atul Dharne7-Feb-02 22:55 
GeneralRe: an advice for a book Pin
Gérald Mercet8-Feb-02 2:07
Gérald Mercet8-Feb-02 2:07 
GeneralRe: an advice for a book Pin
Atul Dharne8-Feb-02 4:26
Atul Dharne8-Feb-02 4:26 
QuestionVisual C++ documentation-where to find? Pin
nikoladsp7-Feb-02 19:39
nikoladsp7-Feb-02 19:39 
AnswerRe: Visual C++ documentation-where to find? Pin
Nish Nishant7-Feb-02 19:49
sitebuilderNish Nishant7-Feb-02 19:49 
AnswerRe: Visual C++ documentation-where to find? Pin
Jon Sagara7-Feb-02 20:08
Jon Sagara7-Feb-02 20:08 
GeneralControls 2 Views Pin
alex.barylski7-Feb-02 19:20
alex.barylski7-Feb-02 19:20 

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.