Troy[numbers]'s post recently inspired me to waste about another 30 minutes of my life trying to figure out how to use the VC++ compiler. Well, I actually figured out how to do what I wanted this time! I then read some more of the tutorial I'm learning from, and here are the fruits of my labor (not really).
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int main()
{
cout << "Please tell me how many male and female pets you have that aren't neutered. First the males, then the females\n";
int malen;
int femalen;
cin >> malen >> femalen;
int kidn = (malen*femalen*6);
cout << "When all your current pets are done reproducing, you will have " << kidn << " pets\n";
cout << "When you wish to end the program, hit any key and enter. Why? 'Cause I fail at C++ right now =(";
cin >> malen;
return 0;
The above assumes that your pets are all of the same species and that incest and adultery are common occurrences
So far, I find the most difficult parts of C++ to be remembering the semicolon at the end of each line, and figuring out which data type to make your variables. By the way, anyone care to explain to me what a wide character is? All the references I found on it just said it was a wide character...
o_O