Code của mình như sau:
Code:
// Test2.cpp : Defines the entry point for the console application.
#include "stdafx.h" //Mac dinh phai co
#include <stdio.h>
#include <string.h>
#include <conio.h>
#include <iostream>
#include <fstream> //Thu vien de mo file
#include "glut.h" //Thu vien OpenGL
void display(void)
{
	//Xoa mau man hinh 
	glClear (GL_COLOR_BUFFER_BIT);
	//Chon mau de ve
	glColor3f (0.218,0.34, 0.196);
	glOrtho(-300,300,-300,300,-2,+2);
	//Bat dau noi diem
	glBegin(GL_POINTS);
		glVertex3f(0,0,0);
		glVertex3f(1,1,0);
		glVertex3f(2,2,0);
		glVertex3f(3,3,0);
		glVertex3f(4,4,0);
		glVertex3f(5,5,0);
		glVertex3f(6,6,0);
		glVertex3f(7,7,0);
		glVertex3f(8,8,0);
		glVertex3f(9,9,0);
	glEnd();
	glFlush ();
}
int main(void)
{
	glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
	glutInitWindowSize(600, 600); //Kich thuoc cua so Windows
	glutInitWindowPosition (0, 0); //Vi tri hien Windows
	glutCreateWindow ("hello"); //Title Windows
	glutDisplayFunc(display); //Goi ham Display
	glutMainLoop();
	system("pause");
    return 0;
}
thì nó bị lỗi sau:

Mong các bác giải thích.