changing array references to pointers

This is a discussion on changing array references to pointers within the C Programming forums, part of the General Programming Boards category; nevermind...

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    6

    changing array references to pointers

    nevermind
    Last edited by killcapital; 04-30-2008 at 10:00 PM.

  2. #2
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    The only compile error I got with that code is that you forgot to specify the int return type for main().

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    6
    Quote Originally Posted by cpjust View Post
    The only compile error I got with that code is that you forgot to specify the int return type for main().
    i'm on dev c++ and i don't get that error

  4. #4
    Registered User
    Join Date
    Mar 2008
    Posts
    6
    i need help asap

  5. #5
    Registered User NeonBlack's Avatar
    Join Date
    Nov 2007
    Posts
    435
    cpjust is that really an error? I thought it would only come up as a warning.

    killcapital, you shouldn't delete your post after you've solved the problem. There's a high chance, especially if you're a beginner, that someone else will have the same problem as you.
    I copied it from the last program in which I passed a parameter, which would have been pre-1989 I guess. - esbo

  6. #6
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    That's because it's homework and he's worried he'll get caught out.

    I agree, DON'T DO IT. If you don't want your code on the internet don't post it!? If you're not allowed to ask for help on the internet -- DON'T!

  7. #7
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by NeonBlack View Post
    cpjust is that really an error? I thought it would only come up as a warning.

    killcapital, you shouldn't delete your post after you've solved the problem. There's a high chance, especially if you're a beginner, that someone else will have the same problem as you.
    Well it's actually a warning, but it's an important warning.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to sort an array of pointers to structure
    By broli86 in forum C Programming
    Replies: 3
    Last Post: 06-30-2008, 03:52 PM
  2. Syntax for constant array of array pointers
    By BMintern in forum C Programming
    Replies: 4
    Last Post: 05-14-2008, 09:21 AM
  3. Returning an Array of Pointers to Objects
    By randomalias in forum C++ Programming
    Replies: 4
    Last Post: 04-29-2006, 03:45 PM
  4. array of pointers to struct array
    By eth0 in forum C++ Programming
    Replies: 1
    Last Post: 01-08-2004, 06:43 PM
  5. array of pointers to structs
    By stumon in forum C Programming
    Replies: 7
    Last Post: 03-24-2003, 07:13 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21