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

Pages: 1-4041-8081-

C++

Name: Anonymous 2006-06-19 10:09

E?

Name: Anonymous 2006-06-19 14:06

F?

Name: Anonymous 2006-06-19 14:14

G?

Name: Anonymous 2006-06-19 14:15

H!

Name: Anonymous 2006-06-19 14:18

no, D. Morons!

Name: Anonymous 2006-06-19 14:54

I

I don't want to make any waves...

Name: Anonymous 2006-06-19 16:31

D++?

Name: Anonymous 2006-06-19 18:05

while(true) { cout << "OH SHI-" << endl; }

Name: Anonymous 2006-06-19 21:53

Psh,
#include <cstdio>
int main(){for(;;)std::puts("OH SHI-");}

Name: Anonymous 2006-06-19 23:34 (sage)

lol:
cout<<"oh shi-"<<endl;
goto lol;

Name: Anonymous 2006-06-20 3:37 (sage)

>>10
OMG!!! You used goto!!! I heard in university it's an heresy!!!

Name: Anonymous 2006-06-20 5:04

>>11
while (true)
{
  cout << "O SHI-\n"
}

Name: Anonymous 2006-06-20 9:33

include <iostream>

using namespace std;

main()
{
 za_warudo();
 return 0;
}

void za_warudo()
{
 printf("Wrryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy");
}

Name: Anonymous 2006-06-20 14:47

>>13
#pragma kawaii

Name: Anonymous 2006-06-22 0:52

>>13
at least show us the function

Name: Anonymous 2006-06-22 4:08

>>15
Click the "(Post truncated.)" link

Name: Anonymous 2006-06-22 12:35

>>15
noob.
GTFO

Name: Anonymous 2006-06-22 12:55

Hey, I don't like typing out code like that.  I don't like to put the top side of the curly brace on its own line.  I like to put it after the function declaration like so:

main() {
    za_warudo();
    return 0;
}

Is this wrong, and should I be ashamed?

Name: Anonymous 2006-06-22 13:00

>>18
Regular answer: No style is wrong. Just be consistent.

My answer: I hope you fucking die. >:(

Name: Anonymous 2006-06-22 14:45

Thoughtful answer: Some styles are wrong for non-subjective reasons. For example: braces on a new line look fucking ugly (subjective, although if you don't agree I hope you fucking die), and they waste visual space (which is an objective observation). Braces in the same line are thus better.

My answer: >>18 is the right style.

Name: Anonymous 2006-06-22 15:27

>>20
they waste visual space

Sorry, I like a little extra whitespace in my code. Thanks. The "omg i can code stuff compact-like" often gets really horrific  (especially with my experiences with other same-line-bracers - ew).

Name: Anonymous 2006-06-22 15:43

>>21
What's the advantage of placing the braces on different lines?

Name: Anonymous 2006-06-22 17:10

>>21
I usually separate chunks that deal with different aspects of code with blank lines, and I do that a lot. But braces in a single line is fugly.

Name: DoubleAW 2006-06-22 19:06

>>22

Because then you can delete a line without deleting the end brace.

Name: Anonymous 2006-06-22 20:26

Shift+End, Left, Delete, Lol

Name: DoubleAW 2006-06-23 0:00

People get lazy. :P

Name: Anonymous 2006-06-23 3:24

>>25
>>26

:<linenumber>s/^.*}$/}/g

I COMMAND YOU TO LOVE THE VI !!!!!

Name: Anonymous 2006-06-23 6:42

vi is da shit, i love nano <3

Name: Anonymous 2006-06-23 7:04

Please, nano can't do anything. It's basically a command line implementation of notepad.

Name: Anonymous 2006-06-23 7:23

>>28
Only people who do not know what the vi is capable of say that they love nano.

How was it? Move the lines 7 to 9 to the end of the document?
:7,9m$

Tell me how you do it with nano!

Name: Anonymous 2006-06-23 8:06

For some people, a command-line implementation of notepad is enough. How often do most people need to do >>30, and is the time learning many details like that worth it?

Name: Anonymous 2006-06-23 10:44 (sage)

real programmers don't use text editors.

Name: Anonymous 2006-06-23 13:38

>>32
Sure, you run to your Server, to log in graphically so you can write a small shell-script.
The server is in another building? gogogo!

