#include <iostream>
#include <string>
using namespace std;
int subtract(int num1, int num2)
{
return num1-num2;
}
int main()
{
cout << "Input the number to subtract from: ";
int num1;
cin >> num1;
cout << "\nInput the number to subtract from " + std::to_string(num1);
int num2;
cin >> num2;
}
No other posts have helped me at all. All of them just say you have to have C++11 enabled, but I already do.
[Error] 'to_string' is not a member of 'std'
Aucun commentaire:
Enregistrer un commentaire