GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #11  
Old 03-Feb-2005, 15:40
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,218
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold
Quote:
Originally Posted by stacy12
i am getting this error : two few arguments to function 'addtofront'

line 52:
if(newnodeptr<=*headptr) {
addtofront(newnodeptr);

what that means

The arguments of a function are the things in parentheses where you call the function.

The function is defined to have two arguments. Your invocation of function has one thing in parentheses.

Regards,

Dave
  #12  
Old 04-Feb-2005, 21:11
stacy12 stacy12 is offline
New Member
 
Join Date: Jan 2005
Posts: 9
stacy12 is on a distinguished road

help


i am having an error to the makelist(the 1st if statement):Warning: passing 1 of 'addtoFront' grom incompatible pointer type and when i am trying to printFtoR
iam getting junks. can someone help me fix it
  #13  
Old 05-Feb-2005, 18:21
stacy12 stacy12 is offline
New Member
 
Join Date: Jan 2005
Posts: 9
stacy12 is on a distinguished road

help


Can someone help me and tell how to fix the code.
Like every single error
  #14  
Old 05-Feb-2005, 19:01
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,218
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold
Quote:
Originally Posted by stacy12
i am having an error to the makelist(the 1st if statement):Warning: passing 1 of 'addtoFront' grom incompatible pointer type and when i am trying to printFtoR
iam getting junks. can someone help me fix it

Look at your definition of the function addtoFront(). How many arguments does it have? What is the data type of the first argument?

Look at the statement that calls addtoFront(). What is the name of the first argument? What is its data type?

Look at the error message. What is it telling you? It's telling me that you have used an argument whose data type is different from the data type specified in the function definition.

Regards,

Dave
  #15  
Old 05-Feb-2005, 19:02
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,218
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold
Quote:
Originally Posted by stacy12
Can someone help me and tell how to fix the code.
Like every single error

It's your code; it's up to you to fix it. We are here to try to answer your questions.

Regards,

Dave
 
 

Recent GIDBlogToyota - 2009 May Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 22:09.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.