Ok When I go to new Project to create a new .cpp file for my programming class What are the steps to make sure I am creating the file in the right place I went
1.File>New Project
2. then there are many options for c++ should I be using Empty Project, AtL, MFC DLL, Windows Forms App, CLR Console, Class Library, Custom Wizard, MAkefile Project, MFC ActiveX, Test Project, or Windows Forms Control Library?
I am lost I have tried doing my own codes and ones straight out of the book like
#include <iostream>
using namespace std;
int main ()
{
const double PI = 3.14159;
// Step 1 : Read in Radius
double radius = 20;
//Step 2: Compute area
double area = radius * radius * PI;
//Step3 Display the area
cout << "The area is ";
cout << area << std::endl;
return 0;
}
and I put it inside the CLR Console App and the dos comand pops up for a second then dispaears when I debug should I be compiling to get it to work? also I tried hitting f 11 and when it popped up the dos screen it was blank and when I went back into visual studio it was on a different screen thanks for the hel p ireally appreciate it
1.File>New Project
2. then there are many options for c++ should I be using Empty Project, AtL, MFC DLL, Windows Forms App, CLR Console, Class Library, Custom Wizard, MAkefile Project, MFC ActiveX, Test Project, or Windows Forms Control Library?
I am lost I have tried doing my own codes and ones straight out of the book like
#include <iostream>
using namespace std;
int main ()
{
const double PI = 3.14159;
// Step 1 : Read in Radius
double radius = 20;
//Step 2: Compute area
double area = radius * radius * PI;
//Step3 Display the area
cout << "The area is ";
cout << area << std::endl;
return 0;
}
and I put it inside the CLR Console App and the dos comand pops up for a second then dispaears when I debug should I be compiling to get it to work? also I tried hitting f 11 and when it popped up the dos screen it was blank and when I went back into visual studio it was on a different screen thanks for the hel p ireally appreciate it