In real code I'm trying to make a console program. I have classes "Application", "Normal_screen", "Clock_window", "Clock" and "Curse_window" in this hierarchy:
Application
|_Normal_screen
| ...
Type: Posts; User: JulleH
In real code I'm trying to make a console program. I have classes "Application", "Normal_screen", "Clock_window", "Clock" and "Curse_window" in this hierarchy:
Application
|_Normal_screen
| ...
Hey!
I've been fighting with a problem about using members of a class. I haven't got anything working solution of it. I've tried searching from google too. Probably I just don't know what to...
I've learned a lot from this...thanks :) Now I can continue my programs (until...). Anyway, this was reeealy good idea to ask this in here. There are experts in here and don't have to wait answers...
:D finally something good...it works...via command line, even pretty soon. Can't do it via IDE, though. I tried to mess around with makefile of my project (project1.bpr). I thought it'd work after...
Yes, I put C code in it because it was easier (and shouldn't affect errors in this case?). I haven't used iostreams so much and couldn't remember how to use it.
I removed the guards in cpp...
Okays, I tried it (finally) again but still didn't get it to work. Nor compilers, linkers or anything else. I noticed that even pragma didn't work now, it just seemed to fix "unresolved externals" of...
Uhh... I got it work with #pragma link <object file> in my test project which was cool until I tried it with my other project. Well it wasn't so cool anymore... I tried to compile the...
Thanks both of you, I think this was pretty useful info for the future :)
I was wondering about how do I link objects but looks like it's program's issue, not mine.
But, still the same...
If I remove the #include in the header file, in what point do I get the definitions for declarations from if I don't #include the .cpp file?
I understand that like this:
<other file> -->...
I have always done so ever since I've seen that style elsewhere :) So, that's for the definitions of header file declarations. Like for that evil constructor and destructor and if there are something...
Hmm...I haven't needed nor done that before. I have just recently moved from C to C++, so maybe that's why. How do I check that out? Although, I didn't get this error with my first class made in same...
Hi...
I've been wondering this problem for a while today. I thought it can't be this weird because it's in so small scale...but...here it is. Maybe you understand why it gives me unresolved...
Aah, yeah, I tried similar case earlier but it failed for me because I got an error "'guy_v' is not a member of Map, because the type is not yet defined" when I used watch to see the value of 'guy_v'...
So, really, there's not any normal way to structure files of a program? I'd like to be able to include the types separately.
Are there any good sites telling about this?
Hi, I have one simple(?) question about conflicts in including files. I use C++ Builder but actually I use it as C cause I know it better :D
So, the cause of the problem is...
--- map.h ---
...
Well, for 1. question. You can use fgets() to read constant numbers of characters from a stream to a string. But it stops reading if it hits '\n', newline character.
And for 2. question, if I got...
mov edi,[screen_selector]
mov esi,[buffer_selector]
mov ecx,200d
rep movsd
What does it make, I have just some kind of idea of that? :)
mov makes a variable but are edi, esi and ecx...
Ah I read it too fast I think, it wasn't what I thought at first. Writing screen with printf() :) So, nothing then.
I've had problems with the same thing so long and I've been using puttext() for it. Of course bubba's idea in his last message depends on pc's power but it's still much slower than puttext() for I...
Well this is what I do to find out ascii code of key I wanna know. I use debug window of borland c++ 4.0 with this:
int key = getch();
Then i use the debug window and look at the value of...
ok, gotta learn then, thanks to both
Hello hello :) I'm totally jammed with images, mainly jpeg/jpg and I hope you understand what I try to explain now ;)
I've been trying to read a should-be-simple jpg of pixel size of 1x1 and same...
hmm :confused: I copied your bar code and compiled it and I got an expression syntax error...and i'm wondering if that should work with all compilers, even with my brcc32.exe (i didn't find the...
Hi all..I have a little situation that I'd really like to know.
I could have for example
struct Something {
int arr[7];
Something(int _arr[]) {...}
~Something() {}
};