Search:

Type: Posts; User: PopRox

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    1,167

    Sound on the PC speaker

    I used to do some of that. It's amazing what you can do with sound, nosound, and delay. Basically, you can vary the delays and make some loops that call sound and no sound that will give you...
  2. tortoise and the hare problems

    One of your problems is how you are assigning values to your character array: Remember that when you assign single characters, they should be enclosed in single quotes, not double quotes:

    "Apple"...
  3. Replies
    3
    Views
    1,686

    No for input

    Hi chubaka,

    THis question comes up alot when people are learning C. The short answer is: There isn't a good way to do it. When you scan a string or a single character from the keyboard, it...
  4. Comparing characters

    If you're tring to compare character STRINGS (arrays of characters) use strcmp, etc in string.h

    Computers represent single characters internally as numbers -- so you just compare them by using the...
  5. Thread: Qt

    by PopRox
    Replies
    2
    Views
    2,259

    QT linking

    There are almost certainly library files
    that you have to link in on the compile command line. By default, only the standard C library is included. So, to include a specific extra library, the...
  6. Using sendmail from C

    Don't mess with sockets and crap! It's really a very simple problem.

    Sendmail doesn't require root, of course it doesn't since the mail system and each user calls it! I use sendmail from my C...
  7. Replies
    19
    Views
    3,535

    Not that complicated!

    Your code looks basically correct using long ints... but when you print the result out you are using %d as your format specifier... this is not the correct format specifier for a long int. Try using...
  8. Thread: an error masseg

    by PopRox
    Replies
    3
    Views
    4,025

    Error messages

    A few notes. The "conversion from double to float" is usually no big deal, but as a tip you should probably declare all your floating point variables to be doubles anyway, then you don't have to...
  9. Thread: argv

    by PopRox
    Replies
    7
    Views
    2,330

    Argv into a string

    You can use sprintf, but you have to be careful because the string variable that you sprintf into must be large enough to hold argv value. You could say "Oh well it will probably be smaller than 256...
Results 1 to 9 of 9