EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=621)
-   -   Jr Dev Code (https://www.eqemulator.org/forums/showthread.php?t=14213)

Plutonium239 06-09-2004 12:00 PM

Jr Dev Code
 
I might be able to help a little, I would like to work with reverse-engineering and I'm a really fast learner, Also, I know PHP really well and I am trying to learn C++.

#include <iostream>
using namespace std;

main()
{
const PI = 3.14159;
float circumference, radius;
cout << "What is the radius of the circle?" << endl;
cin >> radius;
circumference = 2 * PI * radius;
cout << "The circle's circumference is ";
cout << circumference << '\n';
return 0;
}

animepimp 06-09-2004 01:43 PM

Posting this won't actually help you become a Dev or Junior Dev, anyone can copy and paste this from a tutorial site. Like the original post said to become one you need to post actual fixes or new features added to the server code to become one.

Plutonium239 06-09-2004 04:02 PM

Actually I didn't copy/paste this, I read on cpp-home a tutorial and one of the exercises was to create a program that returned the circumference of a circle when given the radius, but I understand about the fixes/improvements. I'll work on that, Thanks animepimp.

Pyrix 06-10-2004 12:17 AM

I dont think the eqemudevs work with cin and cout ^^

Plutonium239 06-10-2004 02:00 AM

I was looking at the source and they do, and they do the include the same way I do.

#include <iostream>
using namespace std;

That makes it so you don't have to use std::cout and std::cin etc..

Virus11 06-10-2004 12:42 PM

Uhh Jr. Dev Code, as in a EQEMu fix genius :-)

Pyrix 06-11-2004 07:41 AM

wow cool "good ol iostream" roxx


All times are GMT -4. The time now is 05:07 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.