Announcement

GOOGLE CHROME IS A BOTNET? GOOGLE CHROME IS A BOTNET? GOOGLE CHROME IS A BOTNET? GOOGLE CHROME IS A BOTNET? GOOGLE CHROME IS A BOTNET? GOOGLE CHROME IS A BOTNET? GOOGLE CHROME IS A BOTNET? GOOGLE CHROME IS A BOTNET? WE LIVE INSIDE A DREAM. GOOGLE CHROME IS A BOTNET? GOOGLE CHROME IS A BOTNET? GOOGLE CHROME IS A BOTNET? GOOGLE CHROME IS A BOTNET? GOOGLE CHROME IS A BOTNET? GOOGLE CHROME IS A BOTNET? GOOGLE CHROME IS A BOTNET? NO MORE SPAM
FRIENDLY REMINDER THAT THE FORUMS ARE DEAD AND THAT THE LIFE OF THE PARTY CURRENTLY RESIDES IN #FAIL #EEFORUMSANARCHY #EEFORUMS #hi ON RIZON.

YO RIZON #HI
it's closing time you don't have to go home but you can't stay here

Advertisement

»  » 

#1 2012-02-07 18:37:57

Bobithan
Actually Towwl
Registered: 2011-07-27
Posts: 2,215
Fails: 17

Calculator

Right now all I have made is a calculator, and I'm willing to share it with you people.

Calculator:

Newest version

Older one

Not much, but I'm somewhat proud of it, as it's my first actual usage of "if" and "while" loops.  Comments? Suggestions?


secretsaget.gif

Towel on IRC

Offline

#2 2012-02-07 22:17:30

Different55
The Beanmaker
Registered: 2011-05-18
Posts: 9,143
Fails: 0

Re: Calculator

I will download and try once WeeWorld isn't taking up half my memory. -_-


Jet fuel can't make dank memes.

Offline

#3 2012-02-07 22:48:26

Ratburntro44
Member
Registered: 2011-10-28
Posts: 3,370
Fails: 100,959

Re: Calculator

What did you use to make this? I know I could make this in C (for OS X, I don't have any compilers for windows and don't feel like getting any).


31
SEfX29x.png

Offline

#4 2012-02-08 20:16:01

Bobithan
Actually Towwl
Registered: 2011-07-27
Posts: 2,215
Fails: 17

Re: Calculator

C++. I don't know much right now, just a few basics.
Also, I edited it so that it's almost entirely idiot-proof.
Click here for download


secretsaget.gif

Towel on IRC

Offline

#5 2012-02-11 22:45:12

Muffin
rrrrrr
From: Mulberry Lane
Registered: 2011-05-18
Posts: 1,318
Fails: 567
Website

Re: Calculator

ERM.
uBJJr.png

What are you downloading onto my computer??


rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr

Offline

#6 2012-02-12 13:12:04

Bobithan
Actually Towwl
Registered: 2011-07-27
Posts: 2,215
Fails: 17

Re: Calculator

wut

What version of Norton? I use 360 and it doesn't care about simple command prompts like this


secretsaget.gif

Towel on IRC

Offline

#7 2012-02-13 22:03:47

scienceguyz
VIF
Registered: 2012-03-04
Posts: 1,791
Fails: 114

Re: Calculator

You use C++ for this.
I made a basic adding calculator with html and Javascript, but I might have to use C++ to get it to multiply! thanks!

Last edited by scienceguyz (2012-02-13 22:04:13)


No longer part of Fail. Sorry.

Offline

#8 2012-02-14 18:34:48

Different55
The Beanmaker
Registered: 2011-05-18
Posts: 9,143
Fails: 0

Re: Calculator

Dood. Wat. Javascript can multiply.


Jet fuel can't make dank memes.

Offline

#9 2012-02-14 20:18:17

scienceguyz
VIF
Registered: 2012-03-04
Posts: 1,791
Fails: 114

Re: Calculator

Different55 wrote:

Dood. Wat. Javascript can multiply.

I havn't figured it out yet.


No longer part of Fail. Sorry.

Offline

#10 2012-02-14 20:40:13

Ratburntro44
Member
Registered: 2011-10-28
Posts: 3,370
Fails: 100,959

Re: Calculator

Here's my tutorial on multiplication in javascript:

To add, you do this:

c=a+b;

To multiple a and b instead, change it to this.

c=a*b;

And if for some reason you hate multiplication symbols, you could do this:
function mult(a,b) {
var i=0, c=0;
while (i<b)
{
c += a;
i++;
}
return c;
}

Done! Now we learned how to replace a plus sign with a multiplication sign!

31
SEfX29x.png

Offline

#11 2012-02-14 20:45:24

scienceguyz
VIF
Registered: 2012-03-04
Posts: 1,791
Fails: 114

Re: Calculator

Ratburntro44 wrote:

Here's my tutorial on multiplication in javascript:

To add, you do this:

c=a+b;

To multiple a and b instead, change it to this.

c=a*b;

And if for some reason you hate multiplication symbols, you could do this:
function mult(a,b) {
var i=0, c=0;
while (i<b)
{
c += a;
i++;
}
return c;
}

Done! Now we learned how to replace a plus sign with a multiplication sign!

I didn't know I could do that.


No longer part of Fail. Sorry.

Offline

Board footer

Jump to

We use Fail. Fail uses FluxBB

[ Generated in 0.018 seconds, 35 queries executed - Memory usage: 577.95 KiB (Peak: 601.61 KiB) ]