Professional Documents
Culture Documents
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.
a)
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 :
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
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.
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 :