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

Search:

Type: Posts; User: ltcmelo

Page 1 of 17 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: C++ Streams

    by ltcmelo
    Replies
    4
    Views
    1,779

    Re: C++ Streams

    Unfortunately your question is not clear to me. At first I thought you were talking about "integration" with C++ streams... so I wondered what else besides overloads of operator<< and operator>>...
  2. Replies
    2
    Views
    358

    Re: Little question about List

    It copies the value. If you need reference semantics one alternative would be creating a list of pointers.
  3. Thread: union

    by ltcmelo
    Replies
    17
    Views
    1,558

    Re: union

    Well, it's not "directly" there, it's in CString. A union member cannot be a class type with a constructor. :-)
  4. Replies
    5
    Views
    1,575

    Re: Bignum libraries

    A few years ago I started reading this Cryptography in C and C++ book. During the first chapters the author develops on number theory in order to build a library for large integers. Although I cannot...
  5. Replies
    8
    Views
    2,029

    Re: Many Error Messages in my C++ Program

    If you have more than one statement after the if condition you need to surround it by braces.



    if (condition) {
    // Statement 1...
    // Statement 2...
    }
  6. Re: My software works on Windows, but not on Linux...

    This is correct, but I don't think it's not the issue in the op's case. Since getline is being used inside the loop for a file stream it will eventually flag the EOF.

    Murilo, are you using the...
  7. Replies
    2
    Views
    462

    Re: Using Template Class In Separate Class

    If you need to have the iterator value type the same as the tree value type (which is usually what you want) you depend on the template parameter.

    Whether you make it a nested class or not is a...
  8. Replies
    4
    Views
    522

    Re: vector help needed

    Maybe it's not necessary to actually pop and move stuff. You could try simply std::copyying the data in and out (from the end to the begin of the vector).

    I'm not sure whether the cost of copying...
  9. Replies
    5
    Views
    878

    Re: Compilation time

    I guess it starts with good code design (separation of concerns and less coupling).

    The pimpl idiom is very interesting. It should contribute to decrease the number of includes in your headers...
  10. Re: Inheritance, polymorphism, and comparison operators in a binary search tree

    As D_Drmmr pointed the problem is a bit deeper than simply making functions virtual. It's hard to come up with a nice design that would work under all circumstances. You can find a lot of discussion...
  11. Replies
    1
    Views
    304

    Re: guide me for this

    Perhaps the following docs can help you?

    - http://www.cplusplus.com/reference/iostream/manipulators/
    - http://www.cplusplus.com/reference/iostream/ios_base/
  12. Replies
    4
    Views
    601

    Re: logging inside loop

    The point is there will be no cost for the if (log) part, as long as you are using a decent compiler that will optimize the jump away (assuming an optimized release built). The templates are...
  13. Replies
    15
    Views
    828

    Re: Question overloading operators

    If I get your doubt right, it's because the left-hand operant is implicitly passed as an argument. Basically, what happens is that the following expression



    time1 + time2


    is converted by...
  14. Replies
    9
    Views
    707

    Re: Any difference in the binary?

    Perhaps it's interesting to take a look at the code generated by your compiler?

    There might be some peculiarities concerning alignment and padding depending on the types you use and their order of...
  15. Re: How to set reference property in assingment operator ?

    I think Lindley cleared your first doubt. For the second one you can do, for example:


    void DerivedClass::functionName() {
    BaseClassName::functionName();
    //...
    }
  16. Replies
    8
    Views
    767

    Re: Error in simple win32 application

    Perhaps you are using the VC++ wizard for a console app and what you really want is a Windows app?
  17. Replies
    4
    Views
    476

    Re: Best approach for this?

    Do you really want to have those functions as members of your string class? Usually, non-member functions (when possible) are a very good option.

    Have you considered implementing them as free...
  18. Re: A question regarding operator = overloading

    The code is correctly compiling. But there a few details that might generate some confusion.

    First, you are overloading operator=(int const&), which is only called for the z = 3 statement....
  19. Replies
    2
    Views
    514

    Re: Include everywhere

    If you have too many files you might consider creating a script that writes the include line for you. Otherwise, I would do it manually.



    Are you going to include that file even in your header...
  20. Replies
    2
    Views
    441

    Re: Portable XML Library

    Have you taken a look at libxml? It's originally for Gnome, but there are binaries available for other platforms. It's developed under the MIT license.

    The library is written in C, but there is a...
  21. Replies
    11
    Views
    1,331

    Re: Is there UNICODE version of std::system?

    This link might help you...
  22. Replies
    11
    Views
    1,331

    Re: Is there UNICODE version of std::system?

    I believe your Visual C++ project has the option Character Set configured with Use Unicode Character Set (take a look at the properties page). That's why those defitions were applied on your code.
    ...
  23. Replies
    11
    Views
    1,331

    Re: Is there UNICODE version of std::system?

    First of all, let's separate standard C++ from non-standard extensions. Those UNICODE/_UNICODE macros are Microsoft specific. They are not part of the C++ standard library.

    Now, yes. C++ provides...
  24. Re: Kindly help me simplify the following graph class

    That class certainly could be improved from both a data structure and C++ specific point of view. But there are many ways to implement graph representations. What exactly do you think is "overly...
  25. Replies
    11
    Views
    1,331

    Re: Is there UNICODE version of std::system?

    No. In the same way there's not an ASCII version of std::system. :)

    The point is that C++ doesn't really care about character encoding. Technically, the char const* received by std::system could...
Results 1 to 25 of 416
Page 1 of 17 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center