Saturday, 16 February 2013

Write Your First Computer Program In C/C++

After installing Code Blocks you can follow these steps.First you can see this kind of picture ---


Then just click  on the "create new project">>"Files">>"C/C++ source">>"Go"----
then click on "C" or "C++">>"Next"---

then click the "..." see in the picture--

see next picture.you have  to give a name of your program.---

click "save".then click "finish".
after that you can see a page like this-

you have to write codes here.now we shall start writing  codes.
please write these codes-


#include<stdio.h>
int main()
{
    printf("hello world");
    return 0;
}

you see the pic also---

now you have written your first program.in the printf("  ");  whatever you write you can see as output. after clicking the "build and run " button you can see a box like this---
so you see your first program.
Now i am giving you a program for practise--
write a program that will give output --"I want to be a good programmer,wont't you"
please practise.send your answers and questions here-cprogtec@gmail.com
if your answer is correct then we will publish your name in the blog also.
thank you.


No comments: