Sunday, April 14, 2013

how to start with C and C++


How to start with C & C++ (:-
For begginer in this language..

1.
     
    If you completely freshe in c and c++ then first of all you have to download C and C++ compiler.
Then you can perform the program. 
    you have to download compiler like turbo c,borland,visual c++ etc.

2.
  Now you have compiler then you have to use any reference book to study the topic of c and c++. 
I think there are so many reference books for this but some books are so much useful to us like.
  - C with E.Balagurusamy 
  - C++ with E.Balagurusamy
   
   some other are available but these also awasome for begginer and also good programmer to teach something new..

3.
  Third one is that you have to regularly practise on that topic and find out something new from internet about  that topic which you refer from the book.



I think if you do this regularly then any one can not stop you to become good programmer in objective oriented c++...


                                   (( amul patel  ))

Saturday, April 13, 2013

why we use "using namespace std;" in C++



why we use "using namespace std;" in C++  ?

Without using namespace std; when you write for example cout <<; you'd have to put std::cout <<;

Here's a small example for you:
*without using namespace std;

#include <iostream>

int main()
{
    std::cout << "Hello World";
    system("pause");
    return 0;
    
}

*with using namespace std;

#include <iostream>

using namespace std;

int main()
{
    cout << "Hello World";
    system("pause");
    return 0;
    
}


They both do the exact same thing.

                                     (( amul patel ))