#define main sscanf
Lets make a c++ program!
'SteveDeFacto' said:
'Washu' said:
'SteveDeFacto' said:
'Washu' said:
int main() { return 0;
Nope still violates rule #1
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!
#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.
[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
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement