Introduction Instructor: Jia Xu CSCI-135
about 135 prerequisite: CSCI-127 final score: 25% programming projects (3-5) late penalty on programming projects (see b.b.) 75% three tests (equally weighted)
Instructors Jia Xu Office hours: Tues. 14:00-16:00 HN-1043 jx146@hunter.cuny.edu Saptarshi Debroy Office hours: Thurs. 15:00-17:00 HN-1047 sd1998@hunter.cuny.edu
references text book: Absolute C++, Walter Savitch, 6th Edition references: The C++ Programming Language, Bjarne Stroustrup, 4th Edition C++ Kurzgefasst, Rainer Krienke, 2nd Edition Introduction to C++, Adil Aslam, in Slideshare.net Buckys C++ Programming Tutorials http://www.inf.ufrgs.br/~ssalamon/books
related courses C++ lab: CSCI-136 Linux: introduction to Linux classes (Wed 9/7 Tue 9/14) Thomas Walter http://www.geography.hunter.cuny.edu/tbw/ CS.Linux.Lab.FAQ/ department_of_computer_science.faq.htm
Computer: hardware & software
computer hardware keyboard CPU screen mouse printer harddisk input (I) memory output (O) speaker
computer hardware keyboard CPU screen mouse printer harddisk input (I) memory output (O) speaker
computer hardware keyboard CPU screen mouse printer harddisk input (I) memory output (O) speaker
computer hardware keyboard CPU screen mouse printer harddisk input (I) memory output (O) speaker
computer hardware keyboard screen CPU mouse printer harddisk input (I) memory output (O) speaker A Computer = a device that can be instructed to carry out an arbitrary set of arithmetic (+,-) or logical operations (AND, OR) automatically.
hardware & software
hardware & software
hardware & software hardware CPU, memory, IO
hardware & software system software operating system hardware CPU, memory, IO utilities
hardware & software application software office internet browser game system software operating system hardware CPU, memory, IO utilities
hardware & software application software software is that office part of internet a computer browser system that game consists of encoded information or computer instructions, system software includes computer programs, libraries and data operating system hardware CPU, memory, IO utilities
software is that part of a computer system that consists of encoded information or computer instructions, includes computer programs, libraries and data
software is that part of a computer system that consists of encoded information or computer instructions, includes computer programs, libraries and data collection of instructions that performs a specific task when executed by a computer
software is that part of a computer system that consists of encoded information or computer instructions, includes computer programs, libraries and data collection of instructions that performs a specific task when executed by a computer
135 course is about software How to write programs!!! is that part of a computer system that consists of encoded information or computer instructions, includes computer programs, libraries and data collection of instructions that performs a specific task when executed by a computer
135 course is about software How to write programs!!! is that part of a computer system that consists of encoded information or computer instructions, includes computer programs, libraries and data collection of instructions that performs a specific task when executed by a computer
computer programs in programming languages
programming language a computer program is written in programming language PC programs programming language
programming language a computer program is written in programming language PC programs programming language
programming language a computer program is written in programming language PC programs programming language
programming language a computer program is written in programming language PC programs programming language
programming language a computer program is written in programming language PC programs programming language
programming language a computer program is written in programming language PC programs programming language
programming language a computer program is written in programming language PC programs programming language
programming language a computer program is written in programming language PC programs programming language
programming languages http://www.techtechnik.com/10-excellent-programming-languages-in-demand-2015/
programming languages high level language imperative language object oriented language functional language scripting language assembly language machine language Fortrain, C, Pascal, hardware
Machine language a set of instructions executed directly by a CPU written in the form of 0 and 1 a computer can directly understand its own language 1000100001111 0000111000000
Machine language a set of instructions executed directly by a CPU written in the form of 0 and 1 a computer can directly understand its own language 1000100001111 0000111000000
assembly language low level language = use naturally understandable symbols called Mnemonics
procedural language = a list or set of instructions telling a computer what to do step by step C, Pascal, Fortran, BASIC,
procedural language = a list or set of instructions telling a computer what to do step by step C, Pascal, Fortran, BASIC, OOP = programming paradigm based on the concept of objects, which are data structures containing the data as fields (attributes) and code as procedures (methods) C++, Java, C#
procedural function definition and usage in the program top down no access specifier object oriented method and variables defined in class and used in objects bottom up access specifier: public, private, protected etc. procedural language = a list or set of instructions telling a computer what to do step by step C, Pascal, Fortran, BASIC, OOP = programming paradigm based on the concept of objects, which are data structures containing the data as fields (attributes) and code as procedures (methods) C++, Java, C#
C Ritchie C++ Stroustrup procedural yes OOP virtual function, polymorphism, overloading, namespace, inheritance no yes top down yes no multiple declaration of global variables yes no mapping between data and function used in objects no yes can call main() through other functions yes no all variables defined at the starting of a scope yes no
C++ compilers Windows: Visual Studio Bloodshed Dev-C Linux/Unix: GNU gcc e.g. g++ -o test test.cc