CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: Test post

  1. #1
    Join Date
    Apr 2010
    Posts
    15

    Test post

    Here's the code for the SyncQueue constructor.

    Code:
    SyncQueue<NodeType>::SyncQueue()
    {
    	Node<NodeType> *dummy = new Node<NodeType>;  // Set up initial dummy node on empty queue
    	head = dummy;
    	tail = dummy;
    	garbage = dummy;
    }
    The garbage pointer is only there to cleanup when the processing of the queue is done. Prevents memory leaks.

    --clay

  2. #2
    Join Date
    Jul 2001
    Posts
    8

    Re: Test post

    Post worked Clay!

    Brad!
    --------------------------------------------
    Zyvxnwashere....
    --------------------------------------------

  3. #3
    Join Date
    Apr 2010
    Posts
    15

    Re: Test post

    Getting closer, then

    --clay
    Clay Breshears
    Intel Innovative Software Education

    "There are no evil threads; just threads programmed for evil."

  4. #4
    Join Date
    Jun 2009
    Location
    France
    Posts
    2,513

    Re: Test post

    Testing signature
    Is your question related to IO?
    Read this C++ FAQ article at parashift by Marshall Cline. In particular points 1-6.
    It will explain how to correctly deal with IO, how to validate input, and why you shouldn't count on "while(!in.eof())". And it always makes for excellent reading.

  5. #5
    Join Date
    May 2010
    Posts
    54

    Re: Test post

    I would love to bring what is/are mine or what I am followng up front to be the best! So others are LOWWWWWWEST eeelllll!

    Buy my company products please!!!! :tongue: blah blah blah test

    How much is my anual income ? I am Burdit Emailus working for TNT chemistree company. You know 100,000 USD/yr kakakkaka
    Last edited by emailus; May 20th, 2010 at 11:39 AM.

  6. #6
    Join Date
    Dec 2009
    Posts
    145

    Re: Test post

    I love codeguru very much, whenever I have free time, I always try to read almost newest posts on CG forums, even those on Testing, some post contents might not increase my interests some sadden me or even keep me away from the forum. So I hope posters keep a neutral attitude towards their programs/ assignment problems to avoid such a tragic for ... me . Don't be an abstract smart ARSEs or those highly appraised themselves as truth finders, who I call truth's hypocrites.

  7. #7
    Join Date
    Jun 2010
    Posts
    1

    Re: Test post

    Code:
    test

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured