There's a lot to C++ and the only complete C++ reference I know of is the actual C++ Language Standard. (There are a couple of complete online references,and your compiler may include a good...
Type: Posts; User: DougDbug
There's a lot to C++ and the only complete C++ reference I know of is the actual C++ Language Standard. (There are a couple of complete online references,and your compiler may include a good...
Of course, you'll need to put that in a loop. And, don't mix-up ms and us. (I'm not familiar with the PIC compiler or these special commands, but the concept looks good.)
I'm not sure what...
Just a warning in case Beep() doesn't work as expected...
I remember that Beep() has some strange "if" conditions. I seem to remember that if you have a soundcard installed, you'll just get...
There is some information about EOF in the Programming FAQ.
The way I think about it (which might not be 100% correct) is that EOF has a value, but EOF is not simply a value...
I used to...
That particular visualization looks like a Spectrum Analyzer which shows the frequency content over a given period of time. This is normally done with a Fast Fourier Transform which converts the...
This is a bit off-topic, but I cringe a little when I see the word "script". This is C++ source code, or informally, just "code".
I don't actually know the technical definition of script, but...
Maybe it will help if I give you an example of why you would use references...
Usually references are introduced with the Swap(x, y) function. The purpose of that function is to swap the x & y...
My favorie analogy is: It's like learning to play the guitar. You can learn a few chords in a few days, but it's going to take about a year before you can impress your friends.
Are you able to...
Ahmed,
But, it's not the indentation that's causing your bug. It's the placement of the curly braces.
You have a pair of braces following your if-statement. Everything inside the braces...
In C++, there are only two ways to read/write files: Text and binary. Almost everything is done in binary mode. (In this context, binary doesn't mean "base-2"... It means "raw data".)
And,...
The Forgers Tutorial is a good starting-point for Win32. (I've never used MFC or wXWidgets.)
Don't get too bogged-down in the abstract...
In real-world programs, the variables represent the state of something "real", like : IF (a blank CD is inserted) AND (the user clicks "burn")... ...
:D Yeah... This kind of thing happens to programmers every day! And, not just when copying an example program... Sometimes you just can't "see" what's wrong. And, it can be very frustrating......
I suggest you get a good beginning C++ book. C++ is a complicated language, and most tutorials only have one or two "pages" per topic, but most books will devote a full chapter (or more) to each...
:) Many years ago I had a copy of ELIZA and the BASIC source code... It was kind-of fun to "play with" at first, then it would get annoying... Ond one of my coworkers discovered that it would...
From the LAME website:
The Ogg Vorbis code is also open source.
I remember being surprised when I found out that you couldn't "directly" use binary in C or C++.
Most people who work with binary use hex in their programs. (Of, course, the computer doesn't...
You should be OK. There is no rule against having ore than one file open at a time, and if different threads are reading/writing different files I wouldn't anticipate any trouble.
...Of course,...
Programming is difficult, and C++ is a complex programming language. For example, there are no reference books that cover the entire C++ Standard Library! (There are a couple of complete online...
I remember reading somewhere that Linux version 2.4 contained about 2.4 million lines of code. (I think it's mostly C, with some C++, and some people don't consider an operating system a "program".)
An online course wouldn't hurt, but how much will it cost? ...I'd say 5 to 10 times the cost of a C++ book would be fair... Say $100 - $250 USD. But, 20 times the cost of a book would be too...
Nathan,
I think this is difficult because it's abstract. You may need to think in terms of something being true or false, rather than meaningless boolean 1's & 0's... In real programs, the...
bios.h is not part of the ANSI C++ Language Standard.
When non-standard headers/libraries are used, you need to use the compiler for-which the program was written. In general, you can't just go...
That could be a BIG problem....
I did a quick search for IT3800 and programming, and I did get hits. it3800.com has datasheets for various model variations (I didn't see any programing...
If the "unused" bits were random, think about what would happen if you were to add 0xFF + 0xFF, of if you simply incremented 0xFF ...The math would be wrong!!!!!
The leading bits must be zero! ...