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

C++

Name: Anonymous 2008-02-02 12:11

Hi /prog/

return 0; or not? \n or endl?

#include <iostream>
using namespace std;
int main()
{
    cout << "Hello World!" << endl;
    return 0;
}

#include <iostream>
using namespace std;
int main()
{
    cout << "Hello World!\n";
}

Name: Anonymous 2008-02-02 21:56

>>8
no, no it doesn't.


#define y(a, b) ((a)+(b)) /* adds a and b */
#define x y

x(1, 2); /* error */

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