You don't write Client-Server-based programs or just use Windows-Servers?
Ynd YOU call yourself a programmer?!

Name: Anonymous 2006-06-23 14:37

Real programmers use line editors.  Preferably ed.

Name: Anonymous 2006-06-23 16:00

>>30
Working with line numbers is anal because you don't know or care for them, and you have to either waste visual space displaying them, or move the goddamned cursor to see what line do you want.

Name: Anonymous 2006-06-23 16:12 (sage)

>>35
Working with line numbers is anal because you don't know or care for them

You don't debug much, do you.

Name: Anonymous 2006-06-23 16:28

>>31
I do this a lot, noob. Just because you're a noob and don't understand Vi doesn't mean it's useless. Just stay with Visual Basic and let the pros do the good stuff.

Name: Anonymous 2006-06-23 16:32 (sage)

>>33
>>32 here, i mostly use echo and cat.
and i'm not a real programmer. if i were, i wouldn't be posting here.

Name: Anonymous 2006-06-23 23:36 (sage)

>>37 won't be writing software for anyone else, any time soon.

Name: Anonymous 2006-06-24 8:58 (sage)

>>39
There are worse things than vi, like Eclipse.

Name: Anonymous 2006-06-24 20:10

>>40
I'll agree with that. I was referring to the "one size fits all" attitude.

Normal people don't use vi, because they don't need that kind of power, just like most people don't need Lexis Nexis.

Name: Anonymous 2006-06-25 9:51

>>41
Are you aware this is a programming forum? Programmers need a powerful editor, who cares what Joe Sixpack uses (hint: he uses the copy of MS Word that came "free" with his Dell.)

Name: Anonymous 2006-06-25 10:39 (sage)

>>41
Are you aware that normal people don't program for either living or as a hobby?

Name: Anonymous 2006-06-25 14:46

>>42

I use vim, and it is powerful, I'll admit.

But after using Windows for 15 years and memorizing all of the shortcuts, I can do just about anything faster in Windows because *it's what I already know*.

To move the three lines to the end of the document like in >>30, I would just:
Go to line 7 (probably using page up, and the mouse)
Press the home key
Hold shift
Press down three times
Possibly press the end key if I have to
Press control-x
Move to the end of the document (page down or scroll if very long)
Press control-v.

Maybe your way is faster, but my way is what I know, and it works faster for me than using vim.

Name: Anonymous 2006-06-25 16:01 (sage)

>>30
in any non-assed editor, you don't even need to know the line numbers

Name: Anonymous 2006-12-14 16:00

for(;;) {
cout << "Fuck me!!" << '\n';
}
OMGzor! INFINITE LOOPYNESS

int i;
int array[40];

for(i=0;i<4504;i++) array[i] = i;
//OH SATAN HELP US ARRAY OVERRUN!!!

Name: Anonymous 2006-12-14 16:35

ARRAYS CONSIDERED HARMFUL

Name: Anonymous 2006-12-14 16:38

>>43
loooooooool, I'm paid $2700 every month to write C++ :D

Name: Anonymous 2006-12-14 18:10

Name: Anonymous 2006-12-14 19:06

>>48
looooooooool, you're poor

Name: Anonymous 2006-12-14 19:07

>>50
You wish you made that

Name: Anonymous 2006-12-14 19:50

>>51
I make more than that in a week

Name: Nigger 2006-12-14 20:42

>>51
I steal more than that in a week, waste it all on booze though

Name: Anonymous 2006-12-15 10:59

>>13
wtf iostream include stdio.h n00b stop using a gayish mix of C and C++ i bet your code doesnt even work

Name: Anonymous 2006-12-15 11:01

>>48
You failed at lying

Name: 55 -.- 2006-12-15 11:02

and its a very crappy salary for a programmer

Name: Anonymous 2006-12-15 12:34

DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS

Name: Anonymous 2006-12-15 14:15

>>56
it's not when you're a BS in Computer Science and it's your first job :D

Name: Anonymous 2006-12-15 14:27

>>58
BS stands for bullshit. You probably mean BSc.

Name: Anonymous 2006-12-15 16:55

DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS

Name: Anonymous 2006-12-15 20:19

>>58
That is a horrible salary for a BS in Computer Science.  I'm a senior right now, going to grad school, but all my friends who interviewed for jobs have been offered at least $50k.

Name: Anonymous 2006-12-16 0:59

