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...
Type: Posts; User: blacknail
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...
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...
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,...
matsp here it goes, thanks again.
It's a very simple class.
User.h
#pragma once
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...
By the way, the error that Visual C++ 2008 Expression Edition displays is the following (the file is Person.cpp):
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...
tabstop it's the first option yes, thank you, I will try that! :)
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!
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...
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! :)
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...
With inheritance do I have to create an instance of the class to call a method in the super class?
Hi all,
I've got a noob question to post. I've got this class named "Vector":
using namespace std;
For me, the weirdest thing is this.
The script I use for compiling is:
#!/bin/bash
clear
lex kpython.l
yacc -d kpython.y
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...
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:
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
...
ok, many arigatos! :)
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ÁCTER ->...