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

Search:

Type: Posts; User: Quentin026

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    331

    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...
  2. 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 ?
  3. 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...
  4. Re: Why don't set every header file as precompiled ?

    Then why can a precompiled .cpp file contain those things ?
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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;
  10. Re: [g++] Getting an error while using reinterpret_cast operator

    Thanks, it helped :)

    Can you explain me why :: operator is the solution :confused:
  11. 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...
  12. 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()
    {
  13. [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:

    ...
  14. 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...
  15. 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:
  16. 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...
  17. Re: Addresses of array elements as template non-type paramater

    I get it now... Thanks very much :)
  18. 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;
  19. 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;
  20. Re: Addresses of array elements as template non-type paramater

    I was trying compile this program:


    template <int *p>
    class X { };

    int array[3] = {56, 56, 45};
    int *p = array+1;
    X<p> x;
  21. Re: Addresses of array elements as template non-type paramater

    I know... The question is: why I can't get address specific array element... I don't understand Comeau's errors too...

    Can you explain this to me ?
  22. Addresses of array elements as template non-type paramater

    Hi there!

    I can't understand why addresses of array elements cannot appear as non-type parameter in class template. I know that something like this:


    int array[3] = {45, 57, 24};
    //......
Results 1 to 22 of 22



HTML5 Development Center

Click Here to Expand Forum to Full Width