N
Norene Kemp
Guest
I have been using system("pause"); to pause command prompt for a while and all of a sudden the system("pause"); is not working anymore
I am running Visual Studio Community 2017 - 15.6.4
Windows 10 Education
64-bit OS
Sample code:
#include <iostream>
using namespace std;
int main() {
//set constant
const double channelValue = 17.99;
//create variables
int channels;
double cost;
//input amount of channels
cout << "Please enter the amount of channels: ";
cin >> channels;
cout << endl;
//calculate the cost of the channels
cost = channels * channelValue;
//display the cost of the channels
cout << "The cost of all your channels is $" << cost << endl;
//end
system("pause");
return 0;
}
Continue reading...
I am running Visual Studio Community 2017 - 15.6.4
Windows 10 Education
64-bit OS
Sample code:
#include <iostream>
using namespace std;
int main() {
//set constant
const double channelValue = 17.99;
//create variables
int channels;
double cost;
//input amount of channels
cout << "Please enter the amount of channels: ";
cin >> channels;
cout << endl;
//calculate the cost of the channels
cost = channels * channelValue;
//display the cost of the channels
cout << "The cost of all your channels is $" << cost << endl;
//end
system("pause");
return 0;
}
Continue reading...