Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
hey all, i was wondering if anyone could help me out with something. i want to write a little program that runs in a dos box that takes a number and multiplies it by another number. anyone give me any ideas on how to do this? i just want something like this
Enter Number : X
z = X multiplied by 2 plus Y
Here is your number : Zwhere X Y and Z = a number.
help?
Laptop : DELL Inspiron 7000, ATi Rage Pro 8MB, PII 400Mhz, 20gb HDD, 15'' display.
Desktop : AMD Athlon 1800+, 640MB SD-RAM, 80GB HDD, ATi Radeon 9200 SE 128MB.

those pages wont load... :( what would the syntax be for a user to enter a number then the program uses it later in the program? in basic i know what it would be to write this program.
Input "Enter number"; $code
$output = $code * 2 + 58789847
Print "heres your number "; $outputthats the code i, think that would work. lol.
Laptop : DELL Inspiron 7000, ATi Rage Pro 8MB, PII 400Mhz, 20gb HDD, 15'' display.
Desktop : AMD Athlon 1800+, 640MB SD-RAM, 80GB HDD, ATi Radeon 9200 SE 128MB.

shoot, i shoulda said this in the other post, but , is there by any chance i can write a program in BASIC that could be made into a .exe file and run on any computer?
Laptop : DELL Inspiron 7000, ATi Rage Pro 8MB, PII 400Mhz, 20gb HDD, 15'' display.
Desktop : AMD Athlon 1800+, 640MB SD-RAM, 80GB HDD, ATi Radeon 9200 SE 128MB.

The linked pages are for standalone DOS - the XP prompt may (or may not) be problematic
Here's a thought: Programming forum?
Science is built up with facts, as a house is with stones. But a collection of facts is not more a science than a heap of stones is a home

Sounds like someone's doing homework.
Anyway, it's not that hard to get info. For a start, you could go on IRC, join #C++ on EFnet and ask for some good literature. That's what I did and I ended up with a great eBook (free at that) called "Thinking in C++" by Bruce Eckel. It's 16 chapters and I'm still not done reading it, but it's VERY informative.
AMD Athlon XP 2000+
512MB RAM
120GB Maxtor DiamondMax Plus/Seagate Barracuda 60GB HDD
Nvidia GeForce 6600LE 256MB
16x DVD-ROM
42x CD-RW
16x External DVD RW

I'd suggest either getting help from your teacher or dropping the programming class for something that is more attuned to your skills.

im not taking a programming class. i just want to write a small program for me here at my house. thats all. thanks for the replies.
Laptop : DELL Inspiron 7000, ATi Rage Pro 8MB, PII 400Mhz, 20gb HDD, 15'' display.
Desktop : AMD Athlon 1800+, 640MB SD-RAM, 80GB HDD, ATi Radeon 9200 SE 128MB.

![]() |
System recovery problem
|
safely remove hardware bs...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |