Full Transcript

Introduction to C++ Computer Science Fundamentals - Lectures Programming Programming Language Programming Language - is a standardized communication technique for expressing instructions to a compute...

Introduction to C++ Computer Science Fundamentals - Lectures Programming Programming Language Programming Language - is a standardized communication technique for expressing instructions to a computer. – Examples: C++, C, Java Categories of Programming Language: – High-Level Programming Language uses a more natural and human-readable syntax which makes it easier for humans to understand and write – Low-level Assembly Language user writes code which is almost identical to the one Programming Intro to C++ What is C++? – C++ is a general purpose programming language invented in the early 1980s by Bjarne Stroustrup at Bell Labs. – The purpose of C++ is to precisely define a series of operations that a computer can perform to accomplish a task. Most of these operations involve manipulating numbers and text, but anything that the computer can physically do can be programmed in C++. Programming Intro to C++ Getting Started with C++ – To start your program development with C++, first you need to install two kinds of softwares on your computer: 1. Text Editor This will be used to type the code of your program. Example: Notepad, CodeBlocks. 2. C++ Compiler Compilers are used to compile your source code and translate it into a Programming C++ sample code Sample Code: Programming C++ code parts The various parts of the given program consists of the ff: – The header contains everything we needed for handling input and output. – The line using namespace std; tells the compiler to use the standard namespace. Namespaces are used to organize code into logical groups. – The line int main() is the main function where program execution begins. – The next line cout

Use Quizgecko on...
Browser
Browser