Thursday, October 3, 2013

A Better Choice?

Newsgroup: comp.lang.c++

Subject: A Better Choice?

From: mrc2323@...

Date: Sat, 28 Sep 2013 15:15:35 -0700



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







via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?96731-A-Better-Choice&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums

No comments:

Post a Comment