[Help]2nd small c++ project
ok so this is the code i learned form a vc++ book ;
my problem is , it executes just fine but everytime i open it , it closes after like 1 second . does anyone know how to fix that ?
Code:
#include "stdafx.h"
#include <iostream>
using namespace std;
using namespace System;
int main()
{
int length;
length = 7;
cout << "The length is ";
cout << length;
return 0;
}

