Pure Programmer
Blue Matrix


Cluster Map

Project: Total Filter (Floating Point)

Write a filter program that accepts text representations of floating point values, one per line, and then computes and prints the total. The program should print an error to STDERR if a line of input can't be parsed as a floating point value.

Output
$ swiftc TotalFilterFP.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation) $ swiftc TotalFilterFP.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation) $ swiftc TotalFilterFP.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation)

Solution