User Profile

Collapse

Profile Sidebar

Collapse
girl23
girl23
Last Activity: Oct 17 '07, 01:53 AM
Joined: Oct 15 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • girl23
    started a topic converting decimal to binary
    in C

    converting decimal to binary

    Hi there
    ]i am new to C programming and totally lost.
    iam trying to convert decimal to binary. here is what i did
    please ignore the case h and m. I am trying to get case 'b' to work.
    i do not want to use cout and cin. is there any other way to change the last function. please someone help me.

    [CODE=c]#include <stdio.h>
    #include <time.h>

    int main( )
    {
    char...
    See more | Go to post
    Last edited by Ganon11; Oct 17 '07, 03:40 AM. Reason: Please use the [CODE] tags provided.

  • girl23
    replied to converting month number to month name
    in C
    Thank you so much
    that helps me a lot...
    See more | Go to post

    Leave a comment:


  • girl23
    started a topic converting month number to month name
    in C

    converting month number to month name

    I am using a function prototype to convert month number to month name.
    basically you ask the compiler to enter int from 1 to 12 and then convert it.

    printMonth ( number ); is the prototype and using switch this is what i did

    case 'm':
    printf( "What month? Enter a number between 1 and 12: " );
    scanf( "%d%c", &number, &tmp );
    ...
    See more | Go to post
No activity results to display
Show More
Working...