Category: Program

shape
shape
shape
shape
shape
shape
shape
shape
Standard

PHP set_time_limit() – Script Execution Time

PHP by default limits the execution time of a script to 30 seconds. If the script exceeds this time limit, the process is “killed”, in other words the process is terminated. To get around this problem there is the set_time_limit() function, which sets a new maximum execution time for the script, in seconds.   Example:

Standard

Fibonacci Sequence – C/C++ Algorithm

The Fibonacci sequence is given in the following order [latex] Fibonacci = 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 . . .[/latex]. The algorithm for calculating the nth element is given by: [latex] N = N – 1 + N – 2 [/latex], i.e. the nth element is equal to the

Standard

OpenGL Base Function (Triangle)

Below is an example of a base program in OpenGL, resulting in a window with a red triangle in the center. [c] #include <stdlib.h> #include <GL/glut.h> //Call Back Function void draw (void) { //Set the background color of the Window glClear Color(1,1,1,0); //Clear Screen glClear (GL_COLOR_BUFFER_BIT); //Define the color of the drawing glColor3i(1,0,0); glBegin(GL_TRIANGLES); //Defines

Standard

Standard Function Names in OpenGL

___________________________________________________________________________ Standard Function Names For ease of use, the names of the functions in the OPENGL library follow a pattern. The standard adopted is simple: the first part of the name represents the representative library. The second part is the name of the command. The fourth part represents the type of function parameter and the

Latest news

Latest news directly from our blog.