Search:

Type: Posts; User: Kramer55

Search: Search took 0.00 seconds.

  1. Replies
    11
    Views
    1,307

    Ok, so I have the getColumn function working. ...

    Ok, so I have the getColumn function working.

    Now, I'm trying to use that to print out a board through the main() function, but I get 2 errors.

    In my header file, I have:


    void...
  2. Replies
    11
    Views
    1,307

    In my header file, I have: unsigned int...

    In my header file, I have:

    unsigned int getRows(unsigned int r);

    unsigned int getColumns(unsigned int c);

    And in the code after the vector is displayed, I have:
  3. Replies
    11
    Views
    1,307

    I've changed my code a bit, and now I'm trying to...

    I've changed my code a bit, and now I'm trying to get pass some info onto another part of my header file.



    MatchingTile::MatchingTile(string FileName)
    {

    ifstream InStream;
    ...
  4. Replies
    11
    Views
    1,307

    That's what I was wondering how to do.

    That's what I was wondering how to do.
  5. Replies
    11
    Views
    1,307

    Vector Question

    I'm working on a program, and what I'm trying to do is have the TempVec assigned to a multidimensional vector, but that's where I get stuck.

    Basically, the TempVec is read in from a line from a...
  6. Replies
    4
    Views
    1,234

    That's what I was initially trying to do, but I...

    That's what I was initially trying to do, but I don't know how to use the substr function to do something like that.

    Would I add a for loop inside of the second while loop, and have substr somehow...
  7. Replies
    4
    Views
    1,234

    Search Through String

    I'm having some trouble with reading in words from a file, and separating them into a multi-dimensional vector.

    I am able to read the words in, but I need to be able to find where a space or...
  8. Replies
    9
    Views
    2,500

    Forgot about that: ... void DisplayVect...

    Forgot about that:



    ...
    void DisplayVect (vector<vector<int> >& v);
    void ResetVect (vector<vector<int> >& v);


    int main(){
  9. Replies
    9
    Views
    2,500

    I'm still having some trouble with the program;...

    I'm still having some trouble with the program; it will output a 5x8 vector of 0's but that's about it.

    What am I missing in my code so that the values in each row will go from 0 to 4?
  10. Replies
    9
    Views
    2,500

    Thanks, that makes sense about the push_back()...

    Thanks, that makes sense about the push_back() part.

    One problem with the code, in the ResetVect() function, an error occurs when v[i][j] = 0:
    error C3892: 'j' : you cannot assign to a variable...
  11. Replies
    9
    Views
    2,500

    Multi-Dimensional Vector

    I'm having trouble outputting a multi-dimensional vector that has specific values.



    void DisplayVect (const vector<vector<int> >& v);

    int main(){

    const int Max = 7;
  12. Replies
    7
    Views
    4,231

    Thanks for those links. Does anyone have any...

    Thanks for those links.

    Does anyone have any links to articles from newspapers or magazines?

    That is what I am really looking for, but those other links helped as well.
  13. Replies
    7
    Views
    4,231

    Computer Programming in the News

    Quick question, does anyone have links to newspaper articles/magazine articles about the computer programming industry? They don't have to be a great article or anything specific, just something...
  14. Thread: Re-Learning

    by Kramer55
    Replies
    19
    Views
    1,923

    Another quick question, what is the point of...

    Another quick question, what is the point of having size_t in this code?

    I know it returns the size, but what is the point of having the size?



    #include <iostream>

    using namespace std;
  15. Thread: Re-Learning

    by Kramer55
    Replies
    19
    Views
    1,923

    Just one question, what is the reason for ...

    Just one question, what is the reason for



    for(x=0; x < 10 ; x++)
    {
    array[x] = x;
    }
  16. Thread: Re-Learning

    by Kramer55
    Replies
    19
    Views
    1,923

    I know it was't complex... I just need to get...

    I know it was't complex...

    I just need to get back into programming.

    Thanks.
  17. Thread: Re-Learning

    by Kramer55
    Replies
    19
    Views
    1,923

    Thanks. Is there a simpler way? I thought I...

    Thanks.

    Is there a simpler way? I thought I remembered shorter ways to make an array.
  18. Thread: Re-Learning

    by Kramer55
    Replies
    19
    Views
    1,923

    I am storring x (ranges from 0 - 9) into the...

    I am storring x (ranges from 0 - 9) into the integer array array[10].
  19. Thread: Re-Learning

    by Kramer55
    Replies
    19
    Views
    1,923

    Re-Learning

    Hi, I have a quick question on some old code I have that I am going through ( I haven't done any programming for about 10 months)



    #include <iostream>

    using namespace std;

    int main()
    {
Results 1 to 19 of 19