Forum: C
May 6th, 2008, 4:10 PM
|
|
Replies: 12
Views: 799
Re: Bitwise Operators...
As a few more examples:
There are programs which use something called bitmasks to store certain boolean settings. A boolean uses 1 byte (8 bits) of space of which only 1 bit is really needed (well,...
|
Forum: Java
May 6th, 2008, 3:24 PM
|
|
Replies: 4
Views: 261
|
Forum: C++
Apr 19th, 2008, 10:12 PM
|
|
Replies: 14
Views: 521
Re: Vectors
You probably know this already, but vector and string are classes, so you are using classes, technically. You could make an address book program. Make a class that stores names, phone numbers,...
|
Forum: C++
Apr 19th, 2008, 9:34 PM
|
|
Replies: 10
Views: 455
Re: String Selection Sort
I have an exam on this stuff (about 1/3 of it is various sorting techniques) in 3 days :(. Here's one of the practice programs I made (I threw your list of names at the beginning, so it's a bit more...
|
Forum: C++
Apr 19th, 2008, 5:17 PM
|
|
Replies: 10
Views: 455
Re: String Selection Sort
None of your loops actually ever run:
for(int i=0; i>17; i++)
You make i=0 and the loop only runs if i>17.
|
Forum: C++
Apr 17th, 2008, 3:14 PM
|
|
Replies: 10
Views: 567
Re: New To C++
The C tutorial there is how I got started with C/C++. Later, I had to take a course in C, but I never really read the book they made us buy. cprogramming.com is probably your best bet as you're...
|
Forum: C++
Apr 17th, 2008, 2:56 PM
|
|
Replies: 15
Views: 682
Re: Multi-dimensional vectors
What ShawnStovall said is probably the best way to go.
The only thing I would add is that if you're only multiplying binomials, you can make your life a little easier: make your program multiply...
|
Forum: C++
Apr 17th, 2008, 12:08 AM
|
|
Replies: 11
Views: 504
|
Forum: C++
Apr 13th, 2008, 9:07 PM
|
|
Replies: 2
Views: 175
Re: gtkmm and cairomm redrawing on refresh
Tried that (successfully, actually) but I realized that these libraries were written for image manipulation (they were originally made for use in the GIMP), so this should be possible in a simple...
|
Forum: C++
Apr 13th, 2008, 5:29 PM
|
|
Replies: 2
Views: 175
gtkmm and cairomm redrawing on refresh
Short version:
I have a Cairo::RefPtr<Cairo:: Surface> and I want to copy the object it points to and have another Cairo::RefPtr<Cairo:: Surface> pointing to the copy.
How can I do this?
Long...
|