Search:

Type: Posts; User: orbitz

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    1,295

    I doubt the compiler is smart enouhg to realize...

    I doubt the compiler is smart enouhg to realize str.size() does not change the object. Storing it in a variable first is probably the best bet. Some compilers might have hints in their STL...
  2. Replies
    4
    Views
    853

    C has no value which represents a lack of a...

    C has no value which represents a lack of a value. In short, this means that there is no way to check if an object does not have a value because it always does. You might need to rewrite your...
  3. typedef'ing a struct is also fairly useless in...

    typedef'ing a struct is also fairly useless in C++ as well.
  4. std::string Go read the section of some FAQ on...

    std::string
    Go read the section of some FAQ on namespaces.
  5. Why is that a problem in the first place? ...

    Why is that a problem in the first place? Sockets are very lightweight in just about any OS, and if you want 1 socket for 2 things then you are not going to be using the same socket to accept still...
  6. Replies
    7
    Views
    1,000

    Why don't you learn the basics of C++, then the...

    Why don't you learn the basics of C++, then the basics of a dozen other languages, and find the one that you enjoy the most. You shouldn't take advice that decides what to do for anything more than...
  7. Replies
    3
    Views
    856

    a[2i] is a syntax error. 2i is a gcc extension...

    a[2i] is a syntax error. 2i is a gcc extension for complex number literals. Perhaps you mean a[2*i]. And why you would wan tto do that is qutie confusing.
  8. Replies
    8
    Views
    1,235

    I don't know what that means.

    I don't know what that means.
  9. Replies
    17
    Views
    6,102

    If you think you learned all about C++ via...

    If you think you learned all about C++ via tutorials in 2 days then yo uare very naive. C++ is a massive language that takes years to become proficient in. And I prefer to be realistic instead of...
  10. Replies
    8
    Views
    1,235

    Stop using a broken API then.

    Stop using a broken API then.
  11. Replies
    8
    Views
    1,235

    The documentation states how it gets called. ...

    The documentation states how it gets called. Either as a callback or via a service message.
  12. Replies
    9
    Views
    900

    It looks pretty broken to me. char *temp =...

    It looks pretty broken to me.



    char *temp = new char;

    This allocates 1 char, not 1000000. How do you plan on putting 100000 into room for 1 char?
    Not to mention your eof check is wrong. ...
  13. Thread: Speed question

    by orbitz
    Replies
    6
    Views
    890

    Like any datastructure, it depends on what you...

    Like any datastructure, it depends on what you want to do. Speed of what?
  14. Replies
    11
    Views
    2,059

    The idioms of the various languages are fairly...

    The idioms of the various languages are fairly different. For some reason I doubt any program around today could produce any code in another language you'd actually want to use.
  15. It depends on who wrote them. With Asynch API's...

    It depends on who wrote them. With Asynch API's you can write it all in 1 thread. See http://www.twistedmatrix.com/ for an example.
    http://threading.2038bug.com/index.html has some good information,...
  16. libcurl has asynch api you can use to avoid...

    libcurl has asynch api you can use to avoid threading. Writing a threaded program without understanding the ins-and-outs of concurrency in a non-concurrent orientated language is probably going to...
  17. Replies
    2
    Views
    770

    We aren't your teachers, or mentors, or whatever...

    We aren't your teachers, or mentors, or whatever you think we are. If you can't communicate your question in a post here, or think you are going to have lots of small questions that you don't want...
  18. Replies
    17
    Views
    6,102

    Please, If you are a beginner at C, then don't...

    Please, If you are a beginner at C, then don't attempt to write this. You started out by saying there are no tutorials on building web browsers. This is true because writing a web browser is...
  19. No. and If you consider how often you'll need to...

    No. and If you consider how often you'll need to be printing pointer values it shoudln't really bother you.
  20. Replies
    20
    Views
    1,528

    Also, there is no way to recover from an error...

    Also, there is no way to recover from an error caused by misuse of a pointer. One would think that would win over even the most fanatical pointer supporter.
  21. Replies
    20
    Views
    1,528

    I find this argument to be fairly weak,...

    I find this argument to be fairly weak, personnely. Anything can be made to be good in the hands of a skilled individual. I think it is probably more important to discuss how much work it takes to...
  22. Replies
    20
    Views
    1,528

    Although, overloading operator() and using...

    Although, overloading operator() and using references would allow you to do that without pointers, wouldn't it? But taht certianly is a poor solution IMO.
  23. Replies
    20
    Views
    1,528

    You seem to be confusing the requirement of...

    You seem to be confusing the requirement of pointeres to accomplish things in C++ with pointers being a good thing. Just because C++ lacks decent means of accomplishing the task doesn't mean it's a...
  24. Replies
    10
    Views
    1,315

    dwks: these 'how fast is x' questions are...

    dwks: these 'how fast is x' questions are completley radiculous. Please think about what you are asking. Why the heck does it matter hwo fast 'exit' is? It's exiting yoru dam program, who cares?
    ...
  25. Replies
    8
    Views
    1,185

    Making it a compile time parameter seems like a...

    Making it a compile time parameter seems like a decent enough idea. Let the compiler optimize it. It doesn't appear to really result in nastier code. Look at something like a std::map where you can...
Results 1 to 25 of 499
Page 1 of 20 1 2 3 4