texasnomad: I declared a method named EnterTrade() that only takes one variable, an enumeration named TradeDirection. The compiler throws the errors TradeDirection - declaration without type. Why won't this compile?
Play videoPlease edit your post.
For large amounts of code, attach it.
void EnterTrade(TradeDirection dir){} // TradeDirection not defined (yet) enum TradeDirection{ Long, Short }; // Too late

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
I declared a method named EnterTrade() that only takes one variable, an enumeration named TradeDirection. The compiler throws the errors TradeDirection - declaration without type. Why won't this compile?
void EnterTrade(TradeDirection dir)
{
}enum TradeDirection
{
Long, Short
};