when you mean vector, you mean an array ??
store the elements in an array ?
I was looking for the best possible solution according to my knowledge in C++ programming.
At this moment, up until know, the only kind of code i have created is by using a console,
to ask questions and storing the answers in a file.
I think that gives the best image of what kind of knowledge I am familiar with.
So, when I was looking for the best possible scenario for my to play with, I was looking in the textfile
that e.g Time was at column 29 and row 4, so I thought that it would be easier to create a loop that
would one at a time, go to each position, copy 4-5-6 lengthy positions and pasting it to a new file at the X and Y of my choice.
what i found out searching, were these :
http://www.cplusplus.com/reference/string/string/copy/
and the gotoxy function:
1 2 3 4 5 6 7
|
void gotoxy(int x, int y)
{
COORD coord;
coord.X = x;
coord.Y = y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_H ANDLE), coord);
}
|
yet, I cannot get the string copy to work.
I am not sure if it can copy strings from a file input.