kaneneal1988: hellp i wish to make something like this
enum list {
A1=true,
B1=false,
⋮
B19=:false",
};but as you may hopefully already know it will give error l-value required?
Enums require a number, but I think those should compile. Use zero for false and one for true.
kaneneal1988: also could we do ,
A1=&&,
B1=||,
A2=|,
B2=&
??
OR EVEN
A1=+,
B1=-,
O=<
Those are not numbers.
B19=:false",
Enums needs numbers. Can I ask, what are you trying to do ?
You could write
enum list{
...
B19 = 0, // false
B20 = 541, // &&
};

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hellp i wish to make something like this
enum list {
A1=true,
B1=false,
B2=false,
B3=false,
B4=false,
B5=false,
B6=false,
B7=false,
A2=true,
B9=false,
B10=false,
B11=false,
B12=false,
B13=false,
B14=false,
B15=false,
B16=false,
A3=true,
B17=false,
B18=false,
B19=:false",
};
but as you may hopefully already know it will give error l-value required?
also could we do ,
A1=&&,
B1=||,
A2=|,
B2=&
??
OR EVEN
A1=+,
B1=-,
O=<