1 / 78

CSci 152: Programming II Fall 2004

Programming Languages. Programming language: A set of rules, symbols and special words.syntax tells which statements are legal or acceptedsemantics determine meanings of instructions. Basic Elements of C . A C Program (or any program in a procedural programming language)Collection of 1 or more

vaughan
Download Presentation

CSci 152: Programming II Fall 2004

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


    1. CSci 152: Programming II Fall 2004 Review

    2. Programming Languages Programming language: A set of rules, symbols and special words. syntax tells which statements are legal or accepted semantics determine meanings of instructions

    3. Basic Elements of C++ A C++ Program (or any program in a procedural programming language) Collection of 1 or more subprograms called functions Which is a collection of statements that can accomplish something useful sequence, selection, repetition Special function called main

    4. Hello World! #include <iostream> using namespace std; int main() { cout << “Welcome to C++ Programming.” << endl; return 0; }

    5. C++ Tokens Special Symbols + - * / . ; ? , <= != == >= Word Symbols int, float, char, void, return Identifiers Identifiers are names of things that appear in programs, such as variables, constants, and functions. Some are predefined others are defined by you, the programmer.

    6. C++ Data Types def Data type: A set of values together with a set of operations simple data type structure data type pointers

More Related