Earn while u Learn

Tips tweaks hacks on computer with C C++ VB tutorials and ways to earn money online

ad

Enable Task Manager

Type gpedit.msc in RUN dialog box and goto:

USER CONFIGURATION->ADMINISTRATIVE TEMPLATES-> SYSTEM

in right-side pane, Select Ctrl+alt+Del options--> set "Remove Tak Manager" to either Not Configured or Disabled

Change DOS Prompt Color

Type these lines in the notepad anyfile.reg and run it.

Windows Registry Editor Version 5.00

[HKEY_CURRENT _USER\Software\Microsft\Command Processor]

"Defaultcolor"=dword:0000002e

paypal free online bank for all

hi friends,
Today i thought to make you remember that there are many banks online that can help you to keep all your money online for doing online jobs and purchasing or shopping online from big online shops like ebay, amazon,homeshop18, etc...
Paypal is a free bank for those who are having a computer and internet connection. Because it is a online bank and thus it helps us to deal online in many fields like banking, shopping, or receiving money from many online job providers who provide job online and pay with pay pal. It is also for indians they can pay, shop,withdraw, send money to others via paypal. It supports all your credit cards if you have.As paypal provides a free account every body should must have it. It can also send money to banks like ICICI,SBI etc. to join it click the image below or click here
Note:- join for a personal account if you want to use it personally otherwise it's your choice.

Top Web anlytics tools



So you have created a website or blog. Now might want to get some revenue. But you first want to increase your traffic. Now you increased your traffic by several methods. But now u want to track your visitors. Means that you want to know who is online, what are they searching on your website/blog or from where the most traffic come from. Tracking users is very much essential for a website/blog owner. It helps to generate revenue. Now you are ready to track but how to track. There are many website who provide you free webanalytics of your website/blog. Some of them are listed below:


  1. Google web analytics is a free program by google cooperation to track user activities. It provides a daily report to the user of his website/blog. It also provides the average time and from where the traffic come from. But  do
    you know it is very much helpful for adsense users. The google web analytics can submit traffic to the adsense department if you want. This will help them determine the status of traffic of your website. 
  2. Getclicky - provides users a realtime web anlytics of their website status. It provides sufficient information to you in realtime. Means you will get the traffic status of your website live with details like country code, internet service provider and the most valuable the IP address of the users. and many more join it to avail this feature. you can see the getclicky banner at the bottom of this page.It is tracking this blog.
  3. footprintlive is a free web analytics tool it is improved breed of google. It provides all necessary deatails that you should be provided with. It is good. I am also using it.It provides valuable information to you. It is simple to use.

get paid to upload files - ziddu free file hosting services

hi friends do you know that you can also earn money via uploading your files. This is a best way of earning money because as all of us know that we are in search of money every day. And we are also in search of free online harddisk that can store files i.e. file hosting service. Many of us get file hosting services but They provide less space and also give no income. So the best thing you can do is to take a look on these file hosting services to save your files online and also Earn much money.

1 - Ziddu is a 100% free file hosting & sharing solution. They had a total new approach while offering the free file hosting services, which mainly concentrated on

Unlimited Storage space

Fast Uploads and Downloads

All Free Accounts

Easy File Management

No Waiting – All instant downloads
                 and the best part
You can make money from it.
Now you may be confused how these uploading of files helps in earning money. It a simple process, you upload file to ziddu ziddu provides a download link to download the file  = you share the file = And for each download you get paid  it easy. The minimum payout is $10 via paypal To join for free click on the below image :


                                          

earn monthly income by reciving emails - rupeemail

hi friends as we know that internet has grown at the apex of moon. And many earning opportunities are available now days. One of the I will invite you to join. This is rupeemail ( sorry only Indians can participate in this program to earn money). It is free and you will be paid via check to receive emails for free. You don't have to do any thing you just have to wait for the email and click on the advertisement that it provides you. The best thing i like about this free job is that it has no minimum amount to be withdrawn. You can withdraw your earnings at any time you wish.

