Why so wrong numbers? As I write so wrong?
Is this better?
Why are the numbers so wrong? How do I write that wrong?
Is this better?
Greetings to all friendly!
When I try to write something yourself, there is a huge variety of errors.
I first tried to write square vector is exactly such an array, and I got the output figures, such figures, which cannot be the multiplication table, no, these figures is not on that are not similar.
I enclose this code. The entire project will lay out too, that would be more convenient.
Code:
std::vector <std::vector <int>> Tabl(1000, std::vector<int>(1000));
for(int i=0; i<1000; i++)
{
for (int j=0; j<1000; j++)
{
Tabl[i][j]=i*j;
}
}
for(int i=0; i<1000; i++)
{
for (int j=0; j<1000; j++)
{
for(int i20=0; i20<20; i20++)
{
std::cout << Tabl[i][j] << " " ;
i++;
if(i>=1000) break;
}
std::cout << std::endl;
}
}
I understand that probably need to use the start and end of the vector, but not convenient and impossible [x] [y].
In this regard, I would very much like to see the sources of the raw vector code in exactly the same place that they would understand what happened exactly.
Quite incomprehensible to the next. I wanted to test how nested for loops () that will be made and delivered from an ordinary array.
And here follows the inscription "Signal SIGSEGV, segmentation default"!
Immediately happened, none of the code does not even began to run! Wonder what happened?
Writes an error in the address 0040E1A3 in the function _chkstk_ms (). Where you can
Is this better?
Greetings to all friends!
When I try to write something myself, there are a huge number of errors.
At first I tried to write a square vector that was exactly like an array, and I got the numbers, the numbers that could never be a multiplication table, no, these numbers don't look anything alike.
I'm enclosing this code. The whole project will be more comfortable.
I understand that you may need to use the beginning and end of the vector, but it is not convenient and impossible to [x] [y].
So I'd very much like to look at the raw vector code, exactly the exact places, to understand exactly what happened.
The following is not clear. I wanted to test how nested for loops work, which would be introduced and rendered from an ordinary array.
And then the inscription "Signal SIGSEGV, segmentation default"!
Immediately, no code even started to run! Amazing what happened?
Writes an error to the 0040E1A3 address in the _chkstk_ms function. Where can
Is this better?
Download Z.7z from Sendspace.com - send big files the easy way
I'm a little confused and I don't understand, please, explain the correct samples.