Search Results

Showing results 1 to 1 of 1
Search took 0.00 seconds.
Search: Posts Made By: Paul.Esson ; Forum: C++ and child forums
Forum: C++ Nov 22nd, 2008
Replies: 5
Views: 1,183
Posted By Paul.Esson
I had

char boolsToChar(bool* bools){
char c = 0;
for( int i = 0; i < 8; i++ )
if( bools[i] )
c += pow(2,i);
return c;
}
Showing results 1 to 1 of 1

 


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

©2003 - 2009 DaniWeb® LLC