Search:

Type: Posts; User: DougDbug

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    4,995

    There's a lot to C++ and the only complete C++...

    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...
  2. Replies
    14
    Views
    3,069

    Of course, you'll need to put that in a loop. ...

    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...
  3. Replies
    21
    Views
    2,691

    Just a warning in case Beep() doesn't work as...

    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...
  4. Replies
    5
    Views
    26,930

    There is some information about EOF in the...

    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...
  5. Replies
    3
    Views
    7,707

    That particular visualization looks like a...

    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...
  6. Replies
    10
    Views
    1,134

    This is a bit off-topic, but I cringe a little...

    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...
  7. Replies
    3
    Views
    822

    Maybe it will help if I give you an example of...

    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...
  8. Thread: How long...

    by DougDbug
    Replies
    6
    Views
    984

    My favorie analogy is: It's like learning to...

    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...
  9. Replies
    7
    Views
    1,216

    Ahmed, But, it's not the indentation that's...

    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...
  10. In C++, there are only two ways to read/write...

    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,...
  11. Replies
    1
    Views
    1,535

    The Forgers Tutorial...

    The Forgers Tutorial is a good starting-point for Win32. (I've never used MFC or wXWidgets.)
  12. Thread: boolean

    by DougDbug
    Replies
    11
    Views
    1,284

    Don't get too bogged-down in the abstract... ...

    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")... ...
  13. :D Yeah... This kind of thing happens to...

    :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......
  14. I suggest you get a good beginning C++ book...

    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...
  15. Replies
    8
    Views
    2,295

    :) Many years ago I had a copy of ELIZA...

    :) 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...
  16. Replies
    4
    Views
    1,535

    From the LAME...

    From the LAME website:

    The Ogg Vorbis code is also open source.
  17. Replies
    4
    Views
    8,005

    I remember being surprised when I found out that...

    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...
  18. Replies
    3
    Views
    2,592

    You should be OK. There is no rule against...

    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,...
  19. Replies
    15
    Views
    2,009

    Programming is difficult, and C++ is a complex...

    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...
  20. Replies
    14
    Views
    4,622

    I remember reading somewhere that Linux version...

    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".)
  21. Replies
    3
    Views
    1,040

    An online course wouldn't hurt, but how much will...

    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...
  22. Replies
    7
    Views
    1,171

    Nathan, I think this is difficult because it's...

    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...
  23. Thread: bios.h

    by DougDbug
    Replies
    3
    Views
    6,745

    bios.h is not part of the ANSI C++ Language...

    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...
  24. Replies
    4
    Views
    2,124

    That could be a BIG problem.... I did a quick...

    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...
  25. Thread: C++ Bitsets

    by DougDbug
    Replies
    8
    Views
    2,038

    If the "unused" bits were random, think about...

    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! ...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4