Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

My awesome C++ triangle

Name: GOD_HATES_THE_JEWS 2012-02-18 10:49

//Homework 2, question 5

#include <iostream>
using namespace std;

int main(void)
{
 int n;
 int r, c;

 cout << "Enter a number: ";
 cin >> n;
 
 n = 2 * n + 2;
 
 for (r = 1; r <=n; r++, cout << endl)
     for (c = 1; c <=n; c++)
         cout << (r==1 || r==n || c==1 || c==n
              || r >= c || (r+c < n+1) ? ' ' : '*');

 return 0;  
}

Name: Anonymous 2012-02-20 21:10

2012
undefined behaviour
toy program
flame war: 32 posts

Oh kids, you're funny.

Name: Anonymous 2012-02-20 21:12

>>79
but it is ONE of the errors.


The fact that you also think programmers can not be programmers without knowing C or all of it's shitty undefined behavior just makes you look even worse.

You're a troll that can do nothing but switch to the nearest topic that you think you have a chance to win in because you know your shitty ad hominems get you no where in a real argument. So instead you'll find another thing to nitpick at and claim is wrong just to further yourself in an argument that has gone so far off topic from the OP that it's ridiculous

your shit posting is annoying, you're a bad troll that can't function in normal society.

Name: Anonymous 2012-02-20 21:13

>>81
This mental midget, who clearly doesn't have the mental capacity to be a programmer, is not only dumb, but also annoying.

Name: Anonymous 2012-02-20 21:13

>>80
Quick! to the ad hominems! maybe that'll win you the argument, oh wait, it won't.

Name: Anonymous 2012-02-20 21:14

>>81
Leave it to a tripfag to shitpost for 16 straight posts about undefined behavior in a toy program.

Name: Anonymous 2012-02-20 21:18

>>85
You, along with that idiot >>84 still don't see it do ya? Man you are a shitty excuse for a wanna be programmer. I think the both of you need to take up something a tad bit easier. Say like golf. Because it's pretty clear that programming is either one of you foolholios thing.

Name: Anonymous 2012-02-20 21:19


#include <stdio.h>
int fac(int n)
{
  int *p = &n;
  --p;
  *p = 0;
}

int main(int argc,char *argv[]) {
  printf("check out my undefined behavior levels %d\n",fac(0));
}

Name: Anonymous 2012-02-20 21:21

>>86
wanna be programmer

this is what elitists really think?

You codemonkeys think you're in some kind of special club?

hahahah, enjoy being replaced by some 10 year old in India that's 10 times smarter than you.

Name: Anonymous 2012-02-20 21:21

It's not even undefined behavior!
5.1.2.2.3 Program termination
1 If the return type of the main function is a type compatible with int, a return from the initial call to the main function is equivalent to calling the exit function with the value returned by the main function as its argument;10) reaching the } that terminates the main function returns a value of 0. If the return type is not compatible with int, the termination status returned to the host environment is unspecified.
Look at this part:
reaching the } that terminates the main function returns a value of 0.
Also the line break in the string literal is caused by word wrapping on the text board, not a newline.

Name: Anonymous 2012-02-20 21:22

>>88
It's not my fault you got shafted in the IQ department.

Name: Anonymous 2012-02-20 21:23

>>89
Also the line break in the string literal is caused by word wrapping on the text board, not a newline.

It's not word wrapped on my screen.

What are you, some kind of peasant with 800x600 CRT still?

Name: Anonymous 2012-02-20 21:24

>>89
Someone just got owned.

Name: Anonymous 2012-02-20 21:24

>>92
so edgy look at me i owned you xD

Name: Anonymous 2012-02-20 21:26

>>87
Nice failed attempt to screw up the stack.

Name: Anonymous 2012-02-20 21:28

>>93
Huh? I'm not the one looking like the uneducated idiot in this thread. Perhaps you should give 4chan a rest, and go play WOW. I would give it a rest and write some code, but like, you've clearly demonstrated that you're challenged by the most basic programs.

