View Single Post
Old 11-26-2006, 12:28 PM   #1 (permalink)
mrserv0n
 
Newb Techie

Join Date: Jun 2005

Posts: 35

mrserv0n

Send a message via AIM to mrserv0n
Default Help With C++ Very Basic

Hey I am doing this tutorial for a program for class, I know nothing of C++ so bear with me.

This project is set to create console application.

Here is the 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;
}


Ok now whenever I go to Debug or Run it it just says "filename.exe not found" Well how do I get to preview my little text program? or run it period for that matter.
mrserv0n is offline