[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: (Off topic) warning: ANSI C++ forbids variable-size array `theData'
From: Ian Reinhart Geiser <geiseri () yahoo ! com>
Date: 2001-06-24 5:19:39
[Download RAW message or body]
Greetings,
I have a question on the correct way of doing things.
I have a byte array that is a char[]. The problem is i do not know the
length until runtime. I have always done this but C++ is not suppose to
be this way.
Currently I am doing the following:
char data[blockSize]; // Is there a better way to do this....
theFile->at(theSession->getIndex());
int newbytesWritten = theFile->readBlock(data, blockSize);
I know there is a better way to do this, but I cannot find it right now.
Any suggestions?
Thanks
-ian reinhart geiser
--
Fortune for the day:
---------------------------------------------------------------------
A computer lets you make more mistakes faster than any other invention,
with the possible exceptions of handguns and Tequilla.
-- Mitch Ratcliffe
---------------------------------------------------------------------
Ian Reinhart Geiser -=<*>=- Linux & KDE Developer
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic