Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 10 of 10
Search took 0.00 seconds.
Search: Posts Made By: misho
Forum: C May 6th, 2008, 4:10 PM
Replies: 12
Views: 799
Posted By misho
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
Posted By misho
Re: find out the average of odd numbers -do-while statement.

The code as you have written it should work; however, that's based on X and Y being even. If X were odd, the "X++;" line would be bad. If Y were odd, the "X<Y" condition would be bad.
For arbitrary X...
Forum: C++ Apr 19th, 2008, 10:12 PM
Replies: 14
Views: 521
Posted By misho
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
Posted By misho
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
Posted By misho
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
Posted By misho
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
Posted By misho
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
Posted By misho
Re: Got stuck while making a program,help would be appreciated

Here's a more pointer-based approach:
#include <iostream>
using namespace std;
int main()
{
char a[1000];
cin.getline(a, 1000);
for(char* c = a; *c != '\0'; c++)
*c != 'z' && *c != 'Z' ? ++*c...
Forum: C++ Apr 13th, 2008, 9:07 PM
Replies: 2
Views: 175
Posted By misho
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
Posted By misho
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...
Showing results 1 to 10 of 10

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:05 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC