Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Pointers .C language

  1. Nov 25, 2006 #1
    pointers .....C language

    I need your help:

    name1 < name 2 > name 3

    I m writing a problem that place:
    a pointer on name 1
    a pointer on name 2
    a pointer on name 3

    I have been working on it more than 24 hours but in vain :cry:

    what i did is strcmp with < if it is place ptr 1 (it works)
    strcmp if there is sthg after the < place ptr 2 (it works)

    BUT The same procedure didn't work for the latest name PLEASE I SPEND hundreds of hour on writing my program and i m still stuck in many parts...can u help me solving this part

  2. jcsd
  3. Nov 25, 2006 #2
    A name, assuming that you made it an array of characters, will always be a pointer. Make sure you understand that completely. It would help immensely if you posted your code so I can see exactly what you're doing incorrectly.
  4. Nov 25, 2006 #3
    not clear

    I don't understand your problem specification. The number one rule of computer science is that the problem specification must be spelled out clearly and non-ambiguous. You will find out this true for small assignments, and real projects.
  5. Nov 26, 2006 #4
    my problem is solved !!

    Thanks all of you
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook