M
Mike Copeland
I have the following data declaration that is causing compiler
warnings:
char DBI[60001] = {'\0'} ;
The purpose of this data is to store a character value ('a'..'I') for
each corresponding record that has been read from a database. The
records are identified by a value that ranges from 1-60000. I can't use
a bitset here, as I need to store the character value associated with
each record. I don't want to be limited by the current supported range
(1...60000).
I'm looking for a better (STL container?) technique that might serve
my purpose but also avoid the fixed size constant declaration which is
causing compiler warnings. Also, I'm not especially concerned with
performance in this functionality. Any thoughts? TIA
warnings:
char DBI[60001] = {'\0'} ;
The purpose of this data is to store a character value ('a'..'I') for
each corresponding record that has been read from a database. The
records are identified by a value that ranges from 1-60000. I can't use
a bitset here, as I need to store the character value associated with
each record. I don't want to be limited by the current supported range
(1...60000).
I'm looking for a better (STL container?) technique that might serve
my purpose but also avoid the fixed size constant declaration which is
causing compiler warnings. Also, I'm not especially concerned with
performance in this functionality. Any thoughts? TIA