Programowanie w systemie UNIX/FLINT: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
Linia 53:
 
==Pierwszy program==
 
 
<source lang=c>
/*
gcc f.c -I/usr/local/include -I/usr/local/include -L/usr/local/lib -L/usr/local/lib -lflint -lmpfr -lgmp -lm -lpthread -Wall
*/
#include <gmp.h>
#include <mpfr.h>
#include <flint/flint.h>
int main ( void )
{
/* other variable declarations */
mp_ptr a , b ;
TMP_INIT ;
/* arbitrary code */
TMP_START ; /* we are about to do some allocation */
/* arbitrary code */
a = TMP_ALLOC (32* sizeof ( mp_limb_t ) );
b = TMP_ALLOC (64* sizeof ( mp_limb_t ) );
/* arbitrary code */
TMP_END ; /* cleans up a and b */
/* arbitrary code */
 
return 0;
}
</source>
 
=Źródła=
<references/>