Click here to Skip to main content
16,010,291 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDisable popup menu in Macromedia Flash ActiveX Pin
johnnyXP11-Sep-05 12:31
johnnyXP11-Sep-05 12:31 
AnswerRe: Disable popup menu in Macromedia Flash ActiveX Pin
nguyenvhn11-Sep-05 14:12
nguyenvhn11-Sep-05 14:12 
GeneralRe: Disable popup menu in Macromedia Flash ActiveX Pin
johnnyXP12-Sep-05 2:22
johnnyXP12-Sep-05 2:22 
QuestionPrinter Driver Pin
Ghasrfakhri11-Sep-05 9:27
Ghasrfakhri11-Sep-05 9:27 
Questionhow can I Create an Office plugin? Pin
Ghasrfakhri11-Sep-05 9:24
Ghasrfakhri11-Sep-05 9:24 
AnswerRe: how can I Create an Office plugin? Pin
ThiefXXX11-Sep-05 11:34
ThiefXXX11-Sep-05 11:34 
QuestionWebbrowser Pin
RaymondM11-Sep-05 9:15
RaymondM11-Sep-05 9:15 
QuestionC++ question Pin
Sveta8011-Sep-05 7:44
Sveta8011-Sep-05 7:44 
Hi guys!
I see that most of people here are very smart programmer so my question may seem like a silly one but keep in mind that I am just started to learn C++.
I am writing a sorting program using dynamically allocated array. I know how to write a program when the size of the array is known. Well, this time I don't know the size of it. My program suppose to read the positive numbers from the keyboard and it need to quit only when i hit ^C. How do you declare your array and populate it when you don't know the size?!
I know that I should use something like this:
int *pointer;
int size;
pointer = new int [size];
but when I go to my for loop what do I say my size should be?
Any help would be greatly appriciated!!!!

Sveta

AnswerRe: C++ question Pin
Nemanja Trifunovic11-Sep-05 7:59
Nemanja Trifunovic11-Sep-05 7:59 
AnswerRe: C++ question Pin
PJ Arends11-Sep-05 9:52
professionalPJ Arends11-Sep-05 9:52 
GeneralRe: C++ question Pin
Sveta8011-Sep-05 10:36
Sveta8011-Sep-05 10:36 
GeneralRe: C++ question Pin
Marc Clifton11-Sep-05 12:09
mvaMarc Clifton11-Sep-05 12:09 
GeneralRe: C++ question Pin
PJ Arends11-Sep-05 12:35
professionalPJ Arends11-Sep-05 12:35 
GeneralRe: C++ question Pin
Marc Clifton11-Sep-05 13:48
mvaMarc Clifton11-Sep-05 13:48 
GeneralRe: C++ question Pin
PJ Arends11-Sep-05 19:28
professionalPJ Arends11-Sep-05 19:28 
GeneralRe: C++ question Pin
Christian Graus11-Sep-05 12:46
protectorChristian Graus11-Sep-05 12:46 
GeneralRe: C++ question Pin
Marc Clifton11-Sep-05 13:49
mvaMarc Clifton11-Sep-05 13:49 
GeneralRe: C++ question Pin
Christian Graus11-Sep-05 13:53
protectorChristian Graus11-Sep-05 13:53 
GeneralRe: C++ question Pin
Nemanja Trifunovic12-Sep-05 2:26
Nemanja Trifunovic12-Sep-05 2:26 
GeneralRe: C++ question Pin
Nemanja Trifunovic12-Sep-05 2:30
Nemanja Trifunovic12-Sep-05 2:30 
GeneralC++ question Pin
Sveta8011-Sep-05 7:32
Sveta8011-Sep-05 7:32 
GeneralRe: C++ question Pin
Trollslayer11-Sep-05 7:42
mentorTrollslayer11-Sep-05 7:42 
GeneralRe: C++ question Pin
El Corazon11-Sep-05 7:55
El Corazon11-Sep-05 7:55 
GeneralRe: C++ question Pin
Trollslayer11-Sep-05 13:53
mentorTrollslayer11-Sep-05 13:53 
GeneralRe: C++ question Pin
Blake Miller12-Sep-05 4:38
Blake Miller12-Sep-05 4:38 

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.