EQEmulator Forums

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

Virus11 05-23-2004 06:06 AM

Junior Developer Code
 
I don't know what you really need. But here I wrote a little code earlier out of pure boredom for my teacher to get some brownie points, I guess I will use it here.

Code:

#include <iostream.h>

int main ()
{
  int i;
  cout << "Kevin's times table calculator!";
  cin >> i;
  cout << "Now calulating the times table for: << i;
  cout << " x1 is " << i*1 << ".\n";
  cout << " x2 is " << i*2 << ".\n";
  cout << " x3 is " << i*3 << ".\n";
  cout << " x4 is " << i*4 << ".\n";
  cout << " x5 is " << i*5 << ".\n";
  cout << " x6 is " << i*6 << ".\n";
  cout << " x7 is " << i*7 << ".\n";
  cout << " x8 is " << i*8 << ".\n";
  cout << " x9 is " << i*9 << ".\n";
  cout << " x10 is " << i*10 << ".\n";
  cout << " x11 is " << i*11 << ".\n";
  cout << " x12 is " << i*12 << ".\n";
  cout << " x13 is " << i*13 << ".\n";
  cout << " x14 is " << i*14 << ".\n";
  cout << " x15 is " << i*15 << ".\n";
  cout << " x16 is " << i*16 << ".\n";
  cout << " x17 is " << i*17 << ".\n";
  cout << " x18 is " << i*18 << ".\n";
  cout << " x19 is " << i*19 << ".\n";
  cout << " x20 is " << i*20 << ".\n";
  cout << " x30 is " << i*30 << ".\n";
  cout << " x40 is " << i*40 << ".\n";
  cout << " x50 is " << i*50 << ".\n";
  cout << " x60 is " << i*60 << ".\n";
  cout << " x70 is " << i*70 << ".\n";
  cout << " x80 is " << i*80 << ".\n";
  cout << " x90 is " << i*90 << ".\n";
  cout << " x100 is " << i*100 << ".\n";
  return 0;
}


govtcheeze 05-23-2004 06:45 AM

Code:


#include <iostream.h>

int main ()
{
  cout << "Kevin's times table calculator!";
  cin >> j;
  cout << "Now calulating the times table for: << j;
  for(i = 1; i <= 20; i++)
    cout << " x" << i << " is " << j*i << ".\n";

  for(i = 30; i <= 100; i += 10)
    cout << " x" << i << " is " << j*i << ".\n";
}

...and I do not think the purpose of the Jr. Dev was to post random code, but to post fixes to eqemu code the devs have overlooked / not had time to address.

Virus11 05-23-2004 07:48 AM

Heh, yeah that would be easier.:) Give me a little time to come up with an EqEmulator fix, one sec.


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

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