Get answers to all your basic programming questions. No Ogre questions, please!
-
jacmoe
- OGRE Retired Moderator

- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
Post
by jacmoe »
Get a book about C++.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
-
eugen
- OGRE Expert User

- Posts: 1422
- Joined: Sat May 22, 2004 5:28 am
- Location: Bucharest
- x 8
Post
by eugen »

u really should start reading tutorials
-
Kezzer
- Orc
- Posts: 444
- Joined: Mon Aug 16, 2004 2:19 pm
- Location: Silicon Valley
Post
by Kezzer »
code, code
getPitch();
code, code
void getPitch()
{
code, code for what the subroutine does
}
Really, is it that hard? Either you haven't programmed before or you've muddled up your question severely.
code | blog
jacmoe wrote:MMORPG good.

Xavier bad.

-
kneeride
- Bugbear
- Posts: 807
- Joined: Sun May 14, 2006 2:24 pm
- Location: Melbourne, Australia
Post
by kneeride »
#include <iostream>
int GetPitch()
{
int pitch = 1; // code to calc the pitch
return 1; // return the pitch
}
int main()
{
int pitch = GetPitch();
std::cout << pitch << std::endl;
return 0;
}
-
Kezzer
- Orc
- Posts: 444
- Joined: Mon Aug 16, 2004 2:19 pm
- Location: Silicon Valley
Post
by Kezzer »
kneeride wrote:#include <iostream>
int GetPitch()
{
int pitch = 1; // code to calc the pitch
return 1; // return the pitch
}
return pitch;

code | blog
jacmoe wrote:MMORPG good.

Xavier bad.
