jobsheet 5 programming and database

7
Jobsheet 5 Programming and Database Programming C++ 1. Open Programming C++ 2. Select new source file.

Upload: alif-najmi

Post on 03-Dec-2015

17 views

Category:

Documents


4 download

DESCRIPTION

C--

TRANSCRIPT

Page 1: Jobsheet 5 Programming and Database

Jobsheet 5 Programming and Database

Programming C++1. Open Programming C++

2. Select new source file.

Page 2: Jobsheet 5 Programming and Database

3. Write the program.

4. Run the project.

Page 3: Jobsheet 5 Programming and Database

5. Save file.

6. Compilation Process.

7. Execute the program.

Page 4: Jobsheet 5 Programming and Database

8. Insert the data.

9. Result.

Question/Discussion1. How to

a) Compilation process.Compiling single file...--------- Filename: C:\Users\Pelajar\Desktop\jobsheet 5.cpp- Compiler Name: TDM-GCC 4.8.1 64-bit Release

Processing C++ source file...--------- C++ Compiler: %BinDir0%\g++.exe- Command: g++.exe "C:\Users\Pelajar\Desktop\jobsheet 5.cpp" -o "C:\Users\Pelajar\Desktop\jobsheet 5.exe" -I"%CppIncludeDir0%" -I"%CppIncludeDir1%" -L"%LibDir0%" -L"%LibDir1%" -static-libgcc

Compilation results...--------- Errors: 0- Warnings: 0- Output Filename: C:\Users\Pelajar\Desktop\jobsheet 5.exe- Output Size: 1.83259010314941 MiB- Compilation Time: 0.81s

This is how the compilation process.

Page 5: Jobsheet 5 Programming and Database

b) Execute the Program

Then, the result,

2. What is C++ Programming.

C++ is an object oriented programming (OOP) language, developed by Bjarne Stroustrup,

and is an extension of C language. It is therefore possible to code C++ in a "C style" or

"object-oriented style." In certain scenarios, it can be coded in either way and is thus an

effective example of a hybrid language.

C++ is a general purpose object oriented programming language. It is considered to be an

intermediate level language, as it encapsulates both high and low level language features.

Initially, the language was called 'C with classes’ as it had all properties of C language with

an additional concept of 'classes’. However, it was renamed to C++ in 1983.

It is pronounced "C-Plus-Plus."

CONCLUSION

In conclusion, I’ve learned how to make a c++ programming and also know how to make it done.