Thread: Queues

  1. #16
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Here, let me fix that for you:
    Quote Originally Posted by Brian
    Don't use typedefs, it's ugly.
    Much better.


    Quzah.
    Hope is the first step on the road to disappointment.

  2. #17
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    Quote Originally Posted by quzah
    Here, let me fix that for you:Much better.


    Quzah.
    heh yeah

  3. #18
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    It works. What exactly is wrong with the way I used typedefs?
    If you understand what you're doing, you're not learning anything.

  4. #19
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Don't use all-caps for typedefs, it's ugly.
    Nothing, it's just "ugly".
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #20
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Oh well, at least my code is indented. It's just some capital letters. Get over it.

    EDIT: By the way, quzah's "fixed" version encompassed all typedefs.
    Last edited by itsme86; 12-28-2005 at 05:05 PM.
    If you understand what you're doing, you're not learning anything.

  6. #21
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    By the way, quzah's "fixed" version encompassed all typedefs.
    Where is that?
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  7. #22
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Like, right after Brian's comment.
    Quote Originally Posted by quzah
    Here, let me fix that for you:
    Quote:
    Originally Posted by Brian
    Don't use typedefs, it's ugly.
    Much better.


    Quzah.
    If you understand what you're doing, you're not learning anything.

  8. #23
    Registered User
    Join Date
    Sep 2005
    Posts
    2
    use pointers for calling. whatever parameters are goin to be changed should be passed by reference so that you can get the change in your main().othr way of doin it could be that u return your changed parameter everytime. so that if you're changing r1,call using
    r1=insert(q1,r1);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Concatenating two static queues?
    By difficult.name in forum C Programming
    Replies: 2
    Last Post: 10-18-2004, 11:19 PM
  2. stacks and queues
    By j0hnb in forum C Programming
    Replies: 4
    Last Post: 04-16-2003, 09:44 PM
  3. help with queues
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 05-21-2002, 09:09 PM
  4. queues
    By jamesb in forum C Programming
    Replies: 1
    Last Post: 04-21-2002, 08:57 PM
  5. queues
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 10-11-2001, 05:19 PM