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....
Type: Posts; User: trievideo
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....
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...
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)...
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...
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:
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...
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...
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...
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...
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.
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>...