Premium Speachless 759 Posted April 4, 2015 Premium Share Posted April 4, 2015 I added in my source : int iPos = s_grid1.FindBlank(1, item->GetSize()); if (iPos >= 0) { s_grid1.Put(iPos, 1, item->GetSize()); } else { iPos = s_grid2.FindBlank(1, item->GetSize()); if (iPos >= 0) { s_grid2.Put(iPos, 1, item->GetSize()); } else { iPos = s_grid3.FindBlank(1, item->GetSize()); if (iPos >= 0) { s_grid3.Put(iPos, 1, item->GetSize()); } else { iPos = s_grid4.FindBlank(1, item->GetSize()); if (iPos >= 0) { s_grid4.Put(iPos, 1, item->GetSize()); } else { return false; } } } } return true; } And i get next error : exchange.cpp: In member function 'bool CExchange::CheckSpace()': exchange.cpp:452: error: a function-definition is not allowed here before '{' token exchange.cpp:642: error: expected `}' at end of input compile input_auth.cpp gmake: *** [OBJDIR/exchange.o] Error 1 Link to comment Share on other sites More sharing options...
Solution Think 117 Posted April 4, 2015 Solution Share Posted April 4, 2015 Sounds like you added extra "}" Did you take a look over at this thread? 1 Link to comment Share on other sites More sharing options...
Premium Speachless 759 Posted April 4, 2015 Author Premium Share Posted April 4, 2015 Sounds like you added extra "}" Did you take a look over at this thread? I'll take a look now. Thank you ! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now