Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: OT: C++ code question.

Author: Bo Persson

Date: 09:26:28 11/07/03

Go up one level in this thread


On November 06, 2003 at 18:46:10, Daniel Clausen wrote:


>I have no clue why your compiler doesn't like 'std::string BookLines[5000];' It
>would help if you'd post the exact compiler output.
>

First, it's not [5000], but [50000].

Second, declaring a local array of 50000 elements is dangerously close to
causing a stack overflow at run-time.


Bo Persson



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.