void Cube(int num,float size,float posx,float posy,float posz){
dbMakeObjectCube(num,size);
dbPositionObject(num,posx,posy,posz);
}
I think that's what you want. Making functions in C/C++ is a pretty straight foreward and basic thing. If you have done more than a month's worth of programming in C/C++, you should have made a function or two already. Just in case, you should look up class/struct and function declarations before going any further in programming. They make your program easier to manage and more powerful. For instance:
class MyClass{
private:
int Num;
public:
void PrintNum(void);
void SetNum(int n);
};
MyClass::PrintNum(void){
dbText(0,0,Num);
}
MyClass::SetNum(int n){
Num=n;
}
I know it doesn't seem like much when you first look at it, but it's much more powerful than DBP's "function".
Remember, when you make a class, you have to declare it before you ever use it in your code. I usually make all my functions and place them in another file and then #include it at the beginning of my main program. There are several ways to do that, but if you don't want to mess with multiple files, just declare the class before your main loop.
The fastest code is the code never written.