Search:

Type: Posts; User: boojus

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,044

    sweet. thank you.

    sweet. thank you.
  2. Replies
    2
    Views
    1,044

    vector.push_back(anotherVector)

    im trying to put a vector into another vector using push_back.
    but its not happening.


    vector<int> a; vector<int> temp;
    //...//
    temp.push_back(a);
  3. Replies
    4
    Views
    918

    oh, i had the wrong code in the declaration of my...

    oh, i had the wrong code in the declaration of my function. im awesome. thanks for helping me. it works now.
  4. Replies
    4
    Views
    918

    what is the format for this part: ...

    what is the format for this part:


    if(isMagicSquare(?)){...}
  5. Replies
    4
    Views
    918

    Help with sending a vector to a function

    my magic square program is almost working i think. I need help with sending the current vector to my bool type function "isMagicSquare(a[])" that decides whether it is a magic square or not.


    ...
  6. Replies
    3
    Views
    1,824

    hmm. maybe it does work. i guess the array was...

    hmm.
    maybe it does work. i guess the array was quite big so when i tried to cout<<a; it was to big maybe and it gave me some weird value. well it does work how i need it to.
  7. Replies
    3
    Views
    1,824

    Trying to fill an int array

    I'm trying to fill an integer array with descending values starting at a max of whatever the user enters. so if they enter 5, the array should be a[0]=1, a[1]=2, a[2]=3, a[3]=4, and a[4]=5. the...
  8. Replies
    2
    Views
    961

    i did it in case anyone wanted something similar...

    i did it in case anyone wanted something similar



    cout.setf(ios::fixed);
    cout.precision(1);
    cout << "\nTotal="<< setw(7+GetNumOfDigits(total)) << total << endl;
    cout.precision(0);...
  9. Replies
    2
    Views
    961

    formatting output with cout

    i need to format the output of my program so that it's like this:

    Total=______ 1232.3
    Count=________ 2
    Average=_____616.2

    the "_" character is just a fill character cause it wouldnt let me do...
Results 1 to 9 of 9