runesmithie Posted October 8, 2006 Share Posted October 8, 2006 Normally I wouldn't post something like this, but I feel a language like C deserves it :) I'm mostly posting this so I can get helpful pointers from everyone while I'm learning. Every once in a while I'll post some code I worked on to learn a specific concept and maybe a description of how it works if anyone would like to learn along with me. Day 1: Prints hello, world :) http://www.eclipsor.com/code/ex1-1.c Prints hello world and adds extra escape sequences to see what they do http://www.eclipsor.com/code/ex1-2.c Prints a Fahrenheit->Celsius table for Fahrenheit 0-300 in steps of 20 http://www.eclipsor.com/code/ex1-3.c Same as above, but Celsius->Fahrenheit http://www.eclipsor.com/code/ex1-4.c Same as the Fahrenheit->Celsius table, but from Fahrenheit 300-0 http://www.eclipsor.com/code/ex1-5.c Verifies that getchar() != EOF is either 0 or 1 http://www.eclipsor.com/code/ex1-6.c Prints the value of EOF http://www.eclipsor.com/code/ex1-7.c Counts blanks, tabs, and newlines http://www.eclipsor.com/code/ex1-8.c Copies input to output, but replaces strings of spaces with just one (my personal favorite) http://www.eclipsor.com/code/ex1-9.c Reads input and replaces tabs with \t, backspaces with \b, and backslashes by \\ (currently I have no idea how to simulate a \b?) EDIT: ^H is a \b :D http://www.eclipsor.com/code/ex1-10.c I just posted something! ^_^ to the terrorist...er... kirbybeam. Link to comment Share on other sites More sharing options...
runesmithie Posted November 11, 2006 Author Share Posted November 11, 2006 Ok, taking a different approach here lately. I got the K&R book and I'm working my way through it (I have about 10 examples to put up tomorrow) I just posted something! ^_^ to the terrorist...er... kirbybeam. Link to comment Share on other sites More sharing options...
thedepressedsquirrel Posted November 11, 2006 Share Posted November 11, 2006 [EDIT by jaklumen: No trolling.] Link to comment Share on other sites More sharing options...
Anesthesia Posted November 11, 2006 Share Posted November 11, 2006 One of my current assignments is in C++ with OpenGL, needless to say we've been thrown in at the deep end with absolutely NO experience in C++ or OpenGL. Fortunately most of it just involved editing code though. I've also found a utility which can translate .obj models into the C++ code for OpenGL so I can use them in my program, which is pretty cool. [EDIT by jaklumen: The quote and reply here have been edited out.] Some people are changed by being a moderator. I wouldn't be. Link to comment Share on other sites More sharing options...
insane Posted November 11, 2006 Share Posted November 11, 2006 I'm mostly posting this so I can get helpful pointers *Ahahahahahh. (prefix your variables with an asterik to signify it as a pointer) Link to comment Share on other sites More sharing options...
zonda Posted November 12, 2006 Share Posted November 12, 2006 I'm mostly posting this so I can get helpful pointers *Ahahahahahh. (prefix your variables with an asterik to signify it as a pointer) Lol.... wonder how many understood this. Such a terribly stupid joke lol.... ... Link to comment Share on other sites More sharing options...
insane Posted November 12, 2006 Share Posted November 12, 2006 I'm mostly posting this so I can get helpful pointers *Ahahahahahh. (prefix your variables with an asterik to signify it as a pointer) Lol.... wonder how many understood this. Such a terribly stupid joke lol.... Yeh, I added in the bracketed expression afterwards because I thought it too discrete. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now