Forum: C++ Mar 31st, 2006 |
| Replies: 3 Views: 1,908 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 ... 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 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 Views: 5,460 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 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 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 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... |