You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
326 B
C++

8 years ago
#include <iostream>
#include "demo/calculator.h"
int main() {
demo::Calculator calculator;
float result = 0.0;
if (!calculator.Add(1.0, 2.0, &result)) {
std::cerr << "Failed to call web service." << std::endl;
} else {
std::cout << "Add result: " << std::showpoint << result << std::endl;
}
return 0;
}