Name: Anonymous 2012-02-20 21:31

>>95
There you go again with the baseless ad hominems kodak. Not only that but you once again seem to think Programming <=> C, and on top of that, that it's some hard magical powers that only an intelligent1 such as yourself would understand.

[m]
1. mental midget
[m]

Name: Anonymous 2012-02-20 21:34

>>96
This only just one thread. What about you uneducated and idiotic statements on other topics? And in other threads? Man, I swear, your mom must have dropped you on your head as a baby.

Name: Anonymous 2012-02-20 21:39

>>97
Now you're trying to switch the topic again and try and break into other things?

I don't see where you're going with this Kodak, other than a desire to shitpost in more threads to derail them permanently with your shitposting bullshit.

Name: Anonymous 2012-02-20 21:46

>>96
``Menstrual midget'' is a superior insult.

Name: Anonymous 2012-02-20 21:53

Check my dubs

Name: Anonymous 2012-02-20 22:07

>>100
Oh Great Dubs Lord, /prog/ shitposting skills are increasing.

Name: Anonymous 2012-02-21 11:02

>>98
You don't see a lot of things. This is why you are a nowhere bitch. Now shut the fuck up and go scrub another toilet.

Name: Anonymous 2012-02-21 11:08

>>102
Oh look, more ad hominems from kodak in an attempt to win the argument still.


It's funny how such a failure of a troll you're that you can only sit there and resort to cheap ad hominems

Name: Anonymous 2012-02-21 11:30

>>103
You just can't accept that fact that you suck dick as a programmer. Go take up something that requires a little less mental power. Like say, scrubbing a toilet.

Name: Anonymous 2012-02-21 11:30

>>104
hahaha oh god your joke is so funny I can't stop farting

Name: Anonymous 2012-02-21 11:41

>>105
Eh? Tell me again you can't locate the error. Tell me again why you thought 'return' was an error. Tell me again why you don't work as a programmer. Tell me again why are still a virgin.

Name: Anonymous 2012-02-21 11:42

>>104
man I should make a bot that just sits on /prog/ all day and responds to your shitty ad hominems.

What bothers me the most is that you claim to be some professional enterprise java programmer yet all you do is sit on /prog/ spouting ad hominems all day long. Sounds like someone is lying.



