Вы находитесь на странице: 1из 7

Assignment C++ Programming

Question;

1. Who is Written C++?

- Bjarne Stroustrup
Bjarne Stroustrup is a Danish computer scientist, most notable for the
creation and development of the widely used C++ programming
language. Wikipedia
Born: December 30, 1950 (age 64), Aarhus, Denmark
Residence: New York City, New York, United States
Education: Aarhus University, Churchill College, Cambridge, University
of Cambridge
Awards: Grace Murray Hopper Award

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


Program

a.

Go to

- Transfers control unconditionally


- Example;

b.

While

- Executes a statement repeatedly, until the value of condition becomes


false.
- Example;

c.

Break and Continue

- Break, causes the enclosing for, range-for, while or do-while loop or


switch statement to terminate
- Continue, causes the remaining portion of the enclosing for, range-for,
while or do while loop body skipped
- Example;
Break

Continue

d.

While True

- Unconditional loop
- Example;

e.

Do / While

- Executes a statement repeatedly until the specified termination


condition evaluates to zero
- Example;

f.

Jump / Loop

- A jump / loop statement provides an unconditional jump from the goto


to a labeled statement in the same function.
- Example;

g.

If / else

- An if statement can be followed by an optional else statement, which


executes when the boolean expression is false.
- Example;

Оценить