centralized performance resources
This commit is contained in:
commit
50b15a1522
63 changed files with 328466 additions and 0 deletions
18
perf-cpp/scripts/chapter-1.cc
Normal file
18
perf-cpp/scripts/chapter-1.cc
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
std::cout << "Enter a number: \n";
|
||||
|
||||
int n;
|
||||
std::cin >> n;
|
||||
|
||||
int m;
|
||||
|
||||
std::cout << "Enter another number: \n";
|
||||
|
||||
std::cin >> m;
|
||||
|
||||
std::cout << "Diff: " << n - m << "; Sum: " << n + m << '\n';
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue