#include <iostream>

using namespace std;

int main()
{
int carrots;

carrots = 25;
cout << "I have " << carrots << " carrots." << endl;

carrots = carrots - 1;
cout << "Crunch crunch, i now have " << carrots << " carrots." << endl;

return 0;
}

When ii compile and run this code with microsoft visual c++ it opens in command prompt all the time with anything. Ive seen applications in C++ in a fully user friendly format like a VB app.. WTH is it always opening in cmd?

help is mre than appreciated
thanks