- Timestamp:
- Aug 24, 2017, 3:08:38 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 3eab308c
- Parents:
- a4d9b77
- Location:
- src
- Files:
-
- 3 added
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/gmp
ra4d9b77 r1ae39f6e 10 10 // Created On : Tue Apr 19 08:43:43 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jul 7 09:33:20201713 // Update Count : 1 512 // Last Modified On : Thu Aug 24 09:24:51 2017 13 // Update Count : 16 14 14 // 15 15 … … 252 252 // I/O 253 253 static inline forall( dtype istype | istream( istype ) ) 254 istype * ?|?( istype * is, Int *mp ) {255 gmp_scanf( "%Zd", mp );254 istype * ?|?( istype * is, Int & mp ) { 255 gmp_scanf( "%Zd", &mp ); 256 256 return is; 257 257 } // ?|? -
src/tests/.expect/gmp.txt
ra4d9b77 r1ae39f6e 27 27 16666666666666666666, 2 16666666666666666666, 2 28 28 x:16666666666666666666 y:2 29 30 12345678901234567890123456789 12345678901234567890123456789 12345678901234567890123456789 29 31 30 32 Fibonacci Numbers -
src/tests/fstream_test.c
ra4d9b77 r1ae39f6e 7 7 // fstream_test.c -- 8 8 // 9 // Author : Richard C. Bilson9 // Author : Peter A. Buhr 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 2 15:25:54 201613 // Update Count : 6 112 // Last Modified On : Thu Aug 24 11:30:26 2017 13 // Update Count : 65 14 14 // 15 15 … … 19 19 int nombre; 20 20 sout | "Entrez un nombre, s'il vous plaît:" | endl; 21 sin | &nombre; 22 sout | "Vous avez entré" | nombre | "stocké à l'adresse" | &nombre | endl; 23 sout | "nombre" | nombre | "est" 24 | (nombre > 0 ? "plus grand que" : nombre == 0 ? "égal à" : "moins de") 25 | "zéro" | endl; 21 sin | nombre; 22 sout | "Vous avez entré" | nombre | endl; 23 sout | "le nombre" | nombre | "est" 24 | (nombre > 0 ? "positif" : nombre == 0 ? "zéro" : "négatif") | endl; 26 25 27 26 sout | "Entrez trois nombres, s'il vous plaît: " | endl; 28 27 int i, j, k; 29 sin | &i | &j | &k;28 sin | i | j | k; 30 29 sout | "Vous avez entré" | "i:" | "" | i | "j:" | "" | j | "k:" | "" | k | endl; 31 30 } -
src/tests/gmp.c
ra4d9b77 r1ae39f6e 10 10 // Created On : Tue Apr 19 08:55:51 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jul 13 16:35:01201713 // Update Count : 54 112 // Last Modified On : Thu Aug 24 09:33:26 2017 13 // Update Count : 543 14 14 // 15 15 … … 70 70 sout | endl; 71 71 72 sin | x | y | z; 73 sout | x | y | z | endl; 74 75 sout | endl; 76 72 77 sout | "Fibonacci Numbers" | endl; 73 78 Int fn, fn1, fn2;
Note: See TracChangeset
for help on using the changeset viewer.