Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > Science and Art > Tech Help

 
 
Thread Tools Display Modes

 
Post Unmanageable C++ code
Reply
Posted 2003-10-14, 09:33 AM
// 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
"Stephen Wolfram is the creator of Mathematica and is widely regarded as the most important innovator in scientific and technical computing today." - Stephen Wolfram
Old
Profile PM WWW Search
Chruser shouldn't have fed itChruser shouldn't have fed itChruser shouldn't have fed itChruser shouldn't have fed itChruser shouldn't have fed it
 
 
Chruser
 



 
Reply
Posted 2003-10-14, 09:35 AM in reply to Chruser's post "Unmanageable C++ code"
// 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();

}
"Stephen Wolfram is the creator of Mathematica and is widely regarded as the most important innovator in scientific and technical computing today." - Stephen Wolfram
Old
Profile PM WWW Search
Chruser shouldn't have fed itChruser shouldn't have fed itChruser shouldn't have fed itChruser shouldn't have fed itChruser shouldn't have fed it
 
 
Chruser
 



 
Reply
Posted 2003-10-14, 09:44 AM in reply to Chruser's post "Unmanageable C++ code"
Chruser said:
/*cin >> __;*//**//*/*//*/*/


_____ << /*/*//**/(char)/*(const double)(const float)*//**/(const int)(((_&&__&___&____)));
Well, I know very little about C++, but I'm a little confused with these lines... What are you trying to accomplish there? Why are you putting your "cin" as a comment?

Also, I think you need to define more libraries, but I really don't know.
Old
Profile PM WWW Search
Titusfied seldom sees opportunities until they cease to beTitusfied seldom sees opportunities until they cease to beTitusfied seldom sees opportunities until they cease to beTitusfied seldom sees opportunities until they cease to be
 
 
Titusfied
 



 
Reply
Posted 2003-10-14, 11:50 AM in reply to Chruser's post "Unmanageable C++ code"
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?
D3V said:
This message is hidden because D3V is on your ignore list.
What is it they say about silence being golden?
Old
Profile PM WWW Search
Medieval Bob enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzMedieval Bob enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
Medieval Bob
 



 
Reply
Posted 2003-10-14, 05:00 PM in reply to Chruser's post "Unmanageable C++ code"
This is the first one, as far as I can figure out (only 1 year of C++, like 3 years ago).


Code:


#include <iostream.h>
#include <stdlib.h>

struct WierdVarType {int A; int B;};

void main()
{


   WierdVarType test={12,1337}; 
   test.A += 5; 
   cout << test.A << endl;


   for(;;)  /*Yay for infinite loops*/
      { 
         cout << ++test.B << endl;
      }

}


...

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!
Old
Profile PM WWW Search
BlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzBlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
BlueCube
 



 
Reply
Posted 2003-10-14, 05:52 PM in reply to Chruser's post "Unmanageable C++ code"
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
Old
Profile PM WWW Search
Hades-Knight is neither ape nor machine; has so far settled for the in-between
 
 
Hades-Knight
 



 
Reply
Posted 2003-10-14, 06:13 PM in reply to Chruser's post "Unmanageable C++ code"
No, you line up "int" the way he did it. I saves time, looks neater, and much faster to type out.
Old
Profile PM WWW Search
Titusfied seldom sees opportunities until they cease to beTitusfied seldom sees opportunities until they cease to beTitusfied seldom sees opportunities until they cease to beTitusfied seldom sees opportunities until they cease to be
 
 
Titusfied
 



 
Reply
Posted 2003-10-14, 06:25 PM in reply to Chruser's post "Unmanageable C++ code"
problably =(...im force to do it in the waterfall style =*(
Old
Profile PM WWW Search
Hades-Knight is neither ape nor machine; has so far settled for the in-between
 
 
Hades-Knight
 



 
Reply
Posted 2003-10-15, 01:13 PM in reply to Chruser's post "Unmanageable C++ code"
Hades-Knight said:
problably =(...im force to do it in the waterfall style =*(
Why do it the "waterfall style" when you can make things stylish? For instance:

#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;
}
"Stephen Wolfram is the creator of Mathematica and is widely regarded as the most important innovator in scientific and technical computing today." - Stephen Wolfram
Old
Profile PM WWW Search
Chruser shouldn't have fed itChruser shouldn't have fed itChruser shouldn't have fed itChruser shouldn't have fed itChruser shouldn't have fed it
 
 
Chruser
 



 
Reply
Posted 2003-10-17, 10:17 AM in reply to Chruser's post "Unmanageable C++ code"
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:
!King_Amazon!: I talked to him while he was getting raped
[quote][16:04] jamer123: GRRR firefox just like quit on me now on internet exploder[quote]
...
[quote=!King_Amazon!]notices he's 3 inches shorter than her son and he's circumcised [quote]
Old
Profile PM WWW Search
D3V is convinced there are no coincidences, only the illusion of coincidencesD3V is convinced there are no coincidences, only the illusion of coincidencesD3V is convinced there are no coincidences, only the illusion of coincidencesD3V is convinced there are no coincidences, only the illusion of coincidencesD3V is convinced there are no coincidences, only the illusion of coincidencesD3V is convinced there are no coincidences, only the illusion of coincidences
 
 
D3V
 



 
Reply
Posted 2003-10-17, 10:31 AM in reply to Chruser's post "Unmanageable C++ code"
Medieval Bob said:
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?
IIRC, these are AP classes: they aren't standard, and they're supposed to help teach C++. Yeah right, like confusing students as to what the bitshift opperator does really helps them, or shielding them from standard C null-terminated strings helps them. IMNSHO, the AP classes are bullshit. You won't have them in the real programming world, so why the fuck do you have to learn to use them to take the advanced placement tests? In my three years as a professional, I have not once benefited from the time I spent learning to use the AP classes.
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 
 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 08:08 AM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.