Lets make a c++ program!

Started by
62 comments, last by sprite_hound 13 years, 2 months ago
#define main sscanf
Advertisement

'SteveDeFacto' said:

'Washu' said:

'SteveDeFacto' said:

'Washu' said:


int main() { return 0;




Nope still violates rule #1 tongue.gif

Wrong. You changed the rules, however as the implementation was in place before the rules changed it is therefore still correct.


Fine then I propose a revision! cool.gif

#include <stdio.h>


int main() ??< return 0; ??>


error C2143: syntax error : missing ';' before '?'
error C2059: syntax error : '?'
[font="Arial"]Not a very good C++ compiler if it doesn't support trigraphs. Unless you're claiming that you're also going to be using a draft C++0x compiler too? Alternatively add

/Zc:trigraphs to make it more compliant with the current standard.

In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.


[font="Arial"]Not a very good C++ compiler if it doesn't support trigraphs. Unless you're claiming that you're also going to be using a draft C++0x compiler too? Alternatively add [size="4"]/Zc:trigraphs to make it more compliant with the current standard.


[font="Arial,"]Visual Studio 2010 has trigraph support turned off by default.
[font="Arial,"][size="4"]modified rule #1 (no trigraphs)
[font="Arial,"]
[font="Arial,"][size="4"]also I propose a revision:
[font="Arial,"][size=2]
[font="Arial,"][size="4"][font="arial, verdana, tahoma, sans-serif"]

int main() ??< return 0; ??>

[font="Arial,"][size="4"][font="arial, verdana, tahoma, sans-serif"] [font="arial, verdana, tahoma, sans-serif"]// =P

Here is what we have so far:



#include <windows.h>
#include <stdio.h>
// =P
auto f(int x, int (*y)(double)) -> double {
#define main sscanf

'Washu' said:

[font="Arial"]Not a very good C++ compiler if it doesn't support trigraphs. Unless you're claiming that you're also going to be using a draft C++0x compiler too? Alternatively add [size="4"]/Zc:trigraphs to make it more compliant with the current standard.


[font="Arial,"]Visual Studio 2010 has trigraph support turned off by default.
[font="Arial,"][size="4"]modified rule #1 (no trigraphs)
[font="Arial,"]
[font="Arial,"][size="4"]also I propose a revision:
[font="Arial,"] [font="Arial,"][size="4"][font="arial, verdana, tahoma, sans-serif"]

int main() ??< return 0; ??>

[font="Arial,"][size="4"][font="arial, verdana, tahoma, sans-serif"] [font="arial, verdana, tahoma, sans-serif"]// =P



Accepted with one additional revision...

int main() <% return 0; %> // =P

In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.


Accepted with one additional revision...

int main() <% return 0; %> // =P


What are those even called?!

'Washu' said:

Accepted with one additional revision…

int main() <% return 0; %> // =P


What are those even called?!

Digraphs.

In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.


'SteveDeFacto' said:

'Washu' said:

Accepted with one additional revision…

int main() <% return 0; %> // =P


What are those even called?!

Digraphs.


Rule #1 modified: &quot;no trigraphs or digraphs.&quot;<br /> Revision not accepted&#33;
return 0;}

This topic is closed to new replies.

Advertisement