Code please?

Code please?

Post by iamlosinmysanity on Mon Jun 15, 2009 9:52 pm
([msg=25409]see Code please?[/msg])

I'm working on some nice programs in C and i was wondering if someone could just post some of there code for some of there more technical programs. I'd like to have an idea how the pros do it =) i promise i wont steal your code, purely for educational purposes.
iamlosinmysanity
New User
New User
 
Posts: 17
Joined: Thu Oct 16, 2008 7:51 pm
Blog: View Blog (0)


Re: Code please?

Post by mischief on Tue Jun 16, 2009 1:43 am
([msg=25416]see Re: Code please?[/msg])

you can check out my webserver i've been coding in C, it isn't really complete now and i think it's broken in it's current revision.

http://code.google.com/p/rockethttpd/source/browse/
The whole secret of existence is to have no fear. Never fear what will become of you, depend on no one. Only the moment you reject all help are you freed.
--Buddha
User avatar
mischief
Poster
Poster
 
Posts: 355
Joined: Wed Jan 07, 2009 4:16 pm
Blog: View Blog (0)


Re: Code please?

Post by insomaniacal on Tue Jun 16, 2009 9:27 am
([msg=25431]see Re: Code please?[/msg])

Theres plenty of sites that offer C source code for you to read.

http://www.planet-source-code.com/vb/de ... p?lngWId=3
It's not who votes that counts, it's who counts the votes
insomaniacal.blog.com
User avatar
insomaniacal
Addict
Addict
 
Posts: 1210
Joined: Sun May 24, 2009 10:21 am
Blog: View Blog (0)


Re: Code please?

Post by xcurious on Tue Jun 16, 2009 12:55 pm
([msg=25435]see Re: Code please?[/msg])

here's some code for you...

Code: Select all
#include <stdio.h>

int main(){
printf("hello world\n");
return 0;
}


Pro Stuff.
- Apologies to all who I have flamed in the past. Thanks mods for unbanning me.


ckw100 wrote:so i have been pacticeing my batch file hacking for networks
xcurious
Experienced User
Experienced User
 
Posts: 79
Joined: Sun Sep 21, 2008 3:49 pm
Blog: View Blog (0)


Re: Code please?

Post by insomaniacal on Tue Jun 16, 2009 2:04 pm
([msg=25440]see Re: Code please?[/msg])

Nope nope. You forgot your commentz
It's not who votes that counts, it's who counts the votes
insomaniacal.blog.com
User avatar
insomaniacal
Addict
Addict
 
Posts: 1210
Joined: Sun May 24, 2009 10:21 am
Blog: View Blog (0)


Re: Code please?

Post by aNewHobby4me on Tue Jun 16, 2009 5:13 pm
([msg=25456]see Re: Code please?[/msg])

insomaniacal wrote:Nope nope. You forgot your commentz


Not to mention the indents. Tabs or spaces? Mixed? How far to indent--four or eight?
"To understand recursion you must first understand recursion."
aNewHobby4me
Poster
Poster
 
Posts: 185
Joined: Thu Jan 08, 2009 5:44 pm
Blog: View Blog (0)


Re: Code please?

Post by mischief on Tue Jun 16, 2009 5:23 pm
([msg=25457]see Re: Code please?[/msg])

tabs > spaces
:mrgreen:
The whole secret of existence is to have no fear. Never fear what will become of you, depend on no one. Only the moment you reject all help are you freed.
--Buddha
User avatar
mischief
Poster
Poster
 
Posts: 355
Joined: Wed Jan 07, 2009 4:16 pm
Blog: View Blog (0)



Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests

cron