Intelligentedu Intelligentedu
Best New Free Computer IT Training Tutorial Resources Miglior nuovo computer è libero di formazione tutorial risorse
Translate to EnglishÜbersetzen Sie zum Deutsch/GermanTraduzca al Español/SpanishTraduisez au Français/FrenchTraduca ad Italiano/ItalianTraduza ao Português/Portuguese日本語に翻訳しなさい /Japanese
한국어에게 번역하십시오/Korean中文翻译/Chinese Simplified中文翻译/Chinese Traditionalترجمة الى العربية/ArabicVertaal aan het Nederlands/DutchΜεταφράστε στα ελληνικά/GreekПереведите к русскому/Russian





Blog Roll: Roll blog:


Top Links: Top Links:

November 10, 2006 10 novembre 2006

C and C++ Manual with Code Examples C e C + + con manuale Esempi di codice

C and C++ are two of the most important programming languages today. C e C + + sono due dei più importanti linguaggi di programmazione di oggi. Many professional programmers are proficient in C and C++. Molti professionisti sono abili programmatori in C e C + +. These two programming languages are the foundation upon which modern programming is built. Questi due linguaggi di programmazione sono il fondamento su cui moderna programmazione è costruita.

The C language was invented by Dennis Ritchie in the 1970s. Il linguaggio C è stato inventato da Dennis Ritchie nel 1970. It is a middle-level language and combines the control structures of a high-level language with the ability to manipulate bits, bytes, and pointers, or addresses. Si tratta di un centro a livello di lingua e combina le strutture di controllo di un elevato livello di lingua con la capacità di manipolare bit, byte, e puntatori, o indirizzi. C provides a programmer virtually complete control over the computer. C fornisce un programmatore praticamente il controllo completo del computer.

This web site, the C / C++ Zone, is not designed as a tutorial, but rather as a C and C++ programming manual with usable code examples . Questo sito, il C / C + + Zona, non è concepito come un tutorial, ma piuttosto come un C e C + + con manuale di programmazione utilizzabile codice esempi. It is under constant development. Esso è in costante sviluppo.



C / C++ Zone C / C + + Zona


Algorithms Algoritmi

The generic algorithms fall into four categories, as listed here: Algoritmi generici rientrano in quattro categorie, come indicato qui:

Non-modifying sequence algorithms: Do not modify the containers on which they work. Non modificare la sequenza degli algoritmi: non modificare i contenitori su cui lavorano. Such algorithms include: Tali algoritmi includono:
adjacent_find, find, find_end, find_first, count, mismatch, equal, for_each, search. adjacent_find, trovare, find_end, find_first, contare, non corrispondente, pari, for_each, ricerca.

Mutating sequence algorithms: Modify the containers on which they work. Mutazione sequenza algoritmi: Modificare i contenitori su cui lavorano. Such algorithms include: Tali algoritmi includono:
copy_backward, fill, generate, partition, random_shuffle, remove, replace, rotate, reverse, swap, swap_ranges, transform, unique. copy_backward, compila, generare, partizione, random_shuffle, rimuovere, sostituire, ruotare, invertire, swap, swap_ranges, trasformare, unico nel suo genere.

Sorting algorithms: Sort the contents of containers in various ways. Cernita algoritmi: Ordina il contenuto di contenitori in vari modi. These algorithms include: Questi algoritmi includono:
sort, stable_sort, partial_sort, partial_sort_copy, as well as a number of related functions, including: tipo, stable_sort, partial_sort, partial_sort_copy, oltre a una serie di funzioni, tra cui:
nth_element, binary_search, lower_bound, upper_bound, equal_range, merge, includes, push_heap, pop_heap, make_heap, sort_heap, set_union, set_intersection, set_difference, set_symmetric_difference, min, min_element, max, max_element, lexicographical_compare, next_permutation, prev_permutation. nth_element, binary_search, lower_bound, upper_bound, equal_range, unione, comprende, push_heap, pop_heap, make_heap, sort_heap, set_union, set_intersection, set_difference, set_symmetric_difference, min, min_element, max, max_element, lexicographical_compare, next_permutation, prev_permutation.

