Changeset 73abe95 for tests/fstream_test.c
- Timestamp:
- Aug 6, 2018, 2:50:03 PM (6 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, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 58b6d1b
- Parents:
- ff593a3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/fstream_test.c
rff593a3 r73abe95 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // fstream_test.c -- 7 // fstream_test.c -- 8 8 // 9 9 // Author : Peter A. Buhr … … 14 14 // 15 15 16 #include <fstream >16 #include <fstream.hfa> 17 17 18 18 int main( void ) { 19 19 int nombre; 20 sout | "Entrez un nombre, s'il vous pla ît:" | endl;20 sout | "Entrez un nombre, s'il vous pla�t:" | endl; 21 21 sin | nombre; 22 sout | "Vous avez entr é" | nombre | endl;22 sout | "Vous avez entr�" | nombre | endl; 23 23 sout | "le nombre" | nombre | "est" 24 | (nombre > 0 ? "positif" : nombre == 0 ? "z éro" : "négatif") | endl;24 | (nombre > 0 ? "positif" : nombre == 0 ? "z�ro" : "n�gatif") | endl; 25 25 26 sout | "Entrez trois nombres, s'il vous pla ît: " | endl;26 sout | "Entrez trois nombres, s'il vous pla�t: " | endl; 27 27 int i, j, k; 28 28 sin | i | j | k; 29 sout | "Vous avez entr é" | "i:" | "" | i | "j:" | "" | j | "k:" | "" | k | endl;29 sout | "Vous avez entr�" | "i:" | "" | i | "j:" | "" | j | "k:" | "" | k | endl; 30 30 } 31 31
Note: See TracChangeset
for help on using the changeset viewer.