Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Can't Fix Error in my Program (C++)

Name: Anonymous 2012-11-21 20:34

Hello, I have an error in a program I wrote, and I can't figure out what I did wrong. Could someone please take a look at it for me? It would be much appreciated.

The code was too many lines to post here, so please read it:

http://www.daniweb.com/software-development/cpp/threads/440954/

Name: Anonymous 2012-11-22 2:38

So I ran it all through a couple of reformatting scripts and fixed the compile errors. Check this out.

//              PRINT DECLARATION

void Text::Write() {
    string c;
    cout << "->";
    getline(cin, c);
    getline(cin, c);
    cout << endl;
    cout << endl;
    cout << "---------|\t\t" << c << "\t\t|---------" << endl;
    cout << endl;
    cout << endl;
}


He dedicated one of the features of his program to reading two lines of text, discarding the first, and printing the second with a stupid margin outline effect. Either he's a mad genius or (judging by the path to the file mentioned in the original thread) an employee at a company I want nothing to do with, ever.

Or he's just trying desperately to learn C++, and keeping all his shit in the same file for some reason.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List