>>59
It's surprising accurate though.

Name: Anonymous 2006-12-16 7:01 (sage)

>>61
BS stands for bullshit. You probably mean BSc.

Name: Anonymous 2006-12-16 11:07

>>63
It's surprisingly accurate though.

Name: Anonymous 2006-12-16 11:52

DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS

Name: Anonymous 2006-12-16 19:31

>>64
oh my is dat sum rimshot?

Name: Anonymous 2006-12-17 19:53

>>63
>>64
oh my is dat sum rimjob?

Name: Anonymous 2006-12-17 23:00

>>13

AHAHAHAHAHAHAHAHAHAHAHAHA (aha... AHAHAHAHAAHAHAHAHAHAHAHAHAHAHAHAAHAHAHAHAHAHAHAHAHAHAHAHAAHAH)! Quit hanging out in on textboards and read a freaking C++ tutorial! "include" is a preprocessor command, you have no function declaration for the function you used and you didn't define a return type for main.

You loose three internets.

Name: Anonymous 2006-12-18 1:05

>>68
OH SHIT, THREE INTERNETS HAVE BEEN SET LOOSE
EVERYONE RUN

Name: Anonymous 2006-12-18 20:39

#include <iostream> // missing "#"
int za_warudo(); //missing declaration
using namespace std // error-producing colon
main()
{
 za_warudo(); //there's no reason for a function for such a small code
 return 0;
}

void za_warudo() //this should be zaWarudo; underscores ftl
{
 cout<<"Wrryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"<<endl; /*print? terrible, terrible*/
}

Name: Anonymous 2006-12-19 0:51

using namespace std; is DIRTY! Import only what you need with:
using std::ostream;

Name: Anonymous 2006-12-27 2:24

>>70

mismatched datatypes for the function prototype and function there, champ.

Name: Anonymous 2006-12-27 2:55

>>70

error-producing comments

Name: Anonymous 2006-12-27 8:34

#include <stdio.h>
#define say main(){puts(
#define ftw );}

say "Wrryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy" ftw

Name: Anonymous 2006-12-28 1:42

Don't do the fucken following.

#define if IF
#define else ELSE
#define int INT
#define double DOUBLE

its fucken wrong, and it makes your programing completly un-readable to who's going to having to fucken support code like this.

Name: Anonymous 2006-12-28 5:23

#define begin {
#define end }

It's just liek Pascal!

Name: Anonymous 2006-12-28 12:01

>>76

or procedural sql

Name: Anonymous 2006-12-28 14:32

So yesterday I decided to be a lazy ass and go to Taco Bell instead of cooking something. BIG MISTAKE. Today, I woke up in horror to find that I was in a small pool of liquid feces, the result of eating low quality processed meat. My dog, who was currently sitting on my bed, seemed to love it. He was slowly but surely licking away at my shit-covered sheets, enjoying every bit of it, all the while making a big mess of himself. He then proceeded to hop off my bed and walked back to another room in the house. He left a disgusting trail along the way. I couldn't do anything about it; getting out of bed to pick up my dog would only make an even bigger mess. I had to think of something quick, for I had to go to work in a few hours. I didn't know what to do, so I just stripped all my clothing, left it on my bed, and ran to the bathroom to take a shower. It took quite a while to get the awful stench off my body. When I had finally finished, to my surprise, my dog had come back at least a few more times to feast upon my waste. He was covered in my brown butter from head to paw. No room was left untouched... The entire floor was coated in shit, in addition to many pieces of white furniture. Well, at least they WERE white. I decided to wash away my worries with a drink and went off to work. I'll clean it up later, I said to myself. It'll all work out okay. No one will no about this. Oh, how wrong I was. Apperantly, the scent was so god awful that my neighbors could smell it too, and they called in a sanitation crew who cleaned it all up. By this time, everyone in the neighborhood had heard of this. I was so embarassed. Ah, shit.

Name: Anonymous 2010-06-07 6:44

Hi, I can spam /prog/ too, you faggot.

Also, smoke weed everyday.

Name: Anonymous 2010-12-06 9:56

Back to /b/, ``GNAA Faggot''

Name: Anonymous 2010-12-17 1:31

Xarn is a bad boyfriend

Name: Sgt.Kabuⲍ蚦kiman霶덨 2012-05-28 19:22

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

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