Search:

Type: Posts; User: C++Noobie

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    6,373

    if statement in while loop

    Hello, i am wondering if there is a better way to have this same thing happen with out butchering this code:



    //Race
    cout << "Race choices: human, elf\n";
    cout << "Race:...
  2. Replies
    2
    Views
    958

    Im lost... any ideas? please help

    I am just starting C++ so i do not know very much how ever i hope to acomplish a fairly simple program to learn more about C++. Here is the problem:



    #include <cstdlib>
    #include <iostream>
    ...
  3. Replies
    12
    Views
    2,059

    #include #include using...

    #include <cstdlib>
    #include <iostream>

    using namespace std;

    //Data Structure

    struct enemy{
    string name;
    int level;
  4. Replies
    12
    Views
    2,059

    if statement Help!

    I am having trouble with this part of my program,
    the statement seems to be logical but when i compile it will always go to the condition (YOU FAIL) even if i enter "human" as i have below, it never...
Results 1 to 4 of 4