| 123456789101112131415161718192021222324 |
- // #include "char_test.hpp"
- // #include "process_bar.hpp"
- #include "functions.h"
- int main()
- {
- // test_char();
- // rotate();
- // test_func();
- int num;
- std::cout << "Input a num to check if it's prime num:\n> ";
- std::cin >> num;
- printf(isPrimeNum(num)?"Yes\n":"No\n");
- int a = 3, b = 87;
- std::cout << "A is " << a << " and B is " << b << std::endl;
- swap(a, b);
- std::cout << "A is " << a << " and B is " << b << std::endl;
- char c = 'c', d = 'd';
- std::cout << "C is " << c << " and D is " << d << std::endl;
- swap(c, d);
- std::cout << "C is " << c << " and B is " << d << std::endl;
- return 0;
- }
|