Featured Posts

Initializing graphics in C/C++ native compiler

Posted by admin | Posted in C/C++ Programming, computer graphics | Posted on 09-06-2009

Tags: , , , , , , , , , , , ,

1

One of the basic component need in order to initialize graphics in native C/C++ is the graphics.h. After that, you need to check if all the VGA drivers are exist and put it in the right path. Mostly can be found in “tc\bgi” in the C/C++ compiler, and then set the linker so that you can link the graphics.h library in the C/C++ Compiler.

If you already done these following procedure then you are now ready to have your first CG in C/C++. First is to follow these codes in order to initialize you CG (Computer Graphics).

#include <graphics.h>

#include <conio.h>

void main()

{

int gd = VGA, gm = VGAHI;

initgraph(&gd, &gm, “C:\\tc:\\bgi”);

getch();

}

Now, save your file and try to run. You will see black screen in a full screen. That is how are going to initialize you graphics. You can try different functions in order to draw graphics using native C/C++ Compiler.

Reblog this post [with Zemanta]

Web Development 2 - Course Outline

Posted by admin | Posted in Academics | Posted on 07-06-2009

Tags: , , , , , , , ,

0

Prelim Topics

1.0 Basic PHP Development

1.1 Script

1.2 Syntax

1.3 Data Types

1.4 Variable Manipulation

1.5 Control Structure

1.5.1 Logical Control Structure

1.5.2 Repetition Control Structure

1.5.3 Embedding Control Structure

1.6 User-defined Functions

1.7 Dynamic Variables and Functions

1.7.1 Dynamic Variables

1.7.2 Dynamic Functions

1.8 Multiple File PHP Scripts

1.9 References

1.9.1 Variable References

1.9.2 References used in functions

1.10 String PHP

1.11 Advanced String Comparison

1.11.1 Comparing Phrases

1.12 Search and Replacement

1.12.1 Replacing Strings

1.13 Formatting Strings

1.14 String and Locales

1.14.1 Formatting Currency Values

1.15 Formatting Date and Time Values

2.0 Arrays in PHP

2.1 Basic Arrays

2.1.1 Syntax

2.1.2 Working with array

2.2 Implementing arrays

2.2.1 Array as a list

2.2.2 Array as a sortable table

2.2.3 Array as a lookup table

2.2.4 Converting from strings to arrays and back

3.0 Regular Expression

3.1 Basic of Regular Expressions

3.2 Limitation of the basic syntax

3.3 POSIX Regualr Expressions

4.0 Forms in PHP

4.1 HTML Form

4.2 Form Submissions in PHP

4.2.1 Retrieving for variables

4.2.2 Array as widget names

4.2.3 Handling file uploads

5.0 Advance Form Techniques

5.1 Data Manipulations and conversions

5.1.1 Dealing with magic quotes

5.1.2 Data conversion and encoding

5.1.3 Serialization

5.2 Form Data Integrity

5.2.1 Securing Hidden Elements

5.2.2 The protect() function

5.2.3 The validate() function

5.3 Form Processing

5.3.1 Basic Form Processing and Validation

5.3.2 General-Purpose Form Validation

5.3.3 Separation of Presentation from Validation

Reblog this post [with Zemanta]