Exemple #1
0
// Main method to begin inputing and executing code. 
int main (int argc, char *argv[]) 
{
	Simpletron comp = Simpletron();
	
	comp.enterSML();
	comp.execute();
	
	system("Pause");
}
// Main function, will cycle through
int main()
{
	Simpletron myComputer; // Creation of Simpletron Computer Object.

	printMessage(); // Print introduction message.
	myComputer.loadMemory(); // Load memory from file.
	myComputer.execute(); // Execute file commands found within myComputer memory.
	return 0;
}