I have to write a program that reads a decimal integer (int) entered in binary form and converts it into its decimal equivalent. I've got the program up and running except for one thing: any zeros I...
Type: Posts; User: AshFooYoung
I have to write a program that reads a decimal integer (int) entered in binary form and converts it into its decimal equivalent. I've got the program up and running except for one thing: any zeros I...
<smacks self on head>
duh!
Thanks, zen.
Ash
I won't bore you with details, but this program I've been working on crashes every time, right after I enter the value for the first variable and I don't have a clue why. Any ideas?
-----
/*...
Prelude,
Is that book suitable for people with no previous programming experience? I've done a little HTML and some real basic stuff on my graphing calculator in HS, but for the most part I'd say...
Thanks a lot Salem. I had come to the conclusion that the book was not explaining everything, and while I had hoped that wasn't the case, it clearly is. I only hope this is just a slip-up,...
Here's the code:
-------
/* This program reads the radius of a circle from the user and determines
the circle's diameter, circumference, and area. */
#include <stdio.h>
int main()
I thank everyone for their kind responses and advice. However, I need to be a little more specific about the criterion for this particular exercise. The only things I am supposed to use are single...
OK, so %f is a valid c.s. That makes me feel a little better. The problem is, I haven't learned the float variable type yet; but just as in the last exercise, I am assumed to know something I've...
Is %f a valid conversion specifier for use with printf? I am working on a textbook exercise, and i'm supposed to write a program that will calculate the diameter, circumference, and area of a circle...
Nick,
After I made my post I found the && solution on a C tutorial website, quite by accident. I've tried it, and as you know it works, but the thing that irks me is that I was given no knowledge...
I just started learning C a few days ago, and I bought a book called "C How to Program." As it turns out it was intended to be a college textbook, but I've found it very helpful so far. Right now...