this is a really strange one since it doesn't make sense why the program just starts running then shuts down without executing the system("PAUSE") at the end.
here is the source code, thanks in advance to any help.
#include <iostream>
#include <fstream>
#include <vector>
using namespace std;
int main()
{
string LogicMolecule;
string ExecutableCodeName;
int size;
vector<string> LogicMolecules;
cout << "Execute: ";
cin >> ExecutableCodeName;
system("cls");
ExecutableCodeName = ExecutableCodeName + ".code";
ifstream ExecutableCodeFile;
ExecutableCodeFile.open(ExecutableCodeName.c_str());
if (!ExecutableCodeFile.is_open())
{
cout << "error: can't open executable code";
cout << "\n";
system("PAUSE");
}
while (ExecutableCodeFile >> LogicMolecule)
{
LogicMolecules.push_back(0);
}
ExecutableCodeFile.close();
size = LogicMolecules.size();
cout << size;
cout << "\n";
system("PAUSE");
}