Thanks CornedBee,
Is it really that bad?
Thanks for the reply, I'll read through your solution now.
M
Type: Posts; User: da_fall_guy
Thanks CornedBee,
Is it really that bad?
Thanks for the reply, I'll read through your solution now.
M
Hello,
I hope someone can help me, I'm a little bit stuck.
It's been a while since I did any coding and this project is designed to get me back into it.
Basically I want to take a string in...
Hi Shiro,
Thanks for replying.
I'm an IT journalist at the moment.
I have a feeling I'm going to have to do a course of some sort just to make it easy for people to judge my ability, and to...
*This isn't a coding question but one about employment prospects*
Hello,
I've been learning C and most recently C++ for a couple of years. I'm working on OpenGL and Windows at the moment. I've...
Help me, I need a compiler for the Mac, a free one.
I want to practice OpenGL but am working with a Mac.....
Is there any hope for me?
Can anyone enlighten me about this
I am working on an Apple power PC and would like to do some coding in my lunch hour. Is this at all possible?
I seem to recall its not. Are there any...
Thanks, I will have to wait to test all this but it makes at least some sense.
What I was working towards was some way that objects which encounter eachother could find out stuff about each other...
I want to declare two classes, say Cat and Dog, then when they meet in my game I want them to be able to question each other.
My problem is that if you declare Dog first then it can't ask Cat any...
Yes, thats the problem though
I want them to talk to eachother but only one can ask and the other one answer.
What I am working towards is a kind of security set-up.
Cat asks Dog its age.
...
Thanks, those were both very helpful
Now, what if I want Dog to respond by checking Cat's age and only answering if its above a certain limit?
I have been trying to do this but if you compile...
If I have two objects like the dog and cat below and I wanted a instance of Cat to find out the age of an instance of Dog, how would I do that?
A function like int AskDogAge(&Dog theDog); // How...
hello napKIN
I read teach yourself c. I thought it was a fairly good book.
And I also think that I might prefer C to C++ but since I am nearly finished with C++ in 21 days I will stick with...
Thanks guys
Its good to know that I am not alone in the lonewolf approach to learning, paradoxically.
Still, win32 looks very tricky. How hard did it seem compared to learning c or c++...
Thanks Biosx
I want to write games. I have a book on OpenGL game programming but these things all seem to assume knowledge of windows programming.
Does that mean I have to learn win32 first...
Hello
I have been learning to program for about a year now. I started with C and moved on to c++ straight away because I thought this would suit my aims best.
I would like to make a 3d game...
Thankyou adrianxw
That has cleared that up for me.
So with private inheritance the derived class can access all data/methods in the base class via methods of its own. Is that right?
...
Hello
I am having difficulty in getting my head around private inheritance. Can anyone give a simple explanation of what it is and a simple example of when you might need to use it?
Its...
Hello
Could anyone tell me how you make my programs independent of the compiler?
I haven't been doing this too long but none of the programs I have made work unless opened with MS Visual C++ 6...
Thanks to both of you.
The bitwise copy, is that just of the object's member variables or is it also a copy of methods and whatnot?
Hello,
Being fairly new to C++ I am having a little trouble with the idea of a this pointer, can anyone enlighten me?
If you pass a dereferenced this pointer into a copy constructor what...
so if fread() goes to the open file and finds MAX_LEN number of characters (lets say MAX_LEN=80) it will then copy these 80 characters over to the buffer which is an array like this: Buff[80]
So...
Also, in the code below, how does the function copy its text?
Does it get a block of text of MAX_LEN and copy it to buff, then append the null character, then print it, then go back and do the...
Hi,
If you are using fread() to get a block of text from an opened file and you have set MAX_LEN to 80 say, unless the number of characters is exactly divisible by 80 you will not get the...