Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


HeExists

Member Since 15 May 2011
Offline Last Active Jan 21 2015 05:27 AM

Posts I've Made

In Topic: Return value

01 December 2014 - 05:45 PM

Thank you for the reply. I will try this :).


In Topic: Return value

30 November 2014 - 05:14 PM

Thank you for the reply.


In Topic: Return value

30 November 2014 - 02:00 PM

Can I do like this -

COne* CScene::getOneFromId(int id)
{
   for(auto &it: m_OneContainer)
   {
      if(it.getID() == id)
      {
         COne* one = ⁢
         return one;
      }
   }
   return 0;
}

Thank you.


In Topic: Return value

30 November 2014 - 12:28 PM

I want it to return NULL when it can't find anything. I am trying to avoid using "new" wherever possible. I will stick with my first method for now.

 

Thank you for the reply.


In Topic: Layer and Frame?

16 June 2014 - 07:30 AM

I have already implemented this and it is working as expected :)

 

Thanks for the reply.


PARTNERS