CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Circuits

Search: Search took 0.03 seconds.

  1. Replies
    6
    Views
    1,916

    Re: Do not understand conditional in for loop

    Oh, heh no, no it doesn't :d


    for (auto& i : maps)
    {
    if (&i.second == this)
    {
    assert(!getManager().hasActiveMap());
    ret = ret &&...
  2. Replies
    6
    Views
    1,916

    Re: Do not understand conditional in for loop

    Would this be equivalent then?


    for (auto&& i : maps)
    {
    if (i.second == this)
    {
    assert(!getManager().hasActiveMap());
    ret = ret &&...
  3. Replies
    6
    Views
    1,916

    Do not understand conditional in for loop

    Hello, I was hoping someone could help me understand the conditional in this for loop:


    for (auto i = maps.begin(); i != maps.end(); i++)
    {
    if (&((*i).second) == this)
    {
    ...
  4. Not sure what the best way to handle this task is.

    I have a problem I am attempting to handle. What I have is a 6 Boolean's and I need to check the state of each of those against their current value in another method, and if any of them are different...
  5. Re: How to return the value of a const char* method

    Okay, so I think I get it now. When you have a * it's sort of just a way of pointing at the original data rather than re-declaring it. I thought maybe I had to use the & operator somehow but I guess...
  6. How to return the value of a const char* method

    Hey guys, I am just starting to learn C++ here, and I am a bit confused by this method:


    extern const char* getOwnerSerNoString(void);

    which is defined as follows:


    const char*...
Results 1 to 6 of 6





Click Here to Expand Forum to Full Width

Featured