Search:

Type: Posts; User: blacknail

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    22,084

    Solved my problem, I decided to separate the...

    Solved my problem, I decided to separate the AirPlane class from the class with the main() function. I shouldn't have mixed up the main project file with functions of another class, but since I was...
  2. Replies
    6
    Views
    22,084

    Error C3861: 'menu': identifier not found

    Hi all again,

    I'm having some trouble now with calling functions. Even tough I have a header file being called in the correspondent .cpp file it gives me the consequent error (in Visual C++ 2008...
  3. Replies
    6
    Views
    2,184

    I solved my problem, thanks! It had to do with...

    I solved my problem, thanks! It had to do with the Managed code I had... I deleted that code and now I'm using only non-Managed code.

    Now I´ve changed the code to:



    (..)
    map <string,...
  4. Replies
    6
    Views
    2,184

    matsp here it goes, thanks again. It's a very...

    matsp here it goes, thanks again.

    It's a very simple class.

    User.h



    #pragma once
  5. Replies
    6
    Views
    2,184

    Thanks matsp for the quick reply :) My...

    Thanks matsp for the quick reply :)

    My question is: the way to do it is only through the use of templates or there is another way to use new types in the value field of a map?

    I googled a bit...
  6. Replies
    6
    Views
    2,184

    By the way, the error that Visual C++ 2008...

    By the way, the error that Visual C++ 2008 Expression Edition displays is the following (the file is Person.cpp):
  7. Replies
    6
    Views
    2,184

    Creating a map with a new object type

    Hi all,

    I'm using the standard map library and I was wondering if it is possible to create a map with a type value created by me (in this case, class "User" type).

    I was looking for something...
  8. tabstop it's the first option yes, thank you, I...

    tabstop it's the first option yes, thank you, I will try that! :)
  9. The errors occur when compiling a "teste.cpp"...

    The errors occur when compiling a "teste.cpp" file with the tests I posted.

    I forgot to put the errors... sorry for that!

    Here it goes:



    tabstop I'm attempting to call operator [], yes!
  10. Error: invalid use of member (did you forget the ‘&’ ?)

    Good night,

    The program I'm developing does compile correctly, but when I perform some tests it crashes... I've searched for this error in a dozen pages but I couldn't find the answer to my...
  11. That was just what I was thinking. I just thought...

    That was just what I was thinking. I just thought that I could call the method by just typing getLength() in the subclass :S

    Anyway, thanks for all! :)
  12. In first place, thanks to all. I was in the verge...

    In first place, thanks to all. I was in the verge of despair and now I'm getting better.

    Second, tabstop, I only have getLength() defined in the superclass (Vector) and I want to call it in sub...
  13. With inheritance do I have to create an instance...

    With inheritance do I have to create an instance of the class to call a method in the super class?
  14. Hi all, I've got a noob question to post. I've...

    Hi all,

    I've got a noob question to post. I've got this class named "Vector":



    using namespace std;
  15. Replies
    7
    Views
    9,351

    For me, the weirdest thing is this. The script...

    For me, the weirdest thing is this.

    The script I use for compiling is:



    #!/bin/bash
    clear
    lex kpython.l
    yacc -d kpython.y
  16. Replies
    7
    Views
    9,351

    The weird stuff is that I also have no errors...

    The weird stuff is that I also have no errors when compiling the file alone. but when I compile with the other files of the compiler that error appears... of course it must have to do with the other...
  17. Replies
    7
    Views
    9,351

    That was the problem... sorry :| But now I get...

    That was the problem... sorry :|

    But now I get the following error:


    (file included from kpython.y:4 is "tabela_simbolos.h")

    The code is as posted above or the following:
  18. Replies
    7
    Views
    9,351

    error: undefined reference to pointer

    Hi all,

    I'm developing a compiler and at this stage I'mhaving problems compiling one of the files ("tabela_simbolos.c"). Here's the .c and .h and the error messages:

    tabela_simbolos.c

    ...
  19. Replies
    2
    Views
    2,947

    ok, many arigatos! :)

    ok, many arigatos! :)
  20. Replies
    2
    Views
    2,947

    Printing pointers with printf()

    Hi there,

    I have done a program that at a certain point prints a pointer (char*), and it is compiling but it outputs this warning:


    Here is line 42:

    printf("PONTEIRO -> %d CAR&#193;CTER ->...
Results 1 to 20 of 20