Lab-Manual.docx - Lab Contents LAB 01 Integrated Development Environment(IDE and Basics of Programming.14 LAB 02 Variables and Datatypes.26 LAB 03

Lab-Manual.docx - Lab Contents LAB 01 Integrated...

This preview shows page 1 - 3 out of 75 pages.

Lab Contents LAB 01 Integrated Development Environment (IDE) and Basics of Programming ................. 14 LAB 02: Variables and Datatypes ................................................................................................ 26 LAB 03 Operators and Manipulator Functions ......................................................................... 30 LAB 04 Control Structures (if/else/else if) ................................................................................ 35 LAB 05 Control Structures (switch Statement/Nested if) ......................................................... 39 LAB 06 Control Structures (for/while/do-while loop) .............................................................. 43 LAB 07 Functions ...................................................................................................................... 53 LAB 08 Array I .......................................................................................................................... 60 LAB 09 Array II ......................................................................................................................... 65 LAB 10 Structures ..................................................................................................................... 70 LAB 11 File Handling ............................................................................................................... 74 LAB 12 Strings .......................................................................................................................... 78 LAB 13 Pointers ........................................................................................................................ 83
Image of page 1
Lab Manual Computer Programming CSL-113 LAB 01 Integrated Development Environment (IDE) and Basics of Programming. Objective(s): Understanding of Integrated Development Environment (IDE) Tools(s): a) PC with Windows 7 Professional b) Visual Studio 2010 HISTORY OF C and C++ B ja r n e S troustru p , a Danish computer scientist, began his work on C++'s predecessor "C with Class e s" in 1979. The motivation for creating a new language originated from Stroustrup's experience in programming for his Ph.D. thesis. Stroustrup found that S i m ula had features that were very helpful for large software development, but the language was too slow for practical use , while B C P L w as fast but too low-level to be suitable for large software development. When Stroustrup started working in A T & T B e ll L a b s , he had the problem of analyzing the U N I X k e r n e l with respect t o dis t rib u ted c ompu t in g . Remembering his Ph.D. experience, Stroustrup set out to enhance the C la nguage with S i m ula -like features. C was chosen because it was general-purpose, fast, portable and widely used. As well as C and Simula's influences, other languages also influenced C++, includi ng A L GO L 6 8 , A d a , C L U a nd M L . In 1983, it was renamed from C with Classes to C++ (++ being the in c r e m e nt ope ra tor in C). New features were adde d including virtu a l fu n c t i on s , function name an d op e r a tor ov e rlo a di n g , references, constants, type-safe free-store memory allocation (new/delete), Improved type checking, and BCPL style single-line comments with two forward slashes ( // ), as well as the development of a proper compiler for C++, Cf r on t . In 1985, the first edition of T he C + + Program m i n g L anguage w as released, which became the definitive reference for the language, as there was not yet an official standard. The first commercial implementation of C++ was released in October of the same year. INTRODUCTION: An integrated development environment (IDE) or interactive development environment is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools and a debugger. In general, an IDE is a graphical user interface (GUI) - based workbench designed to aid a developer in building software applications with an integrated environment combined with all the required tools at hand.
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 75 pages?

  • Fall '19
  • Bilal Shahid
  • Control flow, do-while loop

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes