Error

Hi I am trying to run this piece of code but whenever I do it I always receive this error message: "The program can't start because MSVCP120.dll is missing from your computer. Try reinstalling the program to fix this problem."

Right now I am currently using visual studio 2013.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
 #include <iostream>
#include <string>
#include <ctime>
using namespace std; 

int main()
{
	int start = time(0); 
	string run = "functionA.exe " + to_string(1000); 
	system(run.c_str()); 
	int finish = time(0); 
	cout << "elapsed time is " << finish - start << endl; 
	return 0; 
}
-> "Try reinstalling the program to fix this problem."

As an aside, you should be using the time_t variable type to store time data, not an int.
Topic archived. No new replies allowed.