Sunday, August 31, 2008

Sony Vaio Hunt

Here is the new story. Sony Vaio Hunt.
Here is the link.

Wednesday, May 21, 2008

int, char, and bool data type

The integral data type that I will be discussing are int, char, and bool.
  • int data type
    • Integers in C++, as in mathematics, are numbers such as the following:
      -88, 2006, +89, -3005, 3105
    • In addition, positive integers do not need a + sign in front of them and no commas are used within an integer. In C++, commas are used to separate items in a list. So, 3, 105 would be interpreted as two integers: 3 and 105.
  • char data type
    • The smallest integral data type(dealing with small numbers-ranging from -128 to 127)
    • Used to represent characters-that is, letters, digits, and special symbols(thus, it can represent every key on your keyboard)
    • When you are using the char data type, each character is enclosed within a single quotation marks.(! a blank space is a character and is written as ' ', with a space between the single quotation marks)
    • Allows only one symbol to be placed between the single quotation marks.(! all the individual symbols located on the keyboard that are printable may be considered as possible values of the char data type.)
  • bool data type
    • It has only two values: true and false.
    • The central purporse of this data type is to manipulate logical(Boolean) expressions.(true and false is the logical(Boolean) expressions stated.)

Data Types

C++ categorizes data into different types, and only certain operations can be performed on particular type of data. To put it simple, data type is a set of values together with a set of operations. This data type is divided into three types; simple data type, structured data type, and pointer.

The simple data type is the fundamental data type in C++ because it becomes a building block for the structured data type. There are three category of simple data type, that is:
  • Integral ~ a data type that deals with integers, or numbers without a decimal part.
  • Floating-point ~ a data type that deals with decimal numbers.
  • Enumeration ~ a user-defined data type.

Word Symbols and Identifiers

Word Symbols are also called reserved words, or keywords. It is always makes up of lowercase letter only. Furthermore, it cannot be redefined within any program; that is, they cannot be used for anything other than their intended use.


C++’s identifiers are names of things that appear in C++, such as variable constants, and functions. Some are predefined, some are defined by user. It can be made of only letters, digits, and the underscore character. Moreover, it must begin with a letter or underscore.


Basics of C++

· A C++ program is a collection of statements(instructions), which contains the C++’s rules, symbols and special words, and when it is executed, or activated it accomplishes something. Function main can be found in every C++ program. If a C++ program has only one function, it must be the function main.The syntax rules: determine which statements are valid. The semantic rules: determine the meaning of the statements. The smallest individual unit of C++ is the C++’s tokens. C++’s tokens are divided into special symbols, word symbols, and identifiers.

Just for Intro

Hi everyone.

My name is Belle. I am going to be in my second year doing my bachelors degree in Computer Science this July. Currently, I am on my semester break and have nothing to do but laze around. Hehe. So, I have made this blog just to share my view and at the same time refreshing what I had learnt in my first year program(they teach me C++), better than lazing around doing nothing. Moreover, this is my first blog on programming. So, if i have made any mistake please do comment. Really appreciate it. Hope you do enjoy reading my blog. Cheerios. ^_^