![]() |
Unmanageable C++ code
// Example #1: Compilable pseudocode
#include <iostream.h> #include <stdlib.h> #define twelve 12 #define onethousantthreehundredandthirtyseven 1337 #define semicolon ; #define first_off struct ___{ #define do_this int _ semicolon int __ semicolon #define do_that } semicolon #define then void main(){ #define do_more ___ test={twelve,onethousantthreehundredandthirtyseven } semicolon test._+=5 semicolon cout << test._ << endl semicolon #define and_more for(semicolon semicolon){ cout << ++test.__ << endl semicolon #define the } #define end } first_off do_this do_that then do_more and_more the end |
// Example 2: Tricky variable names and screwed up color coding
#include <iostream.h> #include <fstream.h> void main(){ int _,__,___,____; /*cin >> __;*//**//*/*//*/*/ __=1403;__-=1337; ofstream _____; _____.open("C:\\__"); for(_=__;_;((__--&&_--)&&___--)&&____--) _____ << /*/*//**/(char)/*(const double)(const float)*//**/(const int)(((_&&__&___&____))); _____.close(); } |
Quote:
Also, I think you need to define more libraries, but I really don't know. |
When I try to compile it them on the College's omega server, It's not seeing any libraries "iostream.h" or "fstream.h."
Why's that? |
This is the first one, as far as I can figure out (only 1 year of C++, like 3 years ago).
Code:
... So would the output be: 17 1338 1339 1340 1341 1342 1343 1344 (and so on) I'm not quite sure. I think the ++test.B would increment before it prints out on screen. Unless I screwed it up and it doesn't compile.. Hmm.. seems I need more C++ classes! |
WTF CHRUSER YOUR PROGRAMMIN STYLE TEH SUX!!!!!!!
you putn int = x,x,x,x;? WHat kind of nigger programmer are you man? you have to do it int x; int x; etc int |
No, you line up "int" the way he did it. I saves time, looks neater, and much faster to type out.
|
problably =(...im force to do it in the waterfall style =*(
|
Quote:
#include <iostream.h> #define sp <<endl<< const double main(){ int a,b,c,d; a=b=c=d=123; cout << a sp b sp c sp d << endl; return 0; } |
I tried to learn some C++ last year, I sort of gave up on it, I was getting good with that and HTML, I quit C++ but went on with HTML, I need to start back up with it....
|
Quote:
|
All times are GMT -6. The time now is 06:06 PM. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.