ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
User:Renegade: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
My favorite little program as of now, created during my attempts to learn C++: | |||
durch0test.exe: | |||
<pre>// Div by zero test | |||
#include <iostream> | |||
using namespace std; | |||
int main() | |||
{ | |||
int one,zero; | |||
one = 1; | |||
zero = 0; | |||
cout << one / zero; | |||
return 0; | |||
}</pre> |
Revision as of 00:44, 28 December 2005
My favorite little program as of now, created during my attempts to learn C++:
durch0test.exe:
// Div by zero test #include <iostream> using namespace std; int main() { int one,zero; one = 1; zero = 0; cout << one / zero; return 0; }