Numeric algorithms: Perform numeric calculations on the contents of containers. Algoritmi numerici: Eseguire calcoli numerici sul contenuto dei contenitori. These category includes: Questi categoria comprende:
accumulate, adjacent_difference, inner_product, iota, partial_sum, power. accumulano, adjacent_difference, inner_product, millimetro, partial_sum, potere.


Iterators Iterators

Iterators are pointer-like objects that allow programs to step through the elements of a container sequentially without exposing the underlying representation. Iterators sono puntatore oggetti simili che consentono ai programmi di passaggio attraverso gli elementi di un contenitore in sequenza senza esporsi alla base di rappresentanza. Iterators can be advanced from one element to the next by incrementing them. Iterators può essere avanzata da un elemento al seguente crescente di loro. Some iterators can also be decremented or allow arbitrary jumps from one element to another, as we will see later. Alcuni iterators possono anche essere decrementato arbitraria o consentire salti da un elemento a un altro, come vedremo in seguito. When they are dereferenced, iterators yield a reference to a container element. Quando sono dereferenced, iterators resa un riferimento ad un elemento contenitore. In addition, they can be compared to each other for equality or inequality. Inoltre, essi possono essere paragonati a vicenda per l'uguaglianza o disuguaglianza.

Iterators interact seamlessly with built-in C++ types. Iterators interagiscono perfettamente con built-in C + + tipi. In particular, native C++ pointers are treated as iterators to C++ arrays. In particolare, nativo C + + puntatori sono trattati come iterators in C + + array. Naturally, all containers in the Standard C++ Library define an iterator type, ie, a nested type iterator that represent their respective pointer-like type. Naturalmente, tutti i contenitori in Standard C + + Library definire un tipo Iterator, vale a dire, un tipo Iterator nidificate che rappresentano i loro rispettivi puntatore-come tipo.

Iterator Categories Iterators fall into categories. Iterator Categorie Iterators divisi in categorie. This is because different algorithms impose different requirements on an iterator they use. Questo è dovuto al fatto che diversi algoritmi di imporre diversi requisiti su un Iterator che utilizzano. For example, the find() algorithms needs an iterator that can be advanced by incrementing it, whereas the reverse() algorithm needs an iterator that can be decremented as well, etc. Ultimately, there are five categories of iterators in STL and Standard C++ Library: Ad esempio, il trovare () algoritmi bisogno di un Iterator che può essere avanzata da crescente, mentre l'inverso () algoritmo ha bisogno di un Iterator che può essere decrementato e, ecc In definitiva, ci sono cinque categorie di iterators in STL e Standard C + + Biblioteca:

  • input iterators input iterators
  • output iterators output iterators
  • forward iterators avanti iterators
  • bidirectional iterators bidirezionale iterators
  • random access iterators ad accesso casuale iterators

An iterator category is an abstraction. Iterator una categoria è un'astrazione. It represents a set of requirements to an iterator. Essa rappresenta una serie di requisiti a un Iterator.


STL STL

The S tandard T emplate L ibrary is a new C++ library that provides a set of easily composable C++ container classes and generic algorithms (template functions). S tandard T emplate L ibrary è un nuovo C + + libreria che fornisce una serie di facilmente componibili C + + classi contenitore e algoritmi generici (modello funzioni).

The container classes include vectors, lists, deques, sets, multisets, maps, multimaps, stacks, queues and priority queues. Il contenitore classi comprendono vettori, liste, deques, stabilisce, multisets, mappe, multimaps, pile, code e code di priorità.

The generic algorithms include a broad range of fundamental algorithms for the most common kinds of data manipulations, such as searching, sorting, merging, copying, and transforming. Il generico algoritmi includono una vasta gamma di algoritmi fondamentali per i più comuni tipi di dati manipolazioni, come ad esempio la ricerca, selezione, fusione, la copia, e la trasformazione.

