I'm creating a macro to do a left shift circular for hex. I can't seem to get it working.
#define _SHIFT_LEFT(x) ((x << 4) | (x >> (sizeof(x) * 8 - 4)))
Type: Posts; User: yes2
I'm creating a macro to do a left shift circular for hex. I can't seem to get it working.
#define _SHIFT_LEFT(x) ((x << 4) | (x >> (sizeof(x) * 8 - 4)))
Here's is what I have. I'm not sure of how to create a new vector containing pointers to people.
void FilterByBirthMonth( vector<Person*> &people )
{
int month = 2;
for(size_t i = 0; i <...
I need help with creating a constructor.
I'm reading in a file with this data
Person Kristina Chung 1366 11 20
Person::Person( ifstream &in){
in >> this->type;
I can't seem to figure out to sort this problem.
I've load up a bunch of actors and presidents into a vector call people.
1732 2 22 1789 4 30 George Washington
Actor John Cusack 1966 6 28 2012
...