There is a CD playing program on my DOS drive, and it
works fine. I imagine an MP3 program wouldn't be that
much more difficult.
Miki
[email protected]
Type: Posts; User: ustuzou
There is a CD playing program on my DOS drive, and it
works fine. I imagine an MP3 program wouldn't be that
much more difficult.
Miki
[email protected]
Then you need to have the input routine before you declare
the array. As I said before, you can't have an
unspecified array size upon declaration. If the compiler
doesn't know how big the array...
You haven't defined the size of MAXPLAYERS, so [MAXPLAYERS
+1] isn't defined either. The stuff in square brackets is
the array dimensions, and those have to be set whenever
you declare the array....
The non-bulletproofed input for degrees, minutes, and
seconds would be something like:
char inputString[9];
cout << "Input degrees, minutes, seconds, separated by
commas ";...
When I use mouse clicks to click the "build all" item,
rhide performs okay, although it does insist on the -g
switch. When I hit <F4>, it compiles and links okay, then
gives me a dialog box...
Thanks. I have two more questions.
First, does that code round up in case of a third decimal
place that is 5 or more?
Second, can you use <cstdio> instead of <stdio.h> in C++
programs, as I...
Do people have a usual function they use when rounding
floats off to two decimal places (in order to represent
monetary amounts)?
I am asking because my program takes a percentage of a
dollar...
The cin command is problematic, because there is no
checking for variable type. If you specify an integer and
the user inputs a character, you get garbage. The
solution seems to be to use gets()...
So what's the way to compile several .cpp files together
at once? I actually tried this and it didn't work. (I'm
using DJGPP, by the way.)
Miki
[email protected]
Thanks. Would I install Windows first, then put the DOS
system files in the extended partition and boot off floppy
with reference to that partition? I don't think DOS would
care where...
My Windows HD is the primary master and my DOS HD is the
secondary master. The Windows HD is FAT32 (yes, I know, I
got it from someone else). To boot Windows, which I do
rarely, I just power up...
Thanks. The program compressed my 246,000-byte .exe to a
90,000-byte .exe, and the program still works perfectly.
Unfortunately, it will probably work only on a 32-bit
system, since that is what...
Even after I use the -s switch in compiling my C++ code in
DOS, a 2,500 byte .cpp file turns into a 250,000 byte
.exe. Any tips on reducing the size of the .exe beyond
what Mr. Delorie suggests...
As a test of my programming ability, I tried to write a
little program that inputs the diagonal of a monitor and
calculates the viewable area. It then optionally inputs
the diagonal of another...
Thanks. I wish I had asked you before I bought it - it
was about $50 Canadian.
As for the Deitel book, do you have the ISBN number? I am
certain I can get it if it's still in print.
Thanks...
I am a beginner and have the following books:
- "Teach Yourself C++" by Jesse Liberty
- "C++ from the Ground Up" by Herbert Schildt
- "Debugging C++" by Chris S. Pappas
- "The ANSI/CIO C++...