View Single Post
Old 11-28-2006, 12:18 AM   #5 (permalink)
Vormund
 
Monster Techie

Join Date: May 2004

Location: Tucson, AZ, USA

Posts: 1,183

Vormund

Send a message via AIM to Vormund Send a message via MSN to Vormund Send a message via Yahoo to Vormund
Default

Don't know why I didn't see this the first time--this is most likely the problem:

Your comments:

/* '01 Main.cpp' */
/* Variable declarations*\
/* Get the Information *\
/*Show the information*\

Open: /*
Close: */

And since after the variable declaration comment, the comment is never closed--well, there's no program there.

So it should be:
Code:
/* '01 Main.cpp' */
#include <stdafx.h>

main (void)
{
/* Variable declarations*\
unsigned char Age;
long StartEnergy;
char CharacterType;

/* Get the Information */
std::cout << "What is your Character's Age?: ";
std::cin >> Age;
std::cout << "How much start Energy?: ";
std::cin >> Start Energy;
std::cout << " Character Race?: ";
std::cin >> Character Race;

/*Show the information */
std::cout << "Your chacter is " << Age << " years old." << std::endl;
std::cout << "Has " << StartEnergy << " of starting energy." << std::endl;
std::cout << "And its race is " << CharacterType << *.* << std::endl;
return 0;
}
I don't have VS to test, right now. >.>

As well, if there are other syntax errors, now VS should tell you.
Vormund is offline