To sign up for free click the below image :


                          

Top 3 intext advertising that pays you via pay pal

Hi friends i thought that you will be very much excited to know about some intext advertising ad solutions as an publisher.
I have top three websites that can generate revenue from your blog or website for free. Try them now and Earn as much as you can.So here we go :
1 - Kontera   pays both via check and paypal. This provide an intext advertising for publishers. It has a minimum payout of $100 via check or paypal. I prefer paypal because of several reasons. ( read about paypal). Free to join.

2 -  Infolinks also pays via paypal and check in USD. It pays after the completion of $10( minimum amount) via paypal and $100 via check. It has high paying rate. Free to join.

3 - Inlinks is a great intext advertising program that pays you high via paypal or check. But wait do you know that it has no minimum amount to be withdrawn. You can get the payment in net 30 basis. free to join but doesn't work with blogspot.

4 - Vibrant media is also a very good in intext advertising tool wish pays you much than you think. But it has some limitations and the best one is that you should have at least 500,000 content rich page views a month to qualify for the program. If you have so many page views then apply.

5 -  optspots is also a very good intext advertising solution. Sorry i don't  know much about it. but you can try for it.

SMS factory

Kya hua? SMS factory me hartal hai?
ya phir inbox kangal hai?
Ya phir balance ka aakal hai
Agar nahi to kyun bura hal hai?
SMS karo izzat ka sawaal hai !!!


previous               all                  next

nal ka pani

Gam me jine ka maja aata hai
garibo ke ghar khuda aata hai
Ek hum hai ki roz SMS ki barish karte hai
aur Ek aap hai jo nal ki pani jaisa aata hai


previous            all                     next

Dosti

Kinaro ki kabhi had nahi hoti
taaron ki kabhi ginti nahi hoti
bach ke rehna hamse kyuki
hamare dil me kaid dosto ki
jamanat nahi hoti


previous               all                  next

Muskaan

Dard or gam se aap anjan rahe,
khusiyon se aapki pehchan rahe
hamare dil ki bas itni si dua hai
ki aapke chehre pe sada MUSKAAN rahe.Muskaan

previous               all                  next 

Good night