sssssyddddddddddddddhhhhdddddddddddddddddddddhysssso+++yhhhhddyssddddddddhhyddddddhdddddddddddddhdhhyhhhhhdsoyhdhhhhyoooooooo
sssssym.```oM+```/M-``````-Ns```````yM``````.-/dhoo++hy:`    ./dhN.`````../yMs```/Nd.``-m-```/My```:NN-```Nyd+.    `/yh//////
sssssym`   +d   `mM.   `..:Ns    ...hM    ./`  `Nsssdy    o/   `mM`   .:    hN.  `m/   sN.   :My    sM.   NN.   :o   `yy:::::
oooooym`   +-   sdM.   -Nhhms    ddhdM    :M-   NhhhN/    My    hM`   :M.   oNy   s`  -NN.   :My    `d.   Nm    oN`   /m+++++
+////om`   `   :m+M.   .ssyMs    +ssNM    :d.   NdhhN:    Mh````yM`   -o`  `hhN-  `   dhN.   :My     :.   Nd    oMyyyyhNsssss
+++++om`       /d:N.      :Ms       mM     `   :NdhhN:    MNmmmmNM`    `  .sNyhh`    /myN.   :My          Nd    o/----oNsssss
ooooosm`   .   `doN.   .hyhNs    syyNM    .ssshmddddN:    Mm++++dM`   :m.   ydym/   `myyN.   :My   :`     Nd    oo`   /Nsssss
oooosym`   +-   :mM`   -Nhhms    dNmmM    :NmddddmmmN/    Mh    yM`   :M.   oNdNo   .NyyN.   :My   ++     Nd    oM.   /Nsssss
sssssym`   +y    yM`   `:::ms    -::oM    :MmmmmmmmmNs    y+   `mM`   :M.   oNmNo   .NsyN.   :My   oN.    NN`   :y`   /Nsssss
sssssym````+N-```.N.```````ds```````/M`` `/NmmmmmmmmmNo-`    `:hNM`  `:M- ``oNmNs```-NssN.```:My```oMy````Ndh:`  `.:``/Nsssss
sssssymhhhhdmdhhhhddhhhhhhhdmdmmmmmmmNmmmmmNmmNmmNNmmmNmmdhhdmmmmNmmmmmNmmmmmNmNNmdddmssdhhhhhmdhhhdddhhhhdyyhhyyhddhhddsssss
sssssssssssssssssssyyyyyssshdmmmmmmmmmmmmmmmmmNNNNNNmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmddhhyssssssssssssysysssssssssssssssssssssss
sssssssssssssssssssssssssssddmmmmmmmmmmmmmmmmmNmmNNNmNmNmmmmmmmmmmmmmmmmmmmmmmmmmmmmdhdysssssssssssssssssssssssssssssssssssss
ssssssssssssssssssssssssssydmmmmmmmmmmmmmmmmmmmmmmNmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmdhhyssssssssssssssssssssssssssssssssssss
ssssssssssssssssssssssssysydmmmmmmmmmmmmmmmmmmmmmmmNNNNNNNNNNmmmmmmmmmmmmNNNNmmNmmmmmmmdhsssssssssssssssssssssooooossssssssss
ssssssssssssssssssssssyyyshmmmmmmNmmmmmmmmmmmmNNNNNNNNNNNNNNNmmNNmNNmmmmmmNmNmmmmmmmmmmmmysssssssssssssssss++/++ossssooooo++/
ssssssssssssssssssssssssysdmmmmmmNNNmmmNNmmNNNNNNNNNNNNNNNNNmmNmmmmmmmNmmmNmmNmmmNNmmmmmmdssssssssssssssssooo++++++++oosoosss
sssssssssssssssssssssssssydmmmmmmNNNNNNNNNNNNNNNNNNNNNNNNNNNmmmmmmmmmmmmmmmmmmmmmmmmmmmmmNysssssssssssoosoooosssssyyyyyyyyyyy
sssssssssssssssssssssssssymmmmmNNNNNNNNNNNNmNNNNNNNNNNNNNmmmmmmmmmmmmmmmmmmmdmmmmmmmmmmmmmhsssssssoossssssyyyysyssyyyyyyyyyyy
ssssssssssssssssssssssssshmmmmNNNNNNNNNmNNNNNNNNNNNNNNNNNmmmmddhhhhhhhhhhhhhyhhhhhhhhhhhhdmyssssoossssysyyyysyyssssssssysyyyy
ssssssssssssssssssssssssshmmNNNNmNNNNNNNNNNNNNNNNNmmmddddddddddddmmmdhhhhdddddhhhddddddhhhdyssssyyyyyyyyyyyyyyyyyyysyyyyyyyys
ooooooossssssssssssssssssdmmNmNNNNNNNNNNNNNNNmmdddddddddddddddmmmmmNmdddddmmmmNNNNNmmmdddddyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
++++++++++ooooooooooooooodmmmNNNNNNNNNNNmmddhhhhddddddddmmmmNNNNmmmmNmmmmmmmmmNNNNmmmmmmmmmmyhyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
sooo++++++++ooo+++///////ymmmNNNNNNNNdhhyhhhhhddmmmmmddddddddmmmmmNNNNNmmmmmNNNNNNNNNNNNmmmmhyyyyyyyyyyyhyyyyyyyyyyyyyyyyyyyy
ssssssssssssssssooo+++osyyhdmNNNNNmmdhhhhhddddmmmmmmmmmmmmmmNNNNNmNNNNmmmmmNNNNNmmNNNNmNmmdddsyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
sssssssssosoooooooosssdNNmmddmmmmmmmdddddddddmmmmmNNNNNNNNNNNmNNNNmmmmmdhhhmdmmmmdmmdddddddhdssssyyyyyyyyyyyyyyyyyyyyyyyyyyyy
/++++o+++////////+oo+yNNNmmmmmmmmmmmmdddddddddddmmmmmmmmmmmmmmmmdmdddmmdhhhhdddddmmmmmmmmddddyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
++ossso+++/////+++++oomNmmddmmmmmmmmmmmddddddddhdddddmmmmmmmmNmmddmmmdddhhhhhhddmddddhddhhddmmhhhhhhhhhhhhhhyyyyyyyyyyyyyyyyy
syyyysooo+++++oo+++++ohmmdmmmNNmmdmmmmmmdddhhddddddddddddddddmdddmdddddddhhhhhdddddhhhhhhhddmmddhhhhhhhhhhhhhyhyyhhyyyyyyyyyy
yyyyyssooooooooosooo+oohmddmmdmmdddmmmmmmddddddmmmmdddhhdddddddddmmmmmmddhhyyyhdmmmdddhhhhddmmddddhhhhhhhhhhhhhhyyhhyyyyyyyyy
yyyyyysssyyyyysossyosssshddmmddmdddmmmmmmddmmmmmmmmddhhhddddddmmmNNmmddhhhhyyyyhhhdmmdddhhdddddddhhhhhhhhhhhhhhhyyyyyyyyyyyyy
yyyyyyyyyhyyyyysyyyyhhhyydmmdhdddmdmmmmmmmmmmmmmmmdddhhddddddmmmmmmdhhhhddhhhhddddddmddddddmmddhhhhhhhhhhhhhhyyyyyyyyyyyyyyyy
yyyyyyyyhyyyyyyyyyyhhddhhddddhddmmddmmmmmmmmmmmmmmdddddddddddmmdmmmdddmmmmmmmmmNNmmdmNmmmmmmmmddhhhhhhhhhhhhyyyyyyyyyyyyyyyyy
yyyyyyhyyyhyyyyyhhhhhddddmmddhddddddmmmmmmmmmmmmmmmmmmmmmmdmmmddddmmmNmmmNNNmdddmddddmNNmmmmmmmdhhhhhhhhhhhhyyyyyyyyyyyyyyhhh
yyyyyyyyyyyyyyyyhhhhdddddmmmmddddmmmmmNmmmmmmmmmmmmmmmmmmmmmmdddddddddhhddddddhdddddmmmNNNNNmmmdhhhhhhhhhyyyyyyyyyyyyyyyhhddh
yyyyyyyyyyyyyyyyhhhhdddddmmmmmNmmmNmmNNNNmmmmmmmmNNNNNNNNNmmmmmddddddddddddhhddddmmmmNmmNNNmmmmddhhhhhhhhyyyyyyyyyyyyyyhhhhhh
yyyyyyyyyyyyyyyyyhhhhdddmmmmmmNNNNNmNNNNNNmmmmmmNNNNNNNNNNmNNNNmmmmmmmddddhdddddddddmNNNNNNNmmmmdhhhhhhhyyyyyyyyhyyyyyhhhhhyy
yyyyyyyyyyyyyyyyhhhhhdddmmmmmmmmNNmNNNNNNNNNmmNNNNNNNNNNNNNNNNmmmmmmmmmmmmmmmmmmmNNNNNNNNmNNNNNmhhhhhhhhyyhyyyyyyyyyyhhhyyyyy
yyyyyyyyyyyyyhyyhhhhhdddddmmmmmmmmmmNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNmNNNmmNNNmmmmNNmmNNNNNmdhhhhhhhhhhhhyyyyyyyhhyyyyyyy
dhhhhyyyyyyyyyyhhhhhhhhddddmmmmmmmmNNNNNNNNNNNNNNNNNNNNNmNNNmmmmmmmmddddddddhhhhhhhdddmmmNNNNNNmddddddddddddhhhhhhhhhhhhhhhhh
ddddddddhhhhhyyhhhhhhhhdddddmmmmmmmNNNNNNNNNNNNNNNNNNNNNmNmmddddddhhhhhhhhhhhhhhhhhhhhdmmNNNNNmddddddddhdhhhhhhhhhhhhhhhyhhhh
hhdddddddddddddhhhhhhhhhhddddmmmNmmNNNNMNNNNNNNNNNNNNNNNNmmmddddddddhhhhhhhhhhhhhddddddmmNNNmddddddddhhhhhhhhhhhhhhhhhhhhyhyh
yyyhhhhhhdddddddmddddhhhhhdddddmNNmmNNNNNNNNNNNNNNNNNNNNNmmddddddddddddddddddddmddddddmmmNNmdhdddddddhhhdhhhhhhhhhhhhhhhhhhhh
yyyyyyyyhyhhhhhhddddddddhhhddddddmNNNNNNNNNNNNNNNNNNNNNNNNNmmmddddddddmmmmmmmmmmmddddmmmNNmddhhdddddddhdddhhhhhdhhhhhhhhhhddd
yyyyyyyyyyyyyyyhhhhhhhddddhddddddddmNNNNNNNNNNNNNNNNNNNNNNmmmmmdmmmddmmmmmmmmmdddddddmmNNmdddhhddddddddddddhdhdhhhhhhdddddddd
hyyyyyyyyhhhhhhhhhhhhhhhhhhhhdddddddmmNNNNNMNMNNNNNNNNNNNNNNmmmmmmddddddddddddddddddmmNNmdddddhdddddddddddddddddddddddddddhhh
mmmdddhhhyyyhhhddddddhdddddddddddddmmmmmNNNNNNMMMMMMMNNNNNNNNNmmmmmmmmdddddddddmmmmmmmNmmmddhddddddddddddddddddddddddddhdhhhh
NNNNNNmmmdddhhyhhhhhhhhhhhhhdddhdddddmmmmmNNmmNMMMMMMMMMMNNNNNNNNmNNmmmmmmmmmmmmmmmmmNmmmmddddhddddddddddddddddddddddhhhhhddd
dddmmmmNNNNmmddhhhhyhhhhhhhhhhhdddddddmmmmmNNddNMMMMMMMMMMMMMNNNNNNNNNNNNNNNNNNNNNNNNmmmmmdddhdddddddddddddddddddddhhdddmmmmd
hhddddddmmmmNNNNmmmdhhyhhhhhhdhddddddddmmmmmmNNmNMMMMMMMMMMMMMMMMNNNNNNNNNNNNNNNNNmmmmmmmddddddddddddddddddddddddddddmmmmmddh
ddddddddhhhddddmmmNNmmmddhdddddddmddmmmmmmmmmmNNmNMMMMMMMMMMMMMMMMMMMMNNNNNNNNNmmdmmdmmddddhdddddddddddddmddddddddmmmmddhhhhh
mmmmNNmmmmmmmddddmmmmmmNmmmmmmmmmmmmmmmdhddmNNNNmNNNNMNNNNNMMMMMNNNNNMMNNNNNNmmmmmNmmmmdhhdmmdddmmmddhdmmmdddmmmmmmmmmhdhhhhh
ddddmd``````.-/hNN+```.m-`````````yNs:`   `./dNM````/N.```:MMMMMy```-NM-```NN````+Nmy:`   `./dmmm+.`   `:sNmNd``````-Ndhhhhhh
mmmmmd    :/   `mM/   `m/--    .--hs   `s/   `NM    /M`   :MmmmNy    oM-   NM    /My    o/   .NM-   -s`   omdo       myyhhhdd
dhhhdd    oN`   yM/   `mmmm    +MNM:   `My    hM    :N`   :Mddhdy    `d-   NM    /M+    Ns    dN    /M.   :mm:   -   sh/sssyd
hhhhdd    :+   -mN/   `mhdm    +NdN:   `Mh....hM    `-    :Mmmmmy     -.   NM    /M/    NmyyyyNN    /MyyyyhMN`   y   :Nososyd
dddddd    ``  .+mN/   `mhdm    +mhN:   `MmmmmNNM          :MmmmNy          NM    /M/   `h-----dN    /+----/Mh   .m`  `Nyssooh
mmmmNd    om`   +M/   `mddm    +NhN:   `Md++++dM    :h`   :MNNNMy   :`     NM    /M/   `d/    hN    +y.   -Mo   :d`   ydysshm
NNNNNd    oN`   :M/   `mmmm    +NdN/   `My    hM    /M`   :NyNNNy   +o     NM    /M+    Nh    hN    +M:   -M-         /mo+sdm
mmmmNd    -/    +M/   `NNNm    +NNNs   `s/   `NM    /M.   :m-smNy   +N.    NM    /My    o/    hM-   -y.   -N    -y-   .No+ohm
mmmmNd      ``./mM/   `NNNm`   +NNNNs-`    `/dhM` ` /M.   :m.-dNy   +My`   NM `` /dys-   `/.` dyd/`   ./``-y   `sMo   `dyoyhm
NNNNNNNNNNNNNNNNNNNNNNNNmmNmmmmmmmmdsyhyyyhhysydddddddhddhhh/:hNNmmmmmNmmmmNNmmsss+`-osssssssss:./sssyyddddmdmmNNmyyyhhdysddm

