Programowanie w systemie UNIX/Cpp: Różnice pomiędzy wersjami
Usunięta treść Dodana treść
Nie podano opisu zmian |
|||
Linia 29: | Linia 29: | ||
==Arbitrary precision== |
==Arbitrary precision== |
||
*GMP <ref>[https://www.gidforums.com/t-19665.html Creating large arrays with GMP]</ref> |
|||
* MPFR |
* MPFR |
||
** MPFR C++ <ref>[http://www.holoborodko.com/pavel/mpfr/ MPFR C++ by Pavel Holoborodko]</ref> |
** MPFR C++ <ref>[http://www.holoborodko.com/pavel/mpfr/ MPFR C++ by Pavel Holoborodko]</ref> |
||
=References= |
=References= |
Wersja z 20:18, 14 lut 2015
Przykłady
Przykładowe program w C++ :
Hello world
#include <iostream>
int main () {
std::cout << "Hello, world!\n";
return 0;
}
Zapisujemy jako hello.cpp
Kompilujemy :
g++ -Wall hello.cpp
i uruchomiamy :
./a.out