Search Results

Showing results 1 to 7 of 7
Search took 0.00 seconds.
Search: Posts Made By: Drowzee ; Forum: C++ and child forums
Forum: C++ Mar 31st, 2006
Replies: 3
Views: 1,908
Posted By Drowzee
You could create additional pointers to the linked list that you assign during the search functions (Pass the pointers as parameters).

Then, once you've searched, you can continue to bring up...
Forum: C++ Aug 25th, 2005
Replies: 48
Views: 10,260
Posted By Drowzee
... right. Well, if you were only TESTED on powers of two, I'm right, but my code isn't gonna cut it past 4.
Forum: C++ Aug 25th, 2005
Replies: 48
Views: 10,260
Posted By Drowzee
the answer to number 3 (assuming the number is an integer) is to use the modulous operator, %.

if(!(numbername%2))
cout<<numbername<<" is a power of 2."<<endl;
Forum: C++ Aug 24th, 2005
Replies: 7
Solved: word count
Views: 5,460
Posted By Drowzee
More precisely, look for spaces ONLY after characters.
That will help you a great deal with tabs and incorrect spacing.
Forum: C++ Aug 11th, 2005
Replies: 7
Views: 3,861
Posted By Drowzee
Whoops. Test is supposed to be 'trans'. I wrote this all without a compiler, so I didn't catch the typo.

Fixed it.

And I also started to smile at 'OMGEUREKAPWNZD!'. I think I'll start using...
Forum: C++ Aug 11th, 2005
Replies: 7
Views: 3,861
Posted By Drowzee
S'okay. Let's expand the node I wrote.


struct node
{
int blar[3];
node *next;
}
Forum: C++ Aug 11th, 2005
Replies: 7
Views: 3,861
Posted By Drowzee
1. Think of it like this: The pointer to the beginning is the anchor, and what you use it for is to point to the first entry in your singly-linked list (SLL). Until you use it, however, it's a good...
Showing results 1 to 7 of 7

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC