Thread: newb help

  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    62

    newb help

    this program does not compile and it says showbits undeclared. how can i declared showbits
    Code:
    #include<stdio.h>
    #include<conio.h>
    #include<stdlib.h>
    
    main()
    {
           int j;
           for(j = 0; j<<=5; j++);
           {
                 printf("\ndecimal %d is same as binary", j);
                 showbits(j);
                 
           } 
          getch();
          
    }

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    You have to write the function showbits. It's certainly not in stdio.h or stdlib.h.

  3. #3
    Registered User
    Join Date
    Feb 2008
    Posts
    62

    help

    i dont know how to write the function for showbits()

  4. #4
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    That's a shame.

  5. #5
    Registered User
    Join Date
    Feb 2008
    Posts
    62

    help

    that is why iam a neb

  6. #6
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    One would think that after two dozen threads you would have figured this out by now. No one here is going to write it for you.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newb Question Character Counting
    By Wilder in forum C Programming
    Replies: 13
    Last Post: 06-22-2008, 11:37 PM
  2. Dogpile the newb!
    By lindy in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 05-23-2008, 08:17 AM
  3. Total newb directx invisable geometry question
    By -pete- in forum Game Programming
    Replies: 5
    Last Post: 08-13-2006, 01:45 PM
  4. Newb C++ Programmer
    By Philandrew in forum C++ Programming
    Replies: 8
    Last Post: 10-19-2004, 08:44 PM
  5. if your not newb you can help me
    By Klinerr1 in forum C++ Programming
    Replies: 6
    Last Post: 05-05-2002, 12:09 AM