Changes in src/examples/swap.c [90c3b1c:6ba0659]
- File:
-
- 1 edited
-
src/examples/swap.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/examples/swap.c
r90c3b1c r6ba0659 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Mar 2 16:15:11201613 // Update Count : 6 512 // Last Modified On : Wed Feb 17 12:22:12 2016 13 // Update Count : 64 14 14 // 15 15 … … 54 54 55 55 float f1 = 1.5, f2 = 2.5; 56 sout | "float\t\t\t" | f1 | ' ' | f2 | "\t\t swap ";56 sout | "float\t\t\t" | f1 | ' ' | f2 | "\t\t\tswap "; 57 57 swap( &f1, &f2 ); 58 58 sout | '\t' | f1 | ' ' | f2 | endl; 59 59 60 60 double d1 = 1.5, d2 = 2.5; 61 sout | "double\t\t\t" | d1 | ' ' | d2 | "\t\t swap ";61 sout | "double\t\t\t" | d1 | ' ' | d2 | "\t\t\tswap "; 62 62 swap( &d1, &d2 ); 63 63 sout | '\t' | d1 | ' ' | d2 | endl; 64 64 65 65 long double ld1 = 1.5, ld2 = 2.5; 66 sout | "long double\t\t" | ld1 | ' ' | ld2 | "\t\t swap ";66 sout | "long double\t\t" | ld1 | ' ' | ld2 | "\t\t\tswap "; 67 67 swap( &ld1, &ld2 ); 68 68 sout | '\t' | ld1 | ' ' | ld2 | endl;
Note:
See TracChangeset
for help on using the changeset viewer.