csci 271 part 2 Flashcards
(22 cards)
Windows, unix, Linux, and Mac OS X.
Operating systems
C++ programming language is a
High level language
Standard c++
ANSI/ISO c++ agreed upon version that is portable to any platform and any development environment.
What is ANSI and ISO
ANSI- American national standard institute
ISO - international standardization organization
What is an IDE
A software application that provides comprehensive facilities to computer programmers for software development
An IDE consist of
Code editor
A compiler
A debugger
A graphic user interface builder
What is a compiler
(Library with useful function) is translator programs that convert high level language programs into machine language.
Function- a block of code that performs one or more tasks, such as adding two numbers or printing to the screen.
// Ernst Hyacinthe, 09/12/04 // text-printing program
include <iostream></iostream>
Int main ()
{
Std::cout«“hello world”\n;
Return 0;
}
This is the compiler screen with the c++ programming
Line one and two are the comment screen
Comments does not effect the operation
What is Linux
Open source source software development and free operating system. It can be freely distributed, downloaded freely, distributed through magazines, books etc.
User can be everyone from home users to developers.
What is an unix
Operating system used in Internet servers, workstation & PCs. Backbone of the majority of financial infrastructure. Developed by AT&T at bells labs and Dennis Ritchie. Written in C language.
Manufactured by
IBM, HP, AND MAC OS.
FILE SYSTEM SUPPORT
JFS, GPFS, HFS, HFS+, UFS,XFS,ZFS FORMAT
Disadvantages are
Users have to wait for awhile to get the proper bug fixing patch.
Processors are
X86/x64, Sparc, Itanium, Pa-RISC, PowerPC
Definition: Computer? computer-program?
A computer is a device capable of performing computations and making logical decisions at speeds millions (even billions) of times faster than human beings can.
Computer Programs
Computers process data under the control of sets of instructions called computer programs.
What are the Computer Organization Six key logical units.
Six key logical units are
- Input unit
- Output unit
- Memory unit (Memory)
- Arithmetic and logic unit (ALU) - Central processing unit (CPU) - Secondary storage unit
Input Unit is
The “receiving” section which obtains information (data and computer programs) from input devices and places it at the disposal of the other units so that it can be processed.
Comments. “//………………. “ -
Do not affect the operation of the program; Ignored by the compiler
Enhance the readability of the source code
Line 3. “ # include <iostream> " —— Preprocessor directive.</iostream>
Preprocessor directive.
main function. • Every C++ program has a main() function. • The function main() is called
by operating system automatically when program starts. • The function main() always return int, e.g. 0 (signal for success).
Every C++ statement must be ended with a
semicolon ;.
main function must be ended with
return 0;
Declaration statement
Tells the compiler what variable you going to use.
one you declare a variable it tells the compilers what variable you going to use
any variable has to be declare before being you use.
executable statement
performs actions and tasks
A variable is a
location in your computer’s memory in which you can store a value and from which you can retrieve that value.