.:: Welcome To My Personal Blog ::.

Sunday, July 3, 2011

Programming with C Tutorial - Part 2

Variables and Arrays :



A variable is an identifier that is used to represent a single data item i.e. a numerical quantity or a character constant. The data item must be assigned to the variable and this will then be easily accessible from the program by referring the variable name. A simple example of declaring and using variables is given below :
int a, b, c;
char d;
float e, f; 
a = 1;
b = 2;
c = 3; 
d = 'a'; 
e = 4.01;
f = 5.02; 
c = a + b;

Tuesday, June 7, 2011

"ফেরিওয়ালা" (ferioala.com) - Hawker of the New Generation

 Now-a-days, technology stretches its glorious hand to each and every part of our daily life. It gives us much pleasure to lead an easier life. We can be informed about the whole world within a second only. Again we can represent ourselves to the whole world within a single moment. Internet is such a thing, that helps us in this task. By using Internet, we can get the whole world through a simple web browser. And this can be a good way to represent not only ourselves but also our motherland Bangladesh. "ফেরিওয়ালা" is such an attempt to represent our country to the whole world.

Sunday, April 24, 2011

Beginner's Guide To Travel With Perl - Part 9

Sorting:

There is a built-in sort function/subroutine in Perl for sorting array elements. This is done by just writing "sort @name_of_the_array;". But it sorts the elements alphabetically according to their ASCII value. This sort function sorts lexically
Example:
use strict;
main(@ARGV);
sub main
{
    my @arr = ("abc", "abcd", "defg", "def", "ijklm", "ijkl", "nop", "nop", "aaa", "AAA");
    print "before sort : @arr\n";        #before sort : abc abcd defg def ijklm ijkl nop nop aaa AAA
    @arr = sort @arr;
    print "after sort : @arr\n";        #after sort : AAA aaa abc abcd def defg ijkl ijklm nop nop
}

Friday, April 22, 2011

Programming with C Tutorial - Part 1

Now-a-days, C is the basic language to learn programming. To learn programming using C is so much easy. Here, the basic things and fundamentals of C programming will be described. Hope it will help the beginners.

C Character Set:

C uses the uppercase letters A - Z,  the lowercase letters a - z,  the digits 0 - 9, and certain special characters
as building blocks to  form basic  program elements (e.g., constants, variables, operators, expressions, etc.).
The special characters are -
+     -     *     /     =     %     &     #     !     ?     ^     "     '     ~     \ 
|     <     >     (     )     [     ]     {     }     :     ;     .     ,     _      (blank space)

Thursday, April 21, 2011

Web designing - HTML Tutorial - 8

HTML Forms:

Forms in HTML are used with <form> tag. It starts with <form> and ends with </form>. <form> tag has some attributes like "name", "action", "method" etc.

There are several input elements in HTML form. Some of them are text field, password field, radio button, check box, button (submit or reset), drop down list etc.

Popular Posts