Thread: What is wrong with this code - please help

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    104

    What is wrong with this code - please help

    Fixed
    Last edited by ICool; 09-23-2007 at 11:31 PM.

  2. #2
    Registered User
    Join Date
    Sep 2007
    Posts
    104
    It says undefined ISO and p yet I defined them both ? I'm sorry I'm posting so much code but I have very little time left to hand this program in , so if you can help I would appreciate it a lot. Thanks guys

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    835
    If you fix your indentation it will be obvious why ISO is not in scope, plus you never defined p.

  4. #4
    Registered User
    Join Date
    Sep 2007
    Posts
    104
    *p = 0 is not defining it ?
    Should I retype everything into gvim to fix indentation ? Thanks for your help

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Please don't delete your post just because you think it's been fixed.
    It removes the possibility for others to learn, and perhaps spot additional mistakes.
    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.

  6. #6
    Registered User
    Join Date
    Sep 2007
    Posts
    104
    Sorry Salem , point taken

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. what is wrong in this simple code
    By vikingcarioca in forum C Programming
    Replies: 4
    Last Post: 04-23-2009, 07:10 AM
  2. what is wrong with this code please
    By korbitz in forum Windows Programming
    Replies: 3
    Last Post: 03-05-2004, 10:11 AM
  3. I cant find what is wrong with this code
    By senegene in forum C Programming
    Replies: 1
    Last Post: 11-12-2002, 06:32 PM
  4. Anyone see what is wrong with this code?
    By Wise1 in forum C Programming
    Replies: 2
    Last Post: 02-13-2002, 02:01 PM
  5. very simple code, please check to see whats wrong
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 10-10-2001, 12:51 AM