.


:




:

































 

 

 

 





IT


, . , , . , , - , , . .

, , , . , . C++, , , . , C++ - . , , , . , , . , C++ .

, , , . , . ! , . C , ( ), , . , , , , .

, . Slackware Linux, Windows . , QNX NetBSD. Unix : GTK+ Qt. C++, , , . , , , , , .

, Mac OS X, Intel . Mac OS X 10.5 Leopard, HackBook .

, - . , Carbon. , . Objective-C NeXT Object-oriented programming and the Objective-C language. , , . , , , , , . , - .

Xcode Mac OS X . Mac Developer Library, Cocoa , .

OpenGL Windows Mac OS X, . , , .

Objective-C, Smalltalk, Objective-C, , . Smalltalk , . , .

, Cincom Smalltalk , . CD . , . VisualWorks Smalltalk .

Squeak Smalltalk, Smalltalk-80, . , . , Smalltalk .

, C++, Objective-C Apple . - . ( , LLVM .) C++, . , .

, .

C

( 32 C89, 37 C99 44 C11) , . C . , , , , . TIOBE Programming Community Index , Java.

/* Hello world in C */ #include <stdio.h>#include <stdlib.h> int main(void){ printf("Hello World!\n"); return EXIT_SUCCESS;}

 

Objective-C

. , Objective-C. - : . Apple.

/* Hello world in Objective C */ #import <Foundation/Foundation.h> int main (int argc, const char *argv[]){ NSAutoreleasePool *pool = [NSAutoreleasePool new]; NSLog (@"Hello, World!\n"); [pool drain]; return 0;}

 

Smalltalk

Objective-C . , Objective-C. - . , , , , . , , . , (Kapital JPMorgan), (CIM Texas Instruments), (IRIS-2 Orient Overseas Container Lines), (Desjardins General Insurance Group) .

"Hello world in Smalltalk" Transcript show: 'Hello World!'; cr.

 

, , . .

C++

( 100), , . , , . C++ , , - - . , Objective-C Smalltalk , C++ . . , C++ , , , , Objective-C Java . : . C++ I/O Kit Mac OS X.

// Hello world in C++ #include <iostream> int main(){ std::cout << "Hello World!\n"; return 0;}

 

Assembler


, , , . (, Demo ). , , , .

# Hello World in GNU Assembler on Mac OS X 10.8 using System V AMD64 ABI calling convention.data_hello:.asciz "Hello world!\n".text.globl _main_main: subq $8, %rsp movb $0, %al leaq _hello(%rip), %rdi call _printf movq $0, %rdi call _exit

 

JavaScript

, . web . . web , JavaScript . : , -, . JavaScript , C- , . JavaScript , .

// Hello world in JavaScript document.write("Hello World!");

 

Ada

, . . , Ada . (, , , ), . , C++.

-- Hello world in Ada with Ada.Text_IO; use Ada.Text_IO;procedure Hello isbegin Put_Line ("Hello, world!");end Hello;

 

Scheme


, . Lisp. . , ( ) . .

;; Hello world in Scheme (begin (display "Hello, World!") (newline))


, .

, , Shell, Perl, JavaScript Scheme. . , , , .

, , , . , , . , , C C++ , , . , , , .

, . .

, , ( ) C, , .

- . . , . . , . , , , , - . , , , , .

, C CoreFoundation Mac OS X.

?

. :

-, . 21 . , , App Store ( , ). -, ANSI/ISO . , -, , .

, , . , , . , , . .

, , , , , . , , , , (Introduction to Algorithms by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest and Clifford Stein). . , .

. , , , . .

. . , , , , . , . , .

, , Fortran ( ) Fortran. , , , , . .

, , . stackexchange.com .

. , . ( ), screensaver, . , : ( ) .

. . , , , . , , . . , , , , . , . .

 





:


: 2017-01-21; !; : 278 |


:

:

,
==> ...

1717 - | 1478 -


© 2015-2024 lektsii.org - -

: 0.024 .