Name: Anonymous 2012-02-21 11:45

>>105
Now continue to look for the error you mental midget. I still don't think you see it, because like, well, you are a dumbass. Now fire back with another snide comment instead of trying to learn something you fucking dumb nigger.

Name: Anonymous 2012-02-21 11:47

>>106,108
you are so autistic it's funny

I literally can't stop farting

Name: Anonymous 2012-02-21 11:47

>>108
>>106
Oh look Kodak once again samefagging in order to sound right.

Now fire back with another snide comment
says the king of ad hominems.

Name: Anonymous 2012-02-21 11:48

>>107
You don't have the IQ to do something like that. The best you dumbass could do is either ask someone here for a bot and then modify to fit your needs. Because, again, for the millionth time, you are way too fucking stupid to write code.

Name: Anonymous 2012-02-21 11:49

>>111
Oh look more ad hominems.


Look at me guys, i'm such an elitist and so cool.

Programming is so hard xD You can't find a simple undefined behavior in some toy C program XD  you have no hope at programming.

Don't mind me just being a enterprise codemonkey with my a,b,c's java programming job

Name: Anonymous 2012-02-21 11:49

>>109
Maybe, but at the end of they you are still a dumbass who works a general labor job.

Name: Anonymous 2012-02-21 11:52

>>111

