C++ for beginners

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Low level languages

Assembler

Non structure

BASIC, COBOL, FORTRAN

Object oriented

C++, JAVA and C# (C sharp)

Middle level language

C, C++

are some examples of C being used.

Database systems Graphics packages Word processors Spreadsheets Operating system development Compilers and Assemblers Network drivers Interpreters

#include

Is a preprocessor directive that tells the compiler to put code from the header called iostream into our program before actually creating the executable

<<symbols

Known as "insertion operators", to indicate what to output.

{ }

Meaning the Begin and End

are written in C language

Operating system programs such as Windows, Unix, Linux

cout<<

Results in a function call with the ensuing text as an argument to the function

"Quotes"

Tell the compiler that you want to output the literal string as-is

return 0;

This command terminates C program (main function) and returns 0.

getch();

This command waits for any character input from keyboard.

C11 standard

adds new features to C programming language and library like type generic macros, anonymous structures, improved Unicode support, atomic operations, multi-threading and bounds-checked functions.

printf("Hello_World! ");

printf command prints the output onto the screen.

C89/C90 standard

- First standardized specification for C language was developed by the American National Standards Institute in 1989.

C++

Is a programming language

The "curly braces" ({and})

Signal the beginning and end of the functions and other code blocks.

Semicolon

Tells the compiler that you're at the end of a command

{

This indicates the beginning of the main function.

}

This indicates the end of the main function.

In 1983, the American National Standards Institute (ANSI)

established a committee to provide a modern, comprehensive definition of C.

%f

for float variable,

%x

for hexadecimal variable

%s

for string variable,

cin.get()

It reads in input and expects the user to hit the return key.

printf() and scanf() functions

are inbuilt library functions in C which are available in C library by default. These functions are declared and related macros are defined in "stdio.h" which is a header file.

C89/C90 and C99

are two standardized editions of C language

%lf

for double variable

C

has been written in assembly language

What's is the website for tutorial

http://fresh2refresh.com/c/c-printf-and-scanf/

First reading website

http://fresh2refresh.com/cprogramming/

Embedded C

includes features not available in C like fixed-point arithmetic, named address spaces, and basic I/O hardware addressing.

C programming

is an ANSI/ISO standard and powerful programming language for developing real time applications.

Structure of C program

is defined by set of rules called protocol

The C language

is structured, middle level programming language developed by Dennis Ritchie

The C programming language

is used for developing system applications that forms a major portion of operating systems such as Windows, UNIX and Linux.

%c

is used to display character variable

printf() function

is used to print the "character, string, float, integer, octal and hexadecimal values" onto the output screen.

#include <stdio.h>

This is a preprocessor command that includes standard input output header file(stdio.h) from the C library before compiling a C program

int main()

This is the main function from where execution of any C program begins.

int main()

This line tells the compiler that there is a function named main, and that the function returns an integer, hence int.

C++

program is a collection of commands, which tell the computer to do "something".

/*_some_comments_*/

whatever is given inside the command "/* */" in any C program, won't be considered for compilation and execution.

the ANSI standard, or "ANSI C

was completed late 1988.

C programming language

was invented by Dennis Ritchie at the Bell Laboratories in 1972.

C programming

was invented for implementing UNIX operating system.

C programming language features

were derived from an earlier language called "B" (Basic Combined Programming Language - BCPL)

C99 standard

- Next revision was published in 1999 that introduced new features like advanced data types and other changes.

cout object

Is used to display text

Structure oriented

Examples: C, Pascal, ALGOL and Modula-2

High level language

Examples: Java, Python

\n

Is actually treated as a single character that stands for a newline

We use printf() function with %d format specifier

to display the value of an integer variable.

compiler

turns the program that you write into an executable that your computer can actually understand and run.


Kaugnay na mga set ng pag-aaral

Uppers, Downers, All Arounders seventh edition

View Set

Chapter 50: Respiratory Problems of the Adult Client

View Set

Environmental Conservation Exam 1.

View Set

Unit 23 - Building Design, Plans, and Spectifications

View Set