http://www.brainhz.com/underhanded/
Anyone going to enter? I know I'm not - wouldn't have a clue where to start to be honest.
http://www.brainhz.com/underhanded/
Anyone going to enter? I know I'm not - wouldn't have a clue where to start to be honest.
Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.
- Mike McShaffry
> wouldn't have a clue where to start to be honest.
<tease>I could make a suggestion....</tease>
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.
- Mike McShaffry
A. Choose a platform that uses a ram-drive for file storage.
B. Choose a platform that uses punch cards for file storage.
C. Write a few gigabytes of temporary data to file.
Wont get the extra points for "genuinely OS-dependent, rather than hardware-dependent."Originally Posted by anonytmouse
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Have to agree, though it's pretty funny!Originally Posted by Bubba
lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu
Now I've seen everything......
Code:#include <stdio.h> void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){ puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9 /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i] ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][ t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}
This reminded me of something I saw in the MSVC express start page. Looks like microsoft are actively encouraging the creation of malware
http://msdn.microsoft.com/coding4fun/april-fools/
Those are all things that would be caught easily.A. Choose a platform that uses a ram-drive for file storage.
B. Choose a platform that uses punch cards for file storage.
C. Write a few gigabytes of temporary data to file.