#include <stdio.h>
int main()
{
  int number_of_times_kodak_uses_an_ad_hominem;
  printf("You guys are all toilet scrubbers, i've been reminding you this for %d times now. When will you get it that you guys are scrubs and will never be part of the elitist club?",number_of_times_kodak_uses_an_ad_hominem);
}

Name: Anonymous 2012-02-21 11:53

>>112
I'm willing to bet you can't write an autotroller without the aid of google. I'm even going to take this one step further and say you don't even have the skill level to write a working one on your own in less than 30 minutes. Because again, you are kind of slow. Now shut up and go scrub another toilet.

Name: Anonymous 2012-02-21 11:55

>>115
++ad_hominems;


Keep em coming kodak. You just make yourself look like a immature child more and more.

Name: Anonymous 2012-02-21 11:55

>>114
That code will break if..

a)I run it on a linux box.

And

b)The underlying device is something other than a terminal.

Name: Anonymous 2012-02-21 11:57

Name: Anonymous 2012-02-21 11:58

>>116
I'm being serious. You say programming is easy. I bet you have zero clue how to write an autotroller. The best your slow ass could do is take some pre-existing code that someone else has written, and then modify it to fit your needs.

Name: Anonymous 2012-02-21 11:59

>>119
++ad_hominems;

Keep em coming child.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List