View Single Post
Yersinia Pestis
Jul13-07, 01:11 AM
P: 15
Well, I've finished the tutorial. Again, great material dduardo.

But the open goal at the end seems a bit steep. A text adventure? With out object-orientation? But, I guess it's a challenge.

Except i ran into a major hurdle. Text inputs. This code:
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <cmath>

using namespace std;

int main(int argc, char *argv[])
    char inp[256];
    cin >> inp ;
    cout << inp << endl;
    return EXIT_SUCCESS;
Only seems to grab input up to the first space. How can I get the whole string that is entered?

Also, did the other parts to the tutorial get thrown in the bin? If so, is there anywhere I can look for the higher levels of C++ programming?