Computer Hope

Software => Computer programming => Topic started by: ThomasTheXPUser on August 03, 2009, 03:45:43 PM

Title: Finally made my own batch program
Post 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.

Title: Re: Finally made my own batch program
Post by: Helpmeh on August 03, 2009, 04:19:21 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.

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
Title: Re: Finally made my own batch program
Post by: ThomasTheXPUser on August 03, 2009, 05:46:45 PM
Thanks, thats nice. Only thing is that it says missing operand. hmm
Title: Re: Finally made my own batch program
Post by: Helpmeh on August 03, 2009, 07:06:58 PM
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
Title: Re: Finally made my own batch program
Post by: ThomasTheXPUser on August 03, 2009, 07:38:03 PM
Oh, OK!
Title: Re: Finally made my own batch program
Post by: BatchFileBasics on August 06, 2009, 01:39:20 AM
what youtube video did you watch  ;D
Title: Re: Finally made my own batch program
Post by: Helpmeh on August 06, 2009, 02:40:26 PM
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.
Title: Re: Finally made my own batch program
Post by: kpac on August 06, 2009, 02:44:40 PM
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...
Title: Re: Finally made my own batch program
Post by: BatchFileBasics on August 06, 2009, 03:43:49 PM
yea helpmeh, i was talking about
... Found a really cool tutorial on youtube and built it...

Title: Re: Finally made my own batch program
Post by: Helpmeh on August 07, 2009, 06:33:50 AM
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
Title: Re: Finally made my own batch program
Post by: BatchFileBasics on August 07, 2009, 01:07:10 PM
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
Title: Re: Finally made my own batch program
Post by: Helpmeh on August 07, 2009, 05:01:55 PM
The first batch calculator video

That's what they all say.
Title: Re: Finally made my own batch program
Post by: BatchFileBasics on August 07, 2009, 07:07:26 PM
Quote
uploaded August 23, 2008


 ;D
Title: Re: Finally made my own batch program
Post by: BC_Programmer on August 07, 2009, 07:15:48 PM
a batch calculator video. please.

Why not have youtube video's describing the complicated semantics of double clicking?
Title: Re: Finally made my own batch program
Post by: gh0std0g74 on August 07, 2009, 09:00:06 PM
@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.
Title: Re: Finally made my own batch program
Post by: BC_Programmer on August 07, 2009, 09:01:24 PM
hear hear!
Title: Re: Finally made my own batch program
Post by: BatchFileBasics on August 07, 2009, 09:16:18 PM
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