Duniya me reh ke sapno me kho jan
kisko apna banalo ya kisike ho jao
Agar kuchh bhi nahi hota to chadar odho
takiya lo aur so jao:)
GOOD NIGHT (;


previous                  all                     next

yaad

Har baat samjhane ke liye nahi hoti.
Zindagi aksar kuch pane ke liye nahi hoti.
aapki yaad har waqt aati hai
par har yaad jatane ke liye nahi hoti.

previous                  all                     next

apna

Hum har kisiko apna banaya nahi karte
yu kisi ke liye muskuraya nahi karte
Jinko hum keh dete hain apna
unhe hum bhulaya nahi karte.

previous                  all                     next

BANDAR KI SAADI

Ek bandar ki beti boli ki meri sadi kara do!!
Bandar Bola ruk ja beti dulha abhi  SMS pad raha hai.
agar padh ke hasa to samjho rista pakka. |||||||||||||

previous                  all                     next 

Namaskar

Namaskar mai  aisa sms ho
jise murkh log padhte hai,
nalayak log dusro ko forward karte hai,
gadhe delete karte hai,
aur pagal store karte hai,
Now think who are you???

previous                  all                     next 

Bandar

Bandar ka beta apni maa se bola ma mai kitna badsurat hu na.?
Ma boli beta tu to phir bhi theek hai usko dekh jo message padh raha hai.

Bhara ka sabse bara pralay ka din?

Teacher- bharat ka sabse bada pralaya ka din kaun sa hoga.
student- jis din Rakhi aur friendhsip  day ek saath padega

Hawaaonke haat ik arman

Hawaaonke haat ik armaan bheja hai,
roshni ke zariye ik paigam bheja hai.
fursat mile to kabul kar lena, is nacheez ne raat ka salam bheja hai.!

i wan to meet u

Hum tumse milna chahate hai.i wan to meet u
Tumhe dekhna chahate hai.
par ye log bahout zalim hai .
Khete hai ki........



aaj zoo band hai?(:

padhai kar

Fzaye kehti hai payar kar,
Bahare kehti hai ikrar kar,
ghate kehti hai izhar kar,
Magar ye gharwale khete hai Abhi umar kam hai beti
pehle padhai to kar

Education related to song

*SCHOOL- apni to patshala.
*TUTION- idhar chala main udhar chala jaane kaha main kidhar chala.
MATHS- ajib dastan hai ye kaha suru kaha khatam.
*SCIENCE- aa khusi se khud khusi kar le.
* EXAM- Zehrili rate ninde ud jati hai.
*RESULT- dhak dhak karne laga oh mora jiya ra darne laga.
*PASS- aj main uper asma niche aj main aage jamana hai piche.
*FAIL- chan se je tute koi sapna jag suna suna lage.

happy 4 ever

I may not be the perfect friend
that u r luking fr.
Not even d best among others.
but surely I'm a friend who who wants to see u happy forever. :)

Chemical joke

All electrons were in a party.
Protons attacked upon them.
A here saves them .
Electrons asked whoa are you?
Hero  said
.
.
.
Naam  hai
bond!
COVALENT BOND..

gam

Khuda na kare aap ko koi Gam mile,
pyar khusi or hasi har dam mile,
gam jab v aapki or chale,
khuda kar raste me use tumhare dost mile.

chup ke se

Chup ke se dil me apne hum,
tumhe rab se manga karte hain.
tere ehsason me hum dinbhar khoya karte hai,
hum yaad tumhe kyu karte hain,
ye pal pal socha karte hai,

mobile number

11 arab
11 corore
11 lakh
11 thousand
11 only
..
..
..
ye mera bank balance nahi to kya hua mera mobile number to hai.(:

(note : change  11 in the form of your mobile number)

College ka first day

College ka first day;
Boy tumhara naam kya hai/
Girl:Mujhe sab didi kehate hai.
Boy: Wow waht a coincidence mujhe bi sab jija ji kehate hai....

mobile

Ab Rs 50. k Recharge par Rs 5000 ka talktime.
100 saal ki validity.
call @ 0.01 paise/min
100000 sms free.
for more detail logon to www.ja apna tower khud laga le .com

friend

Maine Ek din mandir ki daan peti me Re1 daal kar k achha dost manga
Tab bhagwan ne mujhe aapse milaya aur kaha Re 1 me aisa hi milega.

khatra

Don se dosti jaan ko khatra.
sardar se dosti dimag se khatra.
ladki se dosti dil ko khatra,
apun se dosti sms ka khatra,

Boys rule

Dhoka mila jab pyar me,
zindagi me udasi cha gayi.
socha tha chor denge is dunia ko,
kambakt sochte hi doosri pasand aa gayi (:

how much space

How much space in ur heart 4 me?
100% - writ a line of a song dat suits me.
99% - call me
50% 1 msg
25% - mis call
0% - no answer
lets see wahat u do?...
reply soon plz..

ladko ki morning prayer

Radhe Radhe kudhi fasade,
Hare Murari mile Kuwari,
Jai Hanuman pat jai meri jaan,
Wahe guru da khalsa ek soni kudi ki lalsa...

padhna likhna

Padhna likhna chod v payare,
nakal pe rakh aas,
odh rajayi tu so ja pyare,
bhagwan karega pass!

Operators in C

The symbol which is used to represent a particular operation on some data is called an operator.The various types of operators are:
1. Arithmetic operator :    operator                             action
                                               -                                  subtraction
                                               +                                    addition
                                               *                                   multiplication
                                               /                                      division
        EX:   n/2+3;
                x*2-6
2. Increment Decrement operator : The two increment and decrement operators are  ++ and  --  . The ++ operator adds 1 to the operand and the -- operator subtracts 1 from the operand.
   Ex:   int x=99;
           x++;
                         result  99+1=100.

3. Rational Operators :           Operator                    Action
                                                     >                         greater than
                                                     >=                      greater than equal to
                                                     <                         less than
                                                     <=                      less than equal to
                                                     = =                     equal to ( it is used for equal to sign in C)
                                                      !=                      not equal to
4. Logical operator :                operator                       action
                                                     &&                              and
                                                      ||                                  or
                                                      !                                  not
5. Conditional operator or ternary operator : syntax  exp 1? exp2 : exp 3
            i.e. if exp 1 is true the value returned will be exp 2  else the value returned will be exp 3.
  Ex     main()
            {
           int x,y;
           printf("enter a no.");
          scanf("%d",&x);
           y=(x>11? 10:12);
           printf("%d",y);
           getch();
            }
result: y will store 10 if value of x is greater than 11 or the value o f y will be 12.

a2zhacks wallpapers






Variable Declaration in C

The rules for constructing variables remain same for all type of variables: integer,real, character, string variable etc.
Ex: int x,y;
      float avg, div;
Variable Initialization
Variables can be initialized by placing an equal= sign an a constant after the name of variable. You can give most variables in C, a value at the same time when they were declared.
Syntax:
Data type variable name = constant;
    Ex: int c=20;
          char name="a2zhacks.blogspot.com";

Types of variables:
1.  local variable: Variables that are declared inside a function are called Local variables.
2.  global variables: Variables that are declared before the main() function. They known throughout the program.

Inpot output statament in C

printf() is a standard output function of C. It is used to display outputs generated by a program on the screen.
            Syntax:   printf(" [ message ] [conversion specifier] [escape sequences]",[variable list>/[expression>);
             Ex: printf("welcome to www.a2zhacks.blogspot.com ");
    the above statement will display a message Welcome to www.a2zhacks.blogspot.com  on the screen
Example:  #include
               main()
               {
                int x=67;
                printf(" The value of x = %d",i);
                }
the output of the above code is The Value of x = 67.

scanf() this is a standard input function of C. This function is used to accept any value or store in the given address of the specified variable according to the conversion specifier.
syntax:   scanf("[conversion specifier list]",[&var1,&var2,&var3.....]);
example:
#include
main()
{
int x;
printf("Enter a number");
scanf("%d",&x);
printf("The number you entered is  %d ",x);
getch()
}
the output will be that you will be asked a number and then the number will be stored in x and you will get a message that the number you entered is 123.

Data types in C

C supports a number of Data types. Some frequently used data types are:
      name                 size                                use
       char                 1byte                  to store any character
        int                   2byte                  to store whole numbers
       float                 4byte                  to store real number
      double              8byte                  to store a floating point with value greater than exactness.
      void                  0byte                  to specify an empty set of values
the above mentioned data types are called primary data types.

Type modifiers: the modifiers are used to alter the meaning of the base type to fit the needs of various situations  more precisely.
Except type void, the basic data types may have various modifiers preceding them. These are:
Signed, unsigned, long, short
look at the list below to understand more:

Data type                            Range                                           Byte                   Format
signed char                        -128 to + 127                                   1                           %c
unsigned char                        0to 255                                         1                            %c
short signed int                 -32768 to + 32767                          2                            %d
short unsigned int                   0 to65535                                  2                            %u
long signed int        -2147483648 to + 2147483647             4                            %ld
long unsigned int               0  to 4294967295                         4                             %ld
float                                -3.4e38 to + 3.4e38                             4                              %f
double                            -1.7e308 to + 1.7e308                       8                              %lf
long double                     -1.7e4932 to + 1.7e4932               10                             %Lf

C

                          C
      for codes and examples click here
Lesson1.............................................Introduction  to C
Lesson2.............................................Structure of C program and Running a Program 
Lesson3.............................................Elements of C language
Lesson4.............................................Control Statements and I/O Functions
Lesson5.............................................Array
Lesson6.............................................Functions And Storage Classes
Lesson7.............................................Pointers
Lesson8.............................................Structure and Union
Lesson9.............................................Rnum, Typedef, Pre-processor
Lesson10...........................................Files
Lesson11...........................................Graphics
      for codes and examples click here

                                                        having any problem Email me @ :      suryablogspot@gmail.com

Elements of C

The elements of C are Character Set, Constants, Variables, Reserved words , Delimiters.
let us discuss all briefly:
1.  Character Set - there are two sets of Character Set in C.
 a. Source Characters - using this the source code or program is written. They are:
           I.  Alphabets :   A to Z,  a, to z  and ( _ ).
          II. Decimals:     0 to 9
         III. Special characters: + - * / ^ ~ % = \ ( ) [ ] { } ? " ' , ; : 
  b. Execution Characters: Some characters in C cannot be printed directly the require special code  that  is
           understood by C. Some of them are below:
  Execution character       Meaning               Result at execution
             \0                       End of string              Null ( nothing)
             \n                       End of line            Moves the active position to the initial position of next line.
             \r                       Carriage-return     Moves the active position to the initial position of the next logical line. 
         \v                  vertical tab      Moves the active position to the next vertical tabulation position.  
            \f                   Form feed       Moves the active position to the initial position of the next logical page. 
         \t                   horizontal tab   Moves the active position to the next horizontal tabulation position.  
         \b                  backspace       Moves the active position to the previous position of current line.
            \a                        alert                    produces an audible alert
            \\                         backslash           presents with backslash \
2. Constants: these are defined as the items which directly represent values and whose values cannot be changed during the execution of the program. With respect to the form and value it is classified into three types of constants. They are 
        a : numeric constants : A sequence of numeric digits with or without a decimal point. They are of two types namely integer numeric constants and floating point numeric constants.
            Ex: 1,2,3 , 321, 9.354, o6f58
        b: character constants: Any single character given within single quotes is called as character constant.
            Ex:  "s", "G", "1" , "@", "\0"
        c: string constant: A sequence of one or more characters surrounded by double quotes is called string constant. It is also known as Array of Character constants. These end up with \0 (known as string terminator)
            Ex:     " "              is null string
                      " www.a2zhacks.blogspot.com"                    is a string constant"
                      "a",  "A", " 5",  "5674hdd@ "          are also string constant.

3: Reserved Words: At the time of designing a language, Some words are kept as reserved words to determine or do some specific tasks or call a function. Such words in C are called reserved words.Some of them are:
 auto     break    case    char    const    continue    enum    do   double    default    else    extern    float    for   goto    if    int    long    register    return    signed    sizeof    short    static    struct    switch    typedef    union    unsigned    void    volatile    while    do    while

4: Delimiters : A delimiter is a symbol that has a special meaning or use in C. They do not specify any operation to yield a value. C language sentences, labels, array, are separated by special characters known as delimiters. they are:
Name              Delimiter               meaning
hash                       #                    pre processor directive
comma                   ,                    variable delimiter in variable list
colon                      :                    label delimiter
semi-colon              ;                   statement delimiter
parenthesis             ( )                 used in expressions
square brackets     [  ]                 Used in arrays
curly brackets        {  }                used to block C statements

5. Variables:  A quantity which may vary during the execution of the program is called a variable. These can take many values, one at a time. Once assigned, their values can be changed during the program execution. Values can be stored in a symbolic name (variable) in the computers memory and can be recalled back when required later.               

see also:
Data types                Input / output statements in C            Variable declaration in C
Operators

                     
     

Structure of C program and Running a Program in C

Structure of a C program
C is a structured language, made up of collection of procedures which consists of declarations, statements and other elements, C compiler starts the execution from the function name   main(). Every C program have the function main() which is special function and it may also contain other functions or user defined functions.
The statement or a group of statements under the functions should be present within a pair curly braces { }. Each statement should be terminated by a semicolon ;  .
The program structure in C
  • Including the header files
  • Global variables and functions declaration which is optional.
  • Main function
  • Local variable and Function declaration
  • Statements
  • other functions
Remark Statement of C
Comments / Remarks in C begin with  /* ( a slash and star) and end with   */ ( a star and slash). You can enter multi-line remarks or comments in C with a beginning   /* ..... comments.....  */

Example of a C program :
_____________________________
/* A program calculate the sum two numbers */
#include[stdio.h] /* including header file stdio.h
#include[conio.h]
main()
{
int a,b,sum;
printf("enter two numbers")
scanf("%d%d",&a,&b);
sum=a+b;
printf("the sum of two numbers = %d ", sum);
}
________________________________

Running a program
A C program must be converted to .exe or .com to run directly and also for hiding the code. But while writing the code you can run the program by ctrl+F9.    Now to make a C code or program .exe then simply press F9, it will save the program in xxx.exe  (where xxx.your file name)

Introduction to C

About C
Programming Language is a notification to write programs. From early 1970 till today C has been providing its power as an all purpose programming language. Most of the software are written in C.
C was developed at AT and T's Bell Laboratories of USA in 1972. It was designed and written by Dennis Ritche. At that time people were in search for an all purpose language which can program all possible application instead of using a specific language. 
What is C
  1. C is a middle level programming language because it provides good programming efficiency as compared to machine oriented languages or any other languages. It has a relatively good machine efficiency as compared to other high level languages.
  2. C is a block structured language with fundamental flow control cunstructions.
  3. All tasks lie input,output, graphics, mathematical operation are done through library of functions. That is why C is also called Function Oriented Language. C has a rich se of operators compared to other High Level Languages like COBOL,BASIC etc.
  4. It also permits data conversation.
  5. Dynamic storage allocation is possible in C.
  6. Apart from the primary data types like int, float, car C also provides many extensive varieties of data types like array, pointers, unions, structures etc.
  7. recursive function is possible in C.
  8. It is applied in system, Language Compilers & Interpreters, Network drivers, Text Editors, Utilities etc.
                           Read next on  Structure of a C Program and Running a Program in C.  click here

how to kill a task using MS-DOS or cmd

many users like me get irritated with the process that load automatically in the Computer memory and makes it slow. To terminate this one can use task manager by pressing ctrl+shift+esc or ctrl+alt+del.. But what to do if the task manager is disabled. Then try killing the process using cmd.
let do it:

1. open cmd by going to start => run => type " cmd" => ok.
2. in the black screen type "  taskkill /IM calc.exe "

( Note :  here calc.exe is the program name that is running in  the process you can change it & dont forget to write .exe )
this will terminate the program safely .

program to print 1 to 100

this C code will print 1 to 100. It is a very good example of  using " while loop " in C.
Code:
__________________________________________________________
#include(stdio.h)
#include(conio.h)
main()
{
int x=1;
while(x<=10)
{
printf(\n\t"%d",x);
x++;
}
getch();
}
__________________________________________________________

program to find the absolute value of a number

this program will help you to find the absolute value of a number, it will also help you to teach little kids absolute value.
Code:
__________________________________________________________
#include(stdio.h)
#include(conio.h)
main()
{
int a,abs;
printf("Enter a number");
scanf("%d",&a);
if(a>=0)
{
printf("\t\n\t%d is the absolute value of %d",a,a);
}
else
{
abs=(-1)*a;
printf("\t\n\t%d is the absolute value of %d",abs,a);
}
getch();
}
__________________________________________________________

Sign in / Join

Labels