Click here to Skip to main content
15,905,874 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can we search SQL (VC++) combine with Boolean? Pin
Anonymous5-Dec-02 3:36
Anonymous5-Dec-02 3:36 
GeneralRe: It works, thanks! Pin
Anonymous5-Dec-02 3:37
Anonymous5-Dec-02 3:37 
AnswerRe: Can we search SQL (VC++) combine with Boolean? Pin
RChin4-Dec-02 23:52
RChin4-Dec-02 23:52 
GeneralRe: Can we search SQL (VC++) combine with Boolean? Pin
Anonymous5-Dec-02 3:42
Anonymous5-Dec-02 3:42 
GeneralAn easy one for you pro's... Pin
Brent Lamborn4-Dec-02 17:58
Brent Lamborn4-Dec-02 17:58 
GeneralRe: An easy one for you pro's... Pin
Christian Graus4-Dec-02 18:15
protectorChristian Graus4-Dec-02 18:15 
GeneralRe: An easy one for you pro's... Pin
Nick Parker4-Dec-02 18:21
protectorNick Parker4-Dec-02 18:21 
GeneralRe: An easy one for you pro's... Pin
Christian Graus4-Dec-02 19:08
protectorChristian Graus4-Dec-02 19:08 
Um...


Nick Parker wrote:
int i;

Why create this first, and why create it without initialising it ?

Nick Parker wrote:
Organism aOrgArray[iColSize];

Won't work, unless you mean the col size to be a constant that replaces this variable, which does not really exist

Nick Parker wrote:
for(i = 0; i < iColSize - 1; i++)

Even if the rest would work, this would leave the last item uninitialised.

Nick Parker wrote:
aOrgArray[i] = Organism(iNumChroms);

Won't work, the item already exists, except it doesn't, because no default constructor is available.

All of this would be possible if you created them on the heap, an array of Organism pointers, and aOrgArray[i] = new Organism(iNumChroms);.


Christian

No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002

Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002

Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
GeneralRe: An easy one for you pro's... Pin
benjymous5-Dec-02 0:59
benjymous5-Dec-02 0:59 
GeneralRe: An easy one for you pro's... Pin
Christian Graus5-Dec-02 6:35
protectorChristian Graus5-Dec-02 6:35 
GeneralRe: An easy one for you pro's... Pin
Nick Parker5-Dec-02 1:44
protectorNick Parker5-Dec-02 1:44 
GeneralRe: An easy one for you pro's... Pin
Christian Graus5-Dec-02 6:37
protectorChristian Graus5-Dec-02 6:37 
GeneralRe: An easy one for you pro's... Pin
Nick Parker5-Dec-02 6:42
protectorNick Parker5-Dec-02 6:42 
GeneralRe: An easy one for you pro's... Pin
Tim Smith5-Dec-02 2:19
Tim Smith5-Dec-02 2:19 
GeneralRe: An easy one for you pro's... Pin
Brent Lamborn5-Dec-02 5:05
Brent Lamborn5-Dec-02 5:05 
GeneralRe: An easy one for you pro's... Pin
Christian Graus5-Dec-02 6:38
protectorChristian Graus5-Dec-02 6:38 
GeneralRe: An easy one for you pro's... Pin
Brent Lamborn5-Dec-02 7:16
Brent Lamborn5-Dec-02 7:16 
GeneralRe: An easy one for you pro's... Pin
Christian Graus5-Dec-02 7:30
protectorChristian Graus5-Dec-02 7:30 
GeneralRe: An easy one for you pro's... Pin
Brent Lamborn5-Dec-02 9:30
Brent Lamborn5-Dec-02 9:30 
GeneralRe: An easy one for you pro's... Pin
Christian Graus5-Dec-02 9:39
protectorChristian Graus5-Dec-02 9:39 
GeneralHelp with an Array of Controls and message maps Pin
VanHlebar4-Dec-02 13:47
VanHlebar4-Dec-02 13:47 
GeneralRe: Help with an Array of Controls and message maps Pin
Roger Allen5-Dec-02 1:27
Roger Allen5-Dec-02 1:27 
GeneralRe: Help with an Array of Controls and message maps Pin
VanHlebar5-Dec-02 1:48
VanHlebar5-Dec-02 1:48 
GeneralRe: Help with an Array of Controls and message maps Pin
Roger Allen5-Dec-02 3:13
Roger Allen5-Dec-02 3:13 
GeneralRe: Help with an Array of Controls and message maps Pin
VanHlebar5-Dec-02 11:07
VanHlebar5-Dec-02 11:07 

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.