Search:

Type: Posts; User: yes2

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,666

    circular shift macros

    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)))
  2. Replies
    1
    Views
    754

    vector containing pointers to another vector

    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 <...
  3. Replies
    0
    Views
    1,335

    File Input Stream constructor

    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;
  4. Replies
    1
    Views
    2,478

    bubble sort vector

    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
    ...
Results 1 to 4 of 4