|
I finally did some C++. Never knew why I didnt start before. Oh well. #include "stdafx.h" #include "iostream" #include "math.h" using namespace std;
double dividesT(double numers, double denoms){ double finalnum = numers/denoms; return finalnum; }
int main() { double numer; double denom; cout << "Fraction to Decimal Converter" << endl; cout << "Enter the numerator: "; cin >> numer; cout << "Enter the denominator: "; cin >> denom; cout << "The decimal:" << endl; cout << "*************************************" << endl; cout << dividesT(numer,denom) << endl; cout << "*************************************" << endl; system("PAUSE"); return 0; }
I wanted to learn, mainly for game programming. Any ideas on some topics I should learn?
|
|
|
|
|
For games, everything. Seriously though, you're going to need to learn a lot. Just keep learning everything you can get your hands on.
Last Edit: Jul 25, 2007 19:52:07 GMT by Mithras
|
Support Rob Scuderi, the #1 Penguins Defender!
"Behold: me! I have authority in this building."
|
|
|
|
The more you learn, the more you have at your disposal to make the script better. It can never hurt to have too much knowledge.
|
|
|
|
|
I have a question.
#include "string.h" #include <string>
Those two are different, right?
|
|
|
|
|
Well I just got my hands on a game engine, not the FPS Creator, but another one. And Its awesome. I think I may write a tutorial on it. Here's some code for it: // Irrlicht Game.cpp : main project file.
#include "stdafx.h" #include <irrlicht.h> #include <windows.h> using namespace irr; using namespace std; using namespace core; using namespace scene; using namespace video; using namespace io; using namespace gui; #pragma comment(lib, "Irrlicht.lib") int main() { //Create a Irrlicht Device to handle engine functions IrrlichtDevice *device = createDevice(EDT_SOFTWARE, dimension2d<s32>(512, 384), 16, false, false, false, 0); //Set Window Caption device->setWindowCaption(L"Space Voyager");
system("PAUSE"); }
Last Edit: Aug 13, 2007 2:06:10 GMT by fireindy
|
|
|
|
|
like chris sed the more you learn the better you get like me i have been doing C++ for just over 4 years and have been doing the OpenGL API for just over 3 all this skill i have learned im now in the middle of making a 3D graphics engine called the Sy-Engine
|
|
|