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

Search:

Type: Posts; User: Quentin026

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Dijkstra's algorithm C++ - 2 implementations

    Hello,

    I've a question regarding dijkstra's algorithm in C++. I've always used the following implementation:


    struct edge //needed only for std::set, see below {
    int vertex;
    ...
  2. Replies
    2
    Views
    9,045

    Deletion by merging in binary search tree

    Hi there,

    I'm reading about a technique known as deletion by merging in context of binary search trees. Here's the PDF:

    http://www.cs.mun.ca/av/old/teaching/4892/notes/bintrees2_quad.pdf

    and...
  3. Computational complexity of a few algorithms

    Hi there,

    I'm reading a book about data structures and algorithms and I've done 3 exercises on finding computational complexity of the given algorithms. Computational complexity in this case means...
  4. Re: Send to option - how to handle in program?

    I was actually wondering how I could receive those filenames within the program, but I forgot to simply test the argv array. It's all clear right now! Thx for help anyway.
  5. Re: Send to option - how to handle in program?

    Is it impossible to do it with "Send to"?
  6. Send to option - how to handle in program?

    Hi there.

    In windows' context menu there is an option "Send to.". I'd like to send a text file (or a few of them) by choosing this option and later my program.exe from the list. How can I handle...
  7. Replies
    1
    Views
    1,259

    Moving cursor with arrows

    Hi there,

    I have to write tic-tac-toe game in Visual 2010. My only problem is that I don't know how I can move the cursor with arrows in the console in order to fill in chosen positions in 3x3...
  8. Re: Why don't set every header file as precompiled ?

    Now, I know why :)

    According to the wxWidgets Wiki:





    Yes, I heard something about that... Do you know why are they ignored ?
  9. Re: Why don't set every header file as precompiled ?

    It was my mental shortcut :p I know that a source file can't be precompiled.

    And about that:



    In wxDev-C++ I can't create a .pch from a .cpp file...
  10. Re: Why don't set every header file as precompiled ?

    Then why can a precompiled .cpp file contain those things ?
  11. Re: Why don't set every header file as precompiled ?

    Why is that ?

    A precompiled header is - as the name says - precompiled (we have to compile it only once), so no matter in how many .cpp or .h files we'll include it - a compiler won't compile...
  12. Re: Why don't set every header file as precompiled ?

    Not exactly...

    Like I said before, the MinGW compiler is able to build this kind of header. The full project rebuilding isn't necessary...
  13. Why don't set every header file as precompiled ?

    Hi there!

    I've a quick question about precompiled headers. Why don't set every header file as precompiled in order to reduce compilation time ?

    Has a precompiled header any disadvantages...
  14. Re: [g++] Getting an error while using reinterpret_cast operator

    Sorry, my mistake :)



    Why would I need use a function object ? If I wanted to use that construction, I unnecessarily would have to define a class - when I don't need one...
  15. Re: [g++] Getting an error while using reinterpret_cast operator

    Don't forget that I've used use namespace std;, so now, global namespace = std namespace...



    Using declaration is something like this ?


    using std::cout;
    using std::cin;
  16. Re: [g++] Getting an error while using reinterpret_cast operator

    Thanks, it helped :)

    Can you explain me why :: operator is the solution :confused:
  17. Re: [g++] Getting an error while using reinterpret_cast operator

    Exactly...



    I know, but in my type-casting which I'm doing by means of reinterpret_cast operator, the new type (here it is int (*)(int)) is exactly the same as while doing type-casting by means...
  18. Re: [g++] Getting an error while using reinterpret_cast operator

    Yes, it is, but there is a problem when we use this name in transform function in g++:


    #include <algorithm>
    #include <string>
    #include <cctype>
    using namespace std;

    int main()
    {
  19. [g++] Getting an error while using reinterpret_cast operator

    Hi there!

    I use g++ compiler which is built-in in Code::Blocks 10.05 and I have quite strange problem while using reinterpret_cast operator.

    I'd like to convert following expression:

    ...
  20. Re: Friend declarations: nested classes and base-clauses

    No, I didn't mean base class :P

    base-clause = base-specifier = base-specifier-list

    It's a place where we specify base classes which we want derived from.

    Simply put:


    class A : public...
  21. Friend declarations: nested classes and base-clauses

    Hi there!

    I've got two questions about friend declarations.

    1)

    According to the 11.8.1 paragraph of C++03 standard:
  22. Two the same class/function templates in two different files

    Hi there,

    I've got two exactly the same class templates in two different files but linker (from MS Visual 2008 Express and DevC++ 4.9.9.2) doesn't show any errors. The question is: why ? It just...
  23. Re: Addresses of array elements as template non-type paramater

    I get it now... Thanks very much :)
  24. Re: Addresses of array elements as template non-type paramater

    But pointer's address in this example


    template <int* p>
    class X { };

    extern iVar; //iVar is type int

    X<&iVar> x;
  25. Re: Addresses of array elements as template non-type paramater

    Is this template argument compile-time constant too, although iVar variable is in the other module of program?


    template <int* p>
    class X { };

    extern iVar; //iVar is type int

    X<&iVar> x;
Results 1 to 25 of 28
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured