Unit-III Programming using C/C++  -Dr. Piyush Charan  Assistant Professor, Dept of ECE, Integral University, Lucknow
Objectives ✘ To learn fundamental problem solving techniques ✘ To learn how to design a program ✘ To learn to use the C++ programming language
What is C++? ✘ C++ is a programming language. ✘ A computer program performs a specific task, and may interact with the user and the computer hardware. ✗ Human work model: ✗ Computer work model:
What is C/C++? ✘ The most popular programming languages: ✗ Basic (Beginner All-purpose Symbolic Instructional Code) ✗ C++ (an object-oriented language, based on C) ✗ Cobol (Common Business Oriented Language) ✗ Fortran (FORmula TRANslation) ✗ Java ✗ Pascal (named for Blaise Pascal) ✗ Visual Basic (Basic-like visual language developed by Microsoft) ✗ C (developed by the designer of the B language) ✘ The most common versions of C++: ✗ Microsoft VC++2008 ✗ Eclipse ✗ g++ (for Unix machines)
Why C/C++? ✘ Bad News: ✗ C++ is not easy to learn ✘ Good News: ✗ Lots of good-paying jobs for programmers because C/C++ is not easy to learn! ✗ Java uses C++ syntax, it is easy to learn Java if you know C++. ✗ Though C++ is not the easiest language (Basic and Pascal are easier), it is not the hardest either (Ada, Prolog and Assembly languages are really difficult!)
Who Uses C/C++? ✘ Computer makers such as TCS, Microsoft, IBM, Infosys and HP ✘ Airport ✘ Computer chip manufacturers like Motorola & Intel ✘ Software companies ✘ Banks ✘ Government ✘ Hospital Authority ✘ Telecommunications ✘ Universities
Most Important Feature of C/C++ ✘ Most important feature of C++: its strong and efficient support of both Structured Programming and Object- Oriented Programming. ✘ C/C++ runs on: ✗ PC ✗ Macintosh ✗ Unix workstations (also, Unix versions of C++ are free!) ✗ supercomputers
What Can We Do By the End of the Course?  Program the computer in applications such as the following:  Program a simple calculator  Program simple computer games  Program a simple text editor  Program a small inventory system for a small company  You will be ready to take on part-time programming jobs by the end of the semester!

Unit 3 introduction to programming

  • 1.
    Unit-III Programming using C/C++ -Dr. Piyush Charan  Assistant Professor, Dept of ECE, Integral University, Lucknow
  • 2.
    Objectives ✘ To learnfundamental problem solving techniques ✘ To learn how to design a program ✘ To learn to use the C++ programming language
  • 3.
    What is C++? ✘C++ is a programming language. ✘ A computer program performs a specific task, and may interact with the user and the computer hardware. ✗ Human work model: ✗ Computer work model:
  • 4.
    What is C/C++? ✘The most popular programming languages: ✗ Basic (Beginner All-purpose Symbolic Instructional Code) ✗ C++ (an object-oriented language, based on C) ✗ Cobol (Common Business Oriented Language) ✗ Fortran (FORmula TRANslation) ✗ Java ✗ Pascal (named for Blaise Pascal) ✗ Visual Basic (Basic-like visual language developed by Microsoft) ✗ C (developed by the designer of the B language) ✘ The most common versions of C++: ✗ Microsoft VC++2008 ✗ Eclipse ✗ g++ (for Unix machines)
  • 5.
    Why C/C++? ✘ BadNews: ✗ C++ is not easy to learn ✘ Good News: ✗ Lots of good-paying jobs for programmers because C/C++ is not easy to learn! ✗ Java uses C++ syntax, it is easy to learn Java if you know C++. ✗ Though C++ is not the easiest language (Basic and Pascal are easier), it is not the hardest either (Ada, Prolog and Assembly languages are really difficult!)
  • 6.
    Who Uses C/C++? ✘Computer makers such as TCS, Microsoft, IBM, Infosys and HP ✘ Airport ✘ Computer chip manufacturers like Motorola & Intel ✘ Software companies ✘ Banks ✘ Government ✘ Hospital Authority ✘ Telecommunications ✘ Universities
  • 7.
    Most Important Featureof C/C++ ✘ Most important feature of C++: its strong and efficient support of both Structured Programming and Object- Oriented Programming. ✘ C/C++ runs on: ✗ PC ✗ Macintosh ✗ Unix workstations (also, Unix versions of C++ are free!) ✗ supercomputers
  • 8.
    What Can WeDo By the End of the Course?  Program the computer in applications such as the following:  Program a simple calculator  Program simple computer games  Program a simple text editor  Program a small inventory system for a small company  You will be ready to take on part-time programming jobs by the end of the semester!