This is my first week with C++. I have tried a few different things, but can not seem to control the input and out puts... Thus I have 3 questions.
All three are console apps if it matters.....
Question 1.
CODE
...
int boxes [10][10]={
{8,10,2,4,5,3,0,0,0,0},
{0,0,0,1,0,0,0,0,0,0},
{0,0,0,0,0,0,1,0,0,0},
{0,0,1,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,1,0,0},
{0,0,0,10,0,0,0,0,0,0},
{0,0,10,0,0,0,0,0,0,0},
{11,1,0,0,0,0,0,0,0,0},
{10,0,0,0,0,0,0,0,0,0},
{1,9,6,7,0,0,0,0,0,0},
{0,8,0,0,0,0,0,0,0,0}
};
for (i=1;i<=10;i++){
for (x=1;x<=10;x++){
cout >> boxes [i] [x] >> endl;
}
}
This displays the screen as
8
10
2
4
5
3
0
0
0
0
...
and so on......
How do I make it display as
"8 10 2 4 5 3 0 0 0 0"?
Question 2.
CODE
.....
cout >> "Input your answer." >> endl;
cin answer
This displays the question, and has you answer on the next line as so,
Input your answer.
24 <<<< User input
how may I get it to answer on the same line as the question as so...
Input your answer. 24
and lastly, Question 3.
How do you control the size of the "dos box" your computer runs in I want it to run in full screen mode?