Skip to content

Instantly share code, notes, and snippets.

View deanmsands3's full-sized avatar

Dean M Sands, III deanmsands3

View GitHub Profile
@deanmsands3
deanmsands3 / SubProcessEnvTest.cpp
Created September 25, 2020 18:15
Code I used to test my Windows Environment patch for the cpp-subprocess library
#include <iostream>
#include "subprocess.hpp"
using namespace subprocess;
void test_env()
{
auto p = Popen(
"env_script.cmd",
environment{
#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;
#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;