Thread: help plss.

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    4

    help plss.

    help me plss in making a c program conversion units.. btw hir is the output of the program
    [a] Currency
    [b] Measurement
    [c] temperature
    tnx

  2. #2
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    What have you tried so far and what do you need help with?
    1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
    2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
    3. Get rid of conio.h and other antiquated DOS crap headers.
    4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. PLss HeLpppppp
    By MoraL in forum C Programming
    Replies: 5
    Last Post: 05-30-2008, 09:23 AM
  2. plss help
    By raja9911 in forum C Programming
    Replies: 13
    Last Post: 01-28-2006, 02:00 PM
  3. Can someone Help me?
    By Mitchell in forum Windows Programming
    Replies: 14
    Last Post: 12-13-2001, 11:25 AM