292x Filetype PDF File size 0.19 MB Source: www.cs.tufts.edu
Chapter 2
Procedural
Programming
C++ Programming with Design Patterns Revealed Tomasz Müldner Copyright: Addison-Wesley Publishing Company, 2002
2: Preview
Basic concepts that are similar in both Java and C++, including:
• standard data types
• control structures
• I/O
• functions
Dynamic memory management, and some basic pointer
operations.
C++ Programming with Design Patterns Revealed Tomasz Müldner Copyright: Addison-Wesley Publishing Company, 2002
2: Main function
Java C++ Comments about
C++
class C { int main() { The main function
public static void ... is not included in
main(String args[]) return 0; any class.
{ }
...
}
C++ Programming with Design Patterns Revealed Tomasz Müldner Copyright: Addison-Wesley Publishing Company, 2002
2: Comments
Comments about C++
/*
... C++ does not provide the Java comment /** ... */,
*/ used to create documentation
//
Remember about programming guidelines!
C++ Programming with Design Patterns Revealed Tomasz Müldner Copyright: Addison-Wesley Publishing Company, 2002
no reviews yet
Please Login to review.