You are on page 1of 4

WHO IS WRITTEN C++

Bjarne Stroustrup born 30 December 1950) is a Danish computer scientist, most notable for
the creation and development of the widely used C++ programming language.[4] He is a
Distinguished Research Professor and holds the College of Engineering Chair in Computer
Science at Texas A&M University , a visiting professor at Columbia University, and works
at Morgan Stanley .

EDUCATION
Stroustrup has a master's degree in mathematics and computer science (1975) from Aarhus
University, Denmark, and a Ph.D. in computer science (1979) from the University of Cambridge,
England . His thesis advisor in Cambridge was David Wheeler

CAREER
Stroustrup began developing C++ in 1978 (then called "C with Classes"), and, in his own words,
"invented C++, wrote its early definitions, and produced its first implementation... chose and
formulated the design criteria for C++, designed all its major facilities, and was responsible for
the processing of extension proposals in the C++ standards committee. Stroustrup also wrote a
textbook for the language, The C++ Programming Language.

2. State statement below and give an example application in C++


Program .

a)

Go to : The labeled statement designated by identifier must be in the current


function. All identifier names are members of an internal namespace and therefore
do not interfere with other identifiers.
A statement label is meaningful only to a go to statement; otherwise, statement
labels are ignored. Labels cannot be redeclared.
It is good programming style to use the break, continue, and return statements
instead of he go to statement whenever possible. However, because

the break statement exits from only one level of a loop, you might have to use a go
to statement to exit a deeply nested loop.

Example Go To :

b) While : Here, statement(s) may be a single statement or a block of statements.


The conditionmay be any expression, and true is any non-zero value. The loop iterates while
the condition is true.

Example While :

c) Break And Continue : There are two statements ( break; and continue; ) built in C++
programming to alter the normal flow of program. Loops are used to perform
repetitive task until test expression is false but sometimes it is desirable to skip
some statement/s inside loop or terminate the loop immediately with checking test

condition. On these type of scenarios, continue; statement and break; statement is


used respectively. The Break statement is also used to terminate switch statement.

Example Break And Continue :

d) While True : I'm curious about using a while

statement with a true condition. What is

the advantage of using a while(true) statement with break to exit the while statement over
something like a for loop? I guess I'm just curious when a good time to use this technique
would be? I saw it demonstrated in a quick sort algorithm at school today and was just
curious about it.

Example While True :

e)

Do / While : Unlike for and while loops, which test the loop condition at the top of
the loop, the do...while loop checks its condition at the bottom of the loop.
A do...while loop is similar to a while loop, except that a do...while loop is
guaranteed to execute at least one time.

Example Do/While :

f) Jump / Loop : A C++ jump statement performs an immediate local transfer of


control.

Example Jump / Loop :

g) If / Else : An if statement can be followed by an optional else statement, which


executes when the boolean expression is false.
Example If / Else :

You might also like