How to make program to write on the screen symbols from ASCII

Hi all!
I need help in makeing a program that will write ASCII symbols. Look what I want:
1
2
3
4
5
6
7
8
9
10
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
char symbolascii; //this is the variable which I will assign a numer (ex 001, 002...etc)
symbolascii=001; //after this I want my "symbolascii" to have the happy face attributed ( 001 is ASCII means happy face)
cout<<symbolascii;
getch();
}

This "program" is to show you what i want, i know it's wrong, but add changes to this one. THX in advance
Last edited on
change
int symbolascii;
to
char symbolascii;
1
2
3
4
5
6
7
8
9
#include <iostream>

int main()
{
	for( int i = 0; i < 255; ++i )
		std::cout << ( char )i << ' ';

	return 0;
}
Topic archived. No new replies allowed.