Creative Technologies

Cards (57)

  • Source code is the human-readable form of the program, stored in a text file
  • Object code is the executable form of the program created by the compiler
  • Typing in the programs yourself often helps you remember key concepts
  • When entering a program by hand, use a text editor, not a word processor
  • C++ programs are normally contained in files that use the .cpp extension
  • The output from a C++ compiler is executable object code
  • The executable file will use the same name as the source file, but have the .exe extension
  • After a C++ program has been compiled, it is ready to be run
  • The main() function is where program execution begins and ends
  • cout << "C++ is power programming."; is a console output statement
  • The message “C++ is power programming.” is a string in C++
  • return 0; terminates main() and causes it to return the value 0 to the calling process
  • All C++ statements end with a semicolon
  • If you enter something incorrectly into your program, the compiler will report a syntax error message when it tries to compile it
  • C++ is the preeminent language for the development of high-performance software
  • C++ syntax has become the standard for professional programming languages
  • C++ design philosophy reverberates throughout computing
  • C++ is the language from which Java and C# are derived
  • To be a professional programmer implies competency in C++
  • C++ is an "object-oriented" programming language created by Bjarne Stroustrup in 1979
  • Initially called "C with Classes", the name was changed to C++ in 1983 and released in 1985
  • C++ maintains aspects of the C programming language but has features that simplify memory management
  • C++ could be considered a superset of C, and C programs will run in C++ compilers
  • Structured programming consists of simple, hierarchical program flow structures
  • Sequence: refers to an ordered execution of statements
  • Selection: one of a number of statements is executed depending on the state of the program
  • Repetition: a statement is executed until the program reaches a certain state or operations are applied to every element of a collection
  • The need for C++ arises from the increasing complexity of programs
  • C++ is the response to the need for better ways to manage program complexity
  • C++ helps programmers comprehend and manage larger, more complex programs
  • C++ is the parent language for Java and C#
  • Syntax for C++, Java, and C# is nearly identical
  • C++ is used for high-performance software, Java and C# for highly portable software
  • Java and C# create cross-platform, portable programs, while C++ is tied to a specific CPU and Operating System
  • Java and C# achieve portability by compiling a program into a pseudocode, intermediate language
  • Bytecode is the intermediate language for Java, and Microsoft Intermediate Language (MSIL) is for C#
  • Pseudocode is an artificial and informal language that helps programmers develop algorithms
  • Pseudocode is a "text-based" detail (algorithmic) design tool
  • Pseudocode includes keywords such as while, do, for, if, switch
  • Pseudocode is executed by a runtime system