3rd question this evening

Spank me if you feel I'm spamming noob questions :o

This program counts down from 10 to -5. What do I do if I want some space between the numbers and the edge of the screen?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>

using namespace std;

int main()
{
	for (int Number = 10; Number != -6; --Number)
	{
		cout << Number << endl;
	}

	cout << "\n\n\n\n Press ENTER to continue...";
	cin.get();

	return 0;
}


Why doesn't
cout << "\t" + Number << endl;
work?

Thanks :)
because "\t" + Number tries to add a string literal to a number, for stream output use the << operator
Bazzy, thaaaanks :)
Topic archived. No new replies allowed.