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...
Type: Posts; User: Kramer55
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...
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:
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;
...
That's what I was wondering how to do.
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...
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...
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...
Forgot about that:
...
void DisplayVect (vector<vector<int> >& v);
void ResetVect (vector<vector<int> >& v);
int main(){
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?
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...
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;
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.
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...
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;
Just one question, what is the reason for
for(x=0; x < 10 ; x++)
{
array[x] = x;
}
I know it was't complex...
I just need to get back into programming.
Thanks.
Thanks.
Is there a simpler way? I thought I remembered shorter ways to make an array.
I am storring x (ranges from 0 - 9) into the integer array array[10].
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()
{