Thread Closed

pointers .....C language

 
Share Thread Thread Tools
Nov25-06, 02:55 AM   #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

what i did is strcmp with < if it is place ptr 1 (it works)
then
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

thanks
 
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> 'Whodunnit' of Irish potato famine solved
>> The mammoth's lament: Study shows how cosmic impact sparked devastating climate change
>> Curiosity Mars rover drills second rock target
Nov25-06, 12:13 PM   #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.
 
Nov25-06, 02:43 PM   #3
 
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.
 
Nov26-06, 03:29 AM   #4
 

pointers .....C language


my problem is solved !!

Thanks all of you
 
Thread Closed
Thread Tools


Similar Threads for: pointers .....C language
Thread Forum Replies
Doing a presentation. Need some pointers. Chemistry 1
Coding a Bubble Sort routine using a pointer array Programming & Comp Sci 4
New and looking for pointers. General Discussion 0
C++ Pointers doubt Engineering, Comp Sci, & Technology Homework 13
Need some pointers Introductory Physics Homework 21