Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
PTSDeedly Do
Nov 24, 2014

VOID-DOME LOSER 2020


*codes everything in the main*
*works somehow*

Adbot
ADBOT LOVES YOU

Tsinava
Nov 15, 2009

by Ralp
*smokes weed and does ntohing because his paretns are rich alumni and it doesn't matter and he's always going to be btter off than his impoverished scrub roomate*

EightBit
Jan 7, 2006
I spent money on this line of text just to make the "Stupid Newbie" go away.
*no control structures, just goto*
*is windows*

escalator incident
Oct 1, 2005

Sorry for the convenience.
Fun Shoe
I was a C+ C++ instructor for a quarter, AMA

soy
Jul 7, 2003

by Jeffrey of YOSPOS
if op == human being then exit

Inexplicable Humblebrag
Sep 20, 2003

op why

Macichne Leainig
Jul 26, 2012

by VG
haha these threads are my favorite meme lol

1gnoirents
Jun 28, 2014

hello :)
10 LABEL A
20 PRINT "IM GAY"
30 GOTO A


c#

Uncle Enzo
Apr 28, 2008

I always wanted to be a Wizard
jobsprogram

10 print PENUS
20 goto 10

littleorv
Jan 29, 2011

I'm glad my thread started 3 spin off threads

BONGHITZ
Jan 1, 1970

needs bigger boat posted:

I was a C+ C++ instructor for a quarter, AMA

Why only one quarter?

GABA ghoul
Oct 29, 2011

for i in range(10):
cout << "faaaaaaaaaaaaaart"






return 0

Endman
May 18, 2010

That is not dead which can eternal lie, And with strange aeons even anime may die


Why is cout being bit-shifted Hello, world! times to the left???

Dougie McdDouger
Nov 19, 2014

I do like muffins , but I tango all night long.
What university is this? UoL are a bunch of stoners, we do this poo poo all the time.

nnnotime
Sep 30, 2001

Hesitate, and you will be lost.
#include <stdio.h>
#define o stdout
#define p fputs
int main(_){int*I=&_,_I=2113,l1=3271;_=14557;_I*=503;_<<=3;_*='=';_I<<=0==0;_I=7*'Y'*853<<2;
p(I,o);I=&_I;p(I,o);I=&_;

_+= l1*11*11;

_I += 0xF5<<8;p(I,o);I=&_I;p(I,o);}

Supposedly this will output, Hello World!

Endman
May 18, 2010

That is not dead which can eternal lie, And with strange aeons even anime may die


nnnotime posted:

#include <stdio.h>
#define o stdout
#define p fputs
int main(_){int*I=&_,_I=2113,l1=3271;_=14557;_I*=503;_<<=3;_*='=';_I<<=0==0;_I=7*'Y'*853<<2;
p(I,o);I=&_I;p(I,o);I=&_;

_+= l1*11*11;

_I += 0xF5<<8;p(I,o);I=&_I;p(I,o);}

Supposedly this will output, Hello World!

code:
hello.cpp:4:10: error: unknown type name '_'
int main(_){int*I=&_,_I=2113,l1=3271;_=14557;_I*=503;_<<=3;_*='=';_I<<=0...
         ^
hello.cpp:4:20: error: use of undeclared identifier '_'
int main(_){int*I=&_,_I=2113,l1=3271;_=14557;_I*=503;_<<=3;_*='=';_I<<=0...
                   ^
hello.cpp:4:38: error: use of undeclared identifier '_'
int main(_){int*I=&_,_I=2113,l1=3271;_=14557;_I*=503;_<<=3;_*='=';_I<<=0...
                                     ^
hello.cpp:4:54: error: use of undeclared identifier '_'
int main(_){int*I=&_,_I=2113,l1=3271;_=14557;_I*=503;_<<=3;_*='=';_I<<=0...
                                                     ^
hello.cpp:4:60: error: use of undeclared identifier '_'
int main(_){int*I=&_,_I=2113,l1=3271;_=14557;_I*=503;_<<=3;_*='=';_I<<=0...
                                                           ^
hello.cpp:5:1: error: no matching function for call to 'fputs'
p(I,o);I=&_I;p(I,o);I=&_;
^
hello.cpp:3:11: note: expanded from macro 'p'
#define p fputs
          ^~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stdio.h:246:6: note: 
      candidate function not viable: no known conversion from 'int *' to
      'const char *' for 1st argument
int      fputs(const char * __restrict, FILE * __restrict) __DARWIN_ALIA...
         ^
hello.cpp:5:14: error: no matching function for call to 'fputs'
p(I,o);I=&_I;p(I,o);I=&_;
             ^
hello.cpp:3:11: note: expanded from macro 'p'
#define p fputs
          ^~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stdio.h:246:6: note: 
      candidate function not viable: no known conversion from 'int *' to
      'const char *' for 1st argument
int      fputs(const char * __restrict, FILE * __restrict) __DARWIN_ALIA...
         ^
hello.cpp:5:24: error: use of undeclared identifier '_'
p(I,o);I=&_I;p(I,o);I=&_;
                       ^
hello.cpp:7:1: error: use of undeclared identifier '_'
_+= l1*11*11;
^
hello.cpp:9:15: error: no matching function for call to 'fputs'
_I += 0xF5<<8;p(I,o);I=&_I;p(I,o);}
              ^
hello.cpp:3:11: note: expanded from macro 'p'
#define p fputs
          ^~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stdio.h:246:6: note: 
      candidate function not viable: no known conversion from 'int *' to
      'const char *' for 1st argument
int      fputs(const char * __restrict, FILE * __restrict) __DARWIN_ALIA...
         ^
hello.cpp:9:28: error: no matching function for call to 'fputs'
_I += 0xF5<<8;p(I,o);I=&_I;p(I,o);}
                           ^
hello.cpp:3:11: note: expanded from macro 'p'
#define p fputs
          ^~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stdio.h:246:6: note: 
      candidate function not viable: no known conversion from 'int *' to
      'const char *' for 1st argument
int      fputs(const char * __restrict, FILE * __restrict) __DARWIN_ALIA...
         ^
11 errors generated.
:stare:

nnnotime
Sep 30, 2001

Hesitate, and you will be lost.
My apologies, I guess it's not valid. I'll write it up in a JIRA ticket and bounce it back to the devs. Charge code is GMTOW-23S5-LTC01

potee
Jul 23, 2007

Or, you know.

Not fine.

UV_Catastrophe
Dec 29, 2008

Of all the words of mice and men, the saddest are,

"It might have been."
Pillbug

:staredog:

NadaTooma
Aug 24, 2004

The good thing is that everyone around you has more critical failures in combat, the bad thing is - so do you!
*uses printf calls everywhere*

*uses non-const void pointers*

:smug:

Han Solomon
Mar 7, 2015

BOUND
AND
GAGGED
*cums all over everything i own*

Orkin Mang
Nov 1, 2007

by FactsAreUseless
*stains office chair*

Adbot
ADBOT LOVES YOU

Edgar
Sep 9, 2005

Oh my heck!
Oh heavens!
Oh my lord!
OH Sweet meats!
Wedge Regret
gently caress you, I'm using magic numbers.

  • Locked thread