Search:

Type: Posts; User: AshFooYoung

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    4,054

    preceding zeros in int variables

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

    duh! Thanks, zen. ...

    <smacks self on head>

    duh!

    Thanks, zen.

    Ash
  3. Replies
    2
    Views
    1,009

    what's the problem here?

    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?

    -----

    /*...
  4. Thread: %f

    by AshFooYoung
    Replies
    14
    Views
    1,122

    Prelude, Is that book suitable for people with...

    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...
  5. Thread: %f

    by AshFooYoung
    Replies
    14
    Views
    1,122

    Thanks a lot Salem. I had come to the conclusion...

    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,...
  6. Thread: %f

    by AshFooYoung
    Replies
    14
    Views
    1,122

    Here's the code: ------- /* This program...

    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()
  7. Replies
    8
    Views
    2,555

    I thank everyone for their kind responses and...

    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...
  8. Thread: %f

    by AshFooYoung
    Replies
    14
    Views
    1,122

    OK, so %f is a valid c.s. That makes me feel a...

    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...
  9. Thread: %f

    by AshFooYoung
    Replies
    14
    Views
    1,122

    %f

    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...
  10. Replies
    8
    Views
    2,555

    Nick, After I made my post I found the &&...

    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...
  11. Replies
    8
    Views
    2,555

    A very basic question

    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...
Results 1 to 11 of 11