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

HELP please

Name: Anonymous 2010-07-06 12:35

what is wrong with my program? its supposed to process arguments but it doesnt.
void output(char *fuckyou);
int main(int argc, char **argv) {
  int i;
  for(i = 0; i < argc; i++) {
    output("SHIT");
  }
}

Name: Anonymous 2010-07-06 15:08

>>40
Start again. 80/20, and all that.

Name: FrozenVoid 2010-07-06 15:10

>>40
1. open Pastebin.com
2. post errors in a new pastebin.
2. post source code in new pastebin.(if its not possible, post the relevant functions and their immediate places within main)

__________________
Orbis terrarum delenda est

Name: Anonymous 2010-07-06 15:12

>>42
The second step 2 should include the entirety of main().

Name: Anonymous 2010-07-06 15:32

>>43
>>42
>>41

The thing is simple: the part i posted doesnt work, everything else does.

Everything i posted is everything thats wrong right now, there is no shit before this and gcc does not print any errors in main().

I have like a lot of shit in my project folder, and most of my code is fucking ugly and buggy in such ways that i would shame myself in the ground if anyone saw it, but it still somewhat works, tested it like a thousand times.

Still want me to post it?

Name: FrozenVoid 2010-07-06 15:41

>>44
Post it anyway, it not like you signed every line with Joe Coder Random(c) GPL


__________________
Orbis terrarum delenda est

Name: Anonymous 2010-07-06 15:41

>>44
JUST FUCKING DO IT YOU CAME TO /prog/ FOR HELP THERE'S NO MORE EMBARRASSMENT LEFT JUST DO IT

ALSO IF output DOES WHAT IT SAYS THEN THE PROBLEM CLEARLY LIES SOMEWHERE ELSE

Name: Anonymous 2010-07-06 15:45

>>46
It is terrible, i mean really terrible code!.

Name: Anonymous 2010-07-06 15:47

Man, if would be nice if C didn't require >>punctuation<<, wouldn't it, >>1?

Name: Anonymous 2010-07-06 15:47

>>47
Then get the fuck out. Terrible code is posted here on daily basis.

Name: Anonymous 2010-07-06 15:50

>>47
This reminds me of the story of the shy girl. All her friends wanted her to sing for some reason, and she was all "no i'm terrible :3" and they were insistent. Eventually, when their attention was elsewhere, she plucked up the courage to sing. One of them noticed and told the others to shut up.
She sounded like a diseased macaw. Nobody spoke of that moment again.

Name: Anonymous 2010-07-06 15:50

>>49
Terrible code is posted here on daily basis.

I really havent seen any code here, or atleast not much.

Name: Anonymous 2010-07-06 15:51

>>51
Okay. Post code or get out. You're fucking anonymous.

Name: Anonymous 2010-07-06 15:54

Alright, but i have many files, mostly filled with half finished ASM. Should i post it too, or just stick with the C?

Name: FrozenVoid 2010-07-06 15:58

>>54
It could be exactly why it does not run, asm isn't meant to be "half-finished", it either runs or crashes.


__________________
Orbis terrarum delenda est

Name: Anonymous 2010-07-06 16:00

>>54
Well it runs alright, but much functionality is missing.

Name: FrozenVoid 2010-07-06 16:02

>>55
What if one of your C functions tries to use something which has "functionality is missing"?


__________________
Orbis terrarum delenda est

Name: Anonymous 2010-07-06 16:05

>>56
It doesnt, and even if it does not crash.

Name: Anonymous 2010-07-06 16:07

Mmm, premature optimisation.

Name: FrozenVoid 2010-07-06 16:14

Couple advices:
1. Stick to straight C until your program runs perfectly.
2. Only introduce asm blocks to optimize inner loops/functions.
3.use only complete, tested assembler subroutines and have a fallback for normal C-only operation.
4.Don't develop software out of your league(OS/Drivers/etc)
__________________
Orbis terrarum delenda est

Name: Anonymous 2010-07-06 16:14

>>58
Step the fuck back, let FV handle his brother in disrespecting punctuation.

Name: Anonymous 2010-07-06 16:17

Name: Anonymous 2010-07-06 16:18

>>59
5. Write useless "helper" files that serve to only confuse everyone else.
6. Forget whitespace. It's just screen bloat.

Name: Anonymous 2010-07-06 16:21

>>61
And thus the physical representation of cdr is in fact an African American smoking weed every day.

Name: Anonymous 2010-07-06 16:25

OP here.

>>59
Good advice but too late.
Thank you for that library link you posted, sure will be helpfull for me.

Also thanks to anonymous.

Its already late here and have too take a bath. I will try haxing this thing until it works somewhat.

I hoped i could resolve this fast with /prog/s help and that you could laugh at this silly thing, but seems isnt the case.

I will check out this thread in the morning, to see if it has been threadstoped, if you guys are interested in the src, let me know so i can tidy up a bit and post it.

Anyways im sure i can fix this.

Good night.

Name: Anonymous 2010-07-06 16:28

I will check out this thread in the morning, to see if it has been threadstoped
Oh my.

Name: Anonymous 2010-07-06 16:35

int main(int argc, char **argv){
  while (--argc)
    output(*++argv);
  return 0;
}

Name: Anonymous 2010-07-06 17:05

>>66
Why would you maul poor innocent argc like that? I feel kinda bad about it :(

Name: Anonymous 2010-07-06 17:13

>>67
Because I am an expert C programmer.

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