Search:

Type: Posts; User: trievideo

Search: Search took 0.01 seconds.

  1. Thanks for the quick response, Salem! I think I...

    Thanks for the quick response, Salem! I think I follow you 95%. It's going to take me a day or two to understand how to implement this in my code, but thanks for sending me in the right direction....
  2. Thanks for the responses, but I'm a bit confused....

    Thanks for the responses, but I'm a bit confused. As a noob, I don't know how to:
    Without using scanf(), how do you get input from the user to put into a string in strtoul()? How do you code...
  3. Random response when int value goes over 2,147,483,647..

    On my machine signed ints have a maximum value of 2,147,483,647. I've written a program that's designed to tell the user when the input value is too high. I have an error message (using printf)...
  4. Replies
    17
    Views
    8,209

    Problem Solved

    Hey, a big thanks to all of you for taking the time to test and post code or otherwise offer suggestions! And, yes, I did get what I was after. :cool: Here's the final version, tested and...
  5. Replies
    5
    Views
    2,008

    Thanks, claudiu and Tater, appreciate your input...

    Thanks, claudiu and Tater, appreciate your input -- though I was less interested in that clichéd prime numbers exercise than in why my for loop didn't seem to be working. :eek:
  6. Replies
    17
    Views
    8,209

    Thanks very much cas (and thanks to msh, too). ...

    Thanks very much cas (and thanks to msh, too). Yes, replacing %ls with %lc has now has gotten rid of my error messages, and the program runs half-way. It even responds correctly to the ASCII...
  7. Replies
    17
    Views
    8,209

    CommonTater, thanks for your input. Though...

    CommonTater, thanks for your input. Though you've probably brought me closer to success, the program still fails with “EXC_BAD_ACCESS”

    Here's the program as it looks now:

    #define UNICODE...
  8. Replies
    17
    Views
    8,209

    Dino and Codeplug, thanks for your responses....

    Dino and Codeplug, thanks for your responses.
    Dino, yes, I've written the program with the wide-character equivalent of scanf, wscanf, but that failed, in part because I'm a noob
    and certainly...
  9. Replies
    17
    Views
    8,209

    Unicode/UTF-8 -- Going Beyond ASCII

    Here's a simple program that prints (on any ASCII or Unicode machine):

    1) the numeric value of any ASCII character;

    2) the ASCII character corresponding to any numeric value in the ASCII...
  10. Replies
    5
    Views
    2,008

    Thanks for the quick, clear response! Now it...

    Thanks for the quick, clear response! Now it seems very clear and obvious. But without your explanation, I'd still be banging my head against the wall.
  11. Replies
    5
    Views
    2,008

    for loop failure...

    Why does my SECOND for loop (in RED) work as written, but fail when I change the values of the variables? Here's the simple program (to determine prime numbers):



    #include <stdio.h>...
Results 1 to 11 of 11