This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <cmath> | |
using namespace std; | |
int main(int argc, char** argv) { | |
unsigned long X, sqrtX,iter; | |
vector<long> array; | |
cout<<"Enter Number you want factored: "; | |
cin>>X; | |
cout<<"The factors are as follows:"<<endl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <cwchar> | |
#include <string> | |
#include <map> | |
#include <iostream> | |
#include <vector> | |
// "using" instead of "typedef"s because that's what the cool kids do | |
using env_string_t = std::wstring; | |
using env_char_t = wchar_t; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include "subprocess.hpp" | |
using namespace subprocess; | |
void test_env() | |
{ | |
auto p = Popen( | |
"env_script.cmd", | |
environment{ |