V3 function request
Displaying 101-105 of 105 total.
prev 1 ... 4 5 6
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Overkill

For most cases you can get away with pre-#defined numbers to calculate that:

ie.
#define MAX_WIDTH 100
#define MAX_HEIGHT 100
#define MAX_WIDTHxMAX_HEIGHT 10000
int arr[MAX_WIDTHxMAX_HEIGHT];

Posted on 2004-05-08 23:40:40

RageCage

well sure its easy to make a work around but its really nasty

Posted on 2004-05-08 23:43:04

Overkill

Indeed, work-arounds are nasty. Math truly would be nice there. I bet it isn't too hard on the dev. team to add it.

Posted on 2004-05-09 00:34:25

mcgrue

Don't assume. ;)

AFAIK, vc is not designed for runtime initialization of arrays, hence the need for constants.

Posted on 2004-05-09 01:25:45

RageCage

gah! you cant declaire 2d arrays when your trying to do it with a custom identifier.

ex:

struct list{
int which;
int blah;
}

list node[100][100];

Posted on 2004-05-09 15:00:26


Displaying 101-105 of 105 total.
prev 1 ... 4 5 6
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.