My omnium-gatherom of scripts and source code.
at main 16 lines 387 B view raw
1#include <iostream> 2#include <string> 3 4int main(int argc, const char **argv) { 5 if (argc == 3) { 6 const long double subt1 = std::stold(argv[1]); 7 const long double subt2 = std::stold(argv[2]); 8 std::cout << subt1 - subt2 << std::endl; 9 } else { 10 std::cout << "subt: Please provide two decimal-number arguments." 11 << std::endl; 12 return 1; 13 } 14 15 return 0; 16}