At its July 1994 meeting, the ANSI/ISO C++ Standards Committee voted to adopt STL as part of the standard C++ library. In occasione della sua riunione luglio 1994, ANSI / ISO C + + Standards Committee ha deliberato di adottare STL come parte dello standard C + + biblioteca. The STL proposal to the committee by Alex Stepanov and Meng Lee of Hewlett-Packard Labs was based on research on generic programming and generic software libraries that Stepanov, Lee, and David Musser have been working on for several years, in Scheme, Ada, and C++. La STL proposta al comitato di Alex Stepanov e Meng Lee di Hewlett-Packard Labs è stato basato sulla ricerca in materia di programmazione e generico generico librerie software che Stepanov, Lee, e David Musser hanno lavorato per diversi anni, nel sistema, Ada, e C + +.


String Stringa

C++ supports characters strings two ways. C + + supporta stringhe di caratteri in due modi. The first is as a null-terminated character array. Il primo è come un nulla-array di caratteri terminato. This is sometimes referred to as a C string. Questo è talvolta indicato come un C stringa. The second way is as a class object of type basic_string. Il secondo modo è come una classe oggetto di tipo basic_string. The basic_string class is essentially a container. Basic_string la classe è essenzialmente un contenitore. this means that iterators and the STL algorithms can operate on string. ciò significa che iterators e le STL algoritmi in grado di operare su stringa. However, string has additional capabilities. Tuttavia, ha stringa di ulteriori capacità.

C++ string recognizes operators: <, <=, >, >=, ==, !=, =, += . C + + stringa riconosce operatori: <, <=,>,> =, ==,! =, =, + =.
When you use template functions, or classes you don't need to write addition function with strcpy, ctrcmp of ctrcat... Quando si utilizza modello funzioni, classi o non avete bisogno di scrivere Inoltre con funzione strcpy, ctrcmp di ctrcat ... In this case C++ string works like any of built-in data type. In questo caso il C + + stringa funziona come una qualsiasi delle built-in del tipo di dati.

String functions .C++ string, like any of container classes, has its own public functions, that add a lot of flexibility for manipulation of C++ string data type. Serie di funzioni. C + + stringa, come ogni contenitore di classi, ha il suo funzioni pubbliche, che aggiungono un sacco di flessibilità per la manipolazione di C + + stringa tipo di dati.

Overflowing. Traboccante.
You don't need to think about overflowing or null-terminating character. Non devi pensare a nulla o traboccante-chiude carattere. C++ string allows use sequence of characters as long as allows ability of your OS. C + + stringa permette l'uso sequenza di caratteri fintanto che permette capacità del vostro sistema operativo.


More C Programming Examples and Help C più esempi di programmazione e Aiuto

Stdio Functions Funzioni stdio


String Functions Funzioni stringa

Time Functions Funzioni di tempo

Technorati Tags: Technorati: , , , , , , , ,

Popularity: 38% [ Popularity: 38% [ ? ? ] ]

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages. Condividere e beneficiano: Queste icone link a Social Bookmarking siti in cui i lettori possono condividere e scoprire nuove pagine web.
  • blogmarks
  • del.icio.us
  • Furl
  • Reddit
  • Shadows
  • YahooMyWeb
  • StumbleUpon
  • Digg
Related Posts: Posti connessi:
  • MySQL Documentation and Reference Manuals Mysql documentazione e manuali di riferimento
  • Free PC Intro book PC libero intro libro
  • C# Fast and Easy Web Development C # facile e veloce sviluppo web
  • Linux and Unix Workshop Tutorials, Guides, and Manuals Linux e Unix Workshop Tutorial, guide, manuali e
  • dotNet, Access, SQL Server and Database Design Tutorials dotnet, Access, SQL Server e database disegnati Tutorial

  • Filed under: Archiviato in: Best New Free Computer IT Training Tutorial Resources Miglior nuovo computer è libero di formazione tutorial risorse — computer_teacher @ 12:51 am -- Computer_teacher @ 12:51 am

    No Comments Nessun Commento »

    No comments yet. Non ci sono ancora commenti.

    RSS feed for comments on this post. Feed RSS per i commenti a questo post.

    Leave a comment Lascia un commento

    You must be Devi essere logged in effettuato l'accesso to post a comment. per postare un commento.



    Powered by Powered by WordPress WordPress