Тема: Hello world!
Показать сообщение отдельно
Старый 11.12.2005, 04:58   #1
alcosholik
 
Сообщений: n/a
#include <conio.h>
#include <iostream>

int main()
{
	int hello[]={0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x21, 0xa, 0x0};
	for (int i=0; hello[i]!=0; i++) std::cout<<char(hello[i]);

	getch();
	return 0;
}