Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

I am doing something wrong

Name: Anonymous 2011-08-29 10:49

BUT WHAT

std::map<std::string, eModel> strToEnum;

char Car1[128];

GetPrivateProfileString("AddedCars","Car1",NULL,Car1,128,"./TrafficLoad.ini");

if (conditions){
eModel Car1M = strToEnum[Car1];
RequestModel(Car1M);
}

Car1=MODEL_CAKE
results in

RequestModel("MODEL_CAKE")

which has to be

RequestModel(MODEL_CAKE)

Name: Anonymous 2011-08-29 10:57

Sorry, but can't help you without the actual code.

Name: Anonymous 2011-08-29 11:01

>>2
Oh, and to avoid building up any suspension: I won't help you even if you do add code tags.

Name: Anonymous 2011-08-29 11:11

>>3
Elitist bastard.

std::map<std::string, eModel> strToEnum;

char Car1[128];

GetPrivateProfileString("AddedCars","Car1",NULL,Car1,128,"./TrafficLoad.ini");

if (conditions){
eModel Car1M = strToEnum[Car1];
RequestModel(Car1M);


.ini file:
Car1=MODEL_CAKE
results in

RequestModel("MODEL_CAKE")

which has to be

RequestModel(MODEL_CAKE)

Name: Anonymous 2011-08-29 11:41

DON'T HELP HIM!!!

Name: Anonymous 2011-08-29 11:52

>>4
type eModel does not exist

using string literals in a function call

Name: Anonymous 2011-08-29 11:54

Expecting an answer without posing a question.

Name: Anonymous 2011-08-29 12:08

>>6
eModel does exist and works fine

>>7

RequestModel("MODEL_CAKE")

has to be

RequestModel(MODEL_CAKE)

Fuck you /prog/, even /g/ knows more.

Name: Anonymous 2011-08-29 13:03

>>8
Click in the space between " and M, then press the Backspace key.  Repeat that between the other " and ).

Happy to help.

Name: Anonymous 2011-08-29 13:06

>>9
YOU HELPED HIM!!!

Name: Anonymous 2011-08-29 13:14

"car"
not referring to the front of a list

read SICP you mongoloid.

Name: Anonymous 2011-08-29 13:22

>>11
My other car is a mode of transportation.

Name: Anonymous 2011-08-29 13:34

SICP can suck my dick

Name: Anonymous 2011-08-29 13:42

LYaHfGG can transform the state of the universe into one where my dick has been sucked.

Name: Anonymous 2011-08-29 15:20

Name: Anonymous 2011-08-29 15:50

std::map<std::string, eModel> strToEnum;

char Cdr1[128];

GetPrivateProfileString("AddedCdrs","Cdr1",NULL,Cdr1,128,"./TrafficLoad.ini");

if (conditions){
eModel Cdr1M = strToEnum[Cdr1];
RequestModel(Cdr1M);
}

Cdr1=MODEL_CAKE
results in

RequestModel("MODEL_CAKE")

which has to be

RequestModel(MODEL_CAKE)

Name: Anonymous 2011-08-29 16:49

>>15

sup /b/ro >:)

Name: Anonymous 2011-08-29 17:19

>>17
Yes, go back to /b/, please.

Name: Anonymous 2011-08-29 18:20

GetPrivateProfileString
DEPRECATED, BITCH.

Don't change these.
Name: Email:
Entire Thread Thread List