View previous topic :: View next topic |
Author |
Message |
dev-null-devil Tux's lil' helper
Joined: 12 May 2003 Posts: 93
|
Posted: Mon Jul 21, 2003 11:59 pm Post subject: Small c/c++ programs |
|
|
I'm looking for some small (junk?) max-1kb-programs that you did when you first started program c/c++, maybe you'll let me look at them for educational purposes? (put up on your website?)
Still looking _________________ All change, motion, and time is an illusion.
-- Plato, year 310 |
|
Back to top |
|
|
MJN222 Tux's lil' helper
Joined: 24 Nov 2002 Posts: 77 Location: Livermore, CA
|
Posted: Tue Jul 22, 2003 2:24 am Post subject: |
|
|
Not too sure how much you know, but the following is the standard introduction to C
Code: | #include <stdio.h>
#include <stdlib.h>
int main(void)
{
printf("Hello World!\n");
return 0;
}
|
This code just prints out the string Hello World! to the terminal and exits; pretty straightforward, really
If you're a bit past that, you may want to search the websites of some of the introductory programming courses at a university of your choosing. (I wholeheartedly recommend http://www.cs.cmu.edu/ and searching for the intro courses. I'm biased by going to CMU though )
I don't have any decent source code to help you, but lots of university courses post solutions to their problem sets, google is your friend. _________________ Do you lock your car when you leave it out in public? Why not do the same with your computer? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|