Computer Hope
Software => Computer programming => Topic started by: ThomasTheXPUser on August 03, 2009, 03:45:43 PM
-
I finally made my own batch program. Made a calculator, nothing much. Found a really cool tutorial on youtube and built it. Tell me what you think.
-
I finally made my own batch program. Made a calculator, nothing much. Found a really cool tutorial on youtube and built it. Tell me what you think.
http://thomasthexpuser.pcriot.com/SuperbatchCalculatorbyThomasTheXPUser.zip
Here is a simple calculator...
@echo off
Title Calculator
:1
Set /p a=
Set /a=%a%
Echo %a%
Goto 1
-
Thanks, thats nice. Only thing is that it says missing operand. hmm
-
Thanks, thats nice. Only thing is that it says missing operand. hmm
You type in the whole part you want calculated. For example : 1*45+24
-
Oh, OK!
-
what youtube video did you watch ;D
-
what youtube video did you watch ;D
You think I copied this off a youtube video? No. I learned that I could make a simple calculator script (that can't handle decimals) when I asked what the P switch was for the set command.
-
You think I copied this off a youtube video? No. I learned that I could make a simple calculator script (that can't handle decimals) when I asked what the P switch was for the set command.
Don't think that post was directed at you...
-
yea helpmeh, i was talking about
... Found a really cool tutorial on youtube and built it...
-
yea helpmeh, i was talking about
A quick search for "batch file calculator" will bring up what you want. And try and divide 3 by 2 in a pure batch script. 3/2*2=4
-
um, no, that wasn't really why i was asking.
i made the first batch calculator video back like year ago.
i wanted to know if he watched mine or another one lol
-
The first batch calculator video
That's what they all say.
-
uploaded August 23, 2008
;D
-
a batch calculator video. please.
Why not have youtube video's describing the complicated semantics of double clicking?
-
@OP , why do you want to make a calculator with batch? if doesn't support floating points , and a whole load of other stuff.. get a real programming language.
-
hear hear!
-
a batch calculator video. please.
Why not have youtube video's describing the complicated semantics of double clicking?
[joke]
hey! double clicking isn't that simple,
sometimes you click to fast\much and you open multiple!
sometimes you don't click fast enough and you rename it!
[/joke]
and it just simulates *simple* of using set /a for equations\adding and stuff.
ment for people beginning batch like me..sorta