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

Search:

Type: Posts; User: adrian_h

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,622

    Re: C++ Looping assignment

    What are the steps you would do if you were to tell a very dense person to do this? What information will they need to remember from one step to the next?

    Writing psudocode like this is a very...
  2. Replies
    4
    Views
    578

    Re: TMP and codebloat

    static const int in or outside of a class declaration or const int outside of a class declaration may or may not take up memory in the binary based on several reasons which include (but may not be...
  3. Replies
    17
    Views
    1,353

    Re: How do I save funtions to be called later?

    I'd recommend Eri523's class based design, it is IMHO, cleaner OO approach. It also allows you to have a local storage space for each instance which may be useful, though I can't think of one at the...
  4. Re: Problems Copying one text file to another in capital lettes

    Do you understand how to use a debugger?


    A
  5. Replies
    8
    Views
    652

    Re: hey guys need help with example.

    if a==b then reassign b to a new random number. Maybe a good idea to loop on this tool

    What do you mean reenter a loop? Do you mean to reiterate the loop body? Try googling for the answer: ...
  6. Re: fetching html pages in C. output only shows html sometimes

    Not sure, still this is posted in the wrong forum. You are:

    1. programming in C not C++.
    2. talking about sockets which really is a library question, not a C++ question
    3. now asking about...
  7. Re: Issues with if's and functions (Very novice programmer)

    Ooops. :o Up too late last night I guess.

    I saw it was supposed to be the area of a circle and misread the question. A = pi*r^2 i.e. pi*(r^2) which is pi*r*r. The area of a circle is not...
  8. Replies
    6
    Views
    710

    Re: Template Function for Specific Types

    Doh! For some reason, that slipped my mind. :o Though, I didn't know about the static_assert in C++11, good to know. :)


    IIRC, older compilers didn't deal with it correctly. Just something I...
  9. Re: Issues with if's and functions (Very novice programmer)

    Yes, they are mathematically equivalent. Further, symbols are usually used for constants. If they don't already exist, you usually add them for 1. readability, 2. less chance of a typo and 3. in...
  10. Re: fetching html pages in C. output only shows html sometimes

    This is the wrong forum for this. You really should go to one that is meant for html protocol stuff.

    However, just in case this is a coding issue, I have to ask, is this consistent? Can you...
  11. Replies
    6
    Views
    710

    Re: Template Function for Specific Types

    Oh, and you would probably use boost::mpl:: or_ to check one of several types or use boost::enable_if_c with || as the intervening 'or' symbol between each boost::is_same<T, type>::value. However,...
  12. Replies
    6
    Views
    710

    Re: Template Function for Specific Types

    Well, if it is for just one type, exclude the T typename. For multiple, that excludes some types, use template meta programming. Boost has quite a library for this. I find it a bit difficult to...
  13. Replies
    4
    Views
    608

    Re: TR1 Regular Expresssions

    Hmm, have you tried a non greedy match followed by a zero length look ahead? Not sure if it'll work, but worth a try.
  14. Replies
    16
    Views
    1,428

    Re: Newbie problem, fopen

    Are you using an IDE (eclipse, MSVS, etc...)? I have a feeling that the cwd (current working directory) for debugging is not pointing at the same directory as where your file "open" is.

    To...
  15. Re: A question regarding member variable of class

    I'm not arguing with you. That is why I said "my bad", because what I had thought had glossed over that the OP wanted two variables. :o

    Also, I do understand that newbies mess up the distinction...
  16. Re: A question regarding member variable of class

    Np, thanks for clearing it up though. :)


    Um, yeah, that was kinda the point. The OP original question was:

    So yeah, you have one object, but two classes. He didn't ask for two objects. ...
  17. Re: A question regarding member variable of class

    Hmmmm, didn't understand that you had a "don't" part. :) I was thinking 2 classes, the base class having a var, the derived having access to that var. They both have access to the same var. It...
  18. Replies
    16
    Views
    1,544

    Re: Max Function arguments?

    If you are creating a bunch of 'things' with almost the same initialisation parameters, then a helper function is not out of the question. This function would then do most of the heavy lifting for...
  19. Re: A question regarding member variable of class

    Nope. Visibility is not the issue here, but the dependency (explicit or implicit, hidden or visible) that they all have to the static member in that kind of design. Say that a derived (directly or...
  20. Replies
    2
    Views
    460

    Re: Sorted Linked List help

    Not sure if you noticed, but no one is answering your question. That's because we're not here to do your homework.

    If you have some questions about some aspect of your code, specifically ask. ...
  21. Re: A question regarding member variable of class

    So both classes can write to this variable? If so, a mutex may need to be used to keep the data from being corrupted if the objects are running on separate threads. If one is running through a...
  22. Re: A question regarding member variable of class

    Not necessarily every class. This can be manipulated using protected and private inheritance. Anyway, you don't have to like it, that wasn't the question was it? :D

    References can also be used...
  23. Replies
    4
    Views
    517

    Re: Compiling via terminal

    Make files are usually used for large projects to manage compilation of files that have changed since the last compile. This reduces the number of files to parse thus making it faster to compile an...
  24. Replies
    7
    Views
    796

    Re: Base class optimisation

    Ok, I think I can see it now. :)
  25. Re: A question regarding member variable of class

    No, doesn't have to be static, though that is one way to do it. If static, it does keep problems down. It all depends on the circumstance.

    As everyone is asking, WHY do you want to do it?


    A
Results 1 to 25 of 59
Page 1 of 3 1 2 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center