Okey, my fault for not being explicit in explaining the structure.
The main.cpp file is responsible for creating (using OpenGL - you don't need to care about that) an "aquarium" and making a...
Type: Posts; User: MipZhaP
Okey, my fault for not being explicit in explaining the structure.
The main.cpp file is responsible for creating (using OpenGL - you don't need to care about that) an "aquarium" and making a...
Hey everyone,
I've read a bit on this forum about global variables and see that you don't recommend em.
I want to be able to use a vector of Fish objects in a boids algorithm. Here's the...
What wrong with learning more? :)
Btw. nice rewrite of my post SlyMaelstrom :D
Salem since you haven't noticed I'll write it to ya, the person asked for tutorials and sample code.. Doesn't that sound like something he can LEARN from? I know that's what I'm doing from a...
Isn't it because of the lack of
int main()
{
...
}
or perhaps because you get an WinMain error, it looks like your trying to create a Windows Program??
Well I use a middle between you two.
I write using std::endl;
And yes, that was what I'd sadly forgotten.
Remembered all the others though. :S
Thx for reminding me :)
I have this code, where I use endl to go to a newline. Pretty simple, usually I don't get such an error but suddenly my project has begun to give my an error on every line that i use endl.
...
What's the return type? Int?
Hi,
Need som help with a Date/Time problem.
I've read page up and page down about different ways to determine the date and time in a function. But I get very confused because which way should I...
Thx Raven Arkadon, I understand it very well :)
Darkcoder: Well I don't want a 1-chared name/spell ;) But know what you mean :) But btw. thx for your example ;)
int n = foo[first_element];
Make a for loop that runs through the elements and puts them into the foo array in the i-1 place.
And then when the for loop has reached the end, just...
I only have one question about your beautiful example Raven Arkadon..
Where do you have the "("some_name", "some_clan");" from in line:
CharacterBase *p_character = new OrcCharacter("some_name",...
Thx both :)
Well I can hear that I'm on the right track, but I'm still having the problem figuring out how I can include/use only the class for the specific character type.
I was thinking about...
strtok()..
You're welcome. :)
Try putting an cin.ignore() after the first cin.get()..
And btw. you wrote "enter first name" twice :D
Edit:
It might be the termination character from the first cin, that's ruins it for you....
Hi,
I'm having some problems structuring my program. How to make it. I want to make a game where a player can select between 3 different types og character, select name and so on, and after that...
Thx Salem, I'll try taking a look at it :)
Number 1:
What kind of program?
Number 2:
Blank on this one. :)
Number 3:
When you've done all 23 tutorials, you know that the following functions/ways that the tutorial describe exists. ...
Try googling it.
That helps alot, when you books fail. :)
Good luck with your research :)
Well, I thought about windows GDI, I don't have much experience with it, but a little.
For my own program it would be okey to use some outdated software, but I just would like to be on the way where...
Hi,
I need som help, I want to display a graph in a window. It has something to do with a mathematical graph I want to display. For now my application is a console app, that calculates some...
Oh..
Didn't knew that.
Thx alot :)
Hi,
I've run into a problem,
I have a switch-statement like this:
switch(chMenu)
{
case 1:
You can also make a for loop that runs forever and in your switch-statement have a case that runs return 0, and closes the program. :)