///purpose: determine whether a number is a power of 2
///input: the number being checked
///output: true if it's a power of 2, else false
bool powOfTwo(int num)
{
return !(num & (num - 1));
}
}
}
}
I seem to be lost in VC#... Read the c# bible and the c# black book, besides O'Rileys Learning c#... Dos'ent seem 2 work!