I mean, it should do ok right? for each value in mi34.getBuyOrders() do{}
Errors:
1 2 3 4
main.cpp||In function 'int main()':|
main.cpp|122|error: expected ';' before '::' token|
main.cpp|123|error: 'i' was not declared in this scope|
||=== Build finished: 2 errors, 0 warnings (0 minutes, 1 seconds) ===|
And I use Boost since I used to to parse the XML document into my classes, and while in there I found the nice little function BOOST_FOREACH that allows me to iterate through all the elements much easier.
and getBuyOrders returns a vector<Order>&
and Order has a member function called getPrice() that returns a double.
Nope, didn't work, and you don't have to declare it to auto since that's its default(as far as I know).
The errors:
1 2 3 4 5 6
In function 'int main()':|
\main.cpp|122|warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]|
\main.cpp|122|error: ISO C++ forbids declaration of 'Order' with no type [-fpermissive]|
\main.cpp|122|error: range-based 'for' loops are not allowed in C++98 mode|
\main.cpp|122|error: request for member 'getPrice' in 'Order', which is of non-class type 'int'|
||=== Build finished: 3 errors, 1 warnings (0 minutes, 1 seconds) ===|