Date post: | 21-Dec-2015 |
Category: |
Documents |
View: | 214 times |
Download: | 0 times |
General Computer General Computer Science Science
for Engineersfor EngineersCISC 106CISC 106
Lecture 26Lecture 26
Dr. John CavazosComputer and Information Sciences
04/24/2009
A programming languageDerived from a language called CUbiquitous Object Oriented
◦Easier to write large scale projects◦Reusability
High Performance
When not to use C++When not to use C++Small programsPrototyping (MATLAB, scripting
languages)Web applications (javascript)
C++ versus MATLABC++ versus MATLABMATLAB uses an interpreter
To run can just type and use matlab commands
C++ uses a compilerProgram converted to machine code
with compiler
C++ versus MATLABC++ versus MATLABMATLAB uses dynamic typing
Introduce new variables as neededType of variable discovered by use
C++ uses static typingVariables have to be introducedType is given when introduced
Must introduce variables before using“Double quotes” for stringsInput and output
int studentAge;
cout << “How old are you?”;cin >> studentAge;