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

C++ code style

Name: Anonymous 2010-05-24 12:37

Hi, /prog/.
What is the most beloved syntax style here? KR? BSD? GNU, perhaps?

Name: Anonymous 2010-05-24 13:48

my style.

#include <iostream>
using namespace std;

const char *what = "an anus";

int main( int argc, char *argv[] ) {
    if( argc != 2 ) {
        cout << "usage: " << argv[0] << " [text]" << endl;
        return 0;
    }

    cout << argv[1] << " is " << what << endl;
    return 0;
}

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