Changes in tests/div.cfa [200fcb3:dc8511c]
- File:
-
- 1 edited
-
tests/div.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/div.cfa
r200fcb3 rdc8511c 10 10 // Created On : Tue Aug 8 16:28:43 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Dec 4 21:35:01201813 // Update Count : 2012 // Last Modified On : Tue Nov 6 17:53:10 2018 13 // Update Count : 19 14 14 // 15 15 16 16 #include <fstream.hfa> 17 #include <stdlib.hfa> // div17 #include <stdlib.hfa> // div 18 18 19 19 struct T { int i; }; … … 23 23 24 24 int main( void ) { 25 sout | "div" | div( 13, 5 ) | div( 13L, 5L ) | div( 13LL, 5LL ) ;25 sout | "div" | div( 13, 5 ) | div( 13L, 5L ) | div( 13LL, 5LL ) | endl; 26 26 short s1 = 13, s2 = 5; 27 sout | "div" | div( s1, s2 ) ;27 sout | "div" | div( s1, s2 ) | endl; 28 28 T t1 = { 13 }, t2 = { 5 }; 29 sout | "div" | div( t1, t2 ) ;// polymorphic div29 sout | "div" | div( t1, t2 ) | endl; // polymorphic div 30 30 } // main 31 31
Note:
See TracChangeset
for help on using the changeset viewer.