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

Learn C!

Name: Anonymous 2005-02-19 5:56

For people who want to learn the C programming language I have two great sources for you
http://www.cs.cf.ac.uk/Dave/C/CE.html A book called C Programming printed in the 80's or 70's forget when.
http://www.cs.cf.ac.uk/Dave/C/CE.html This is one of the learn C sites but better.
All I can suggest is to pull long hours of the night, write the notes down in a note book and do the exercies. Learning on your own can be hard but you get use to it and you learn better this way. If you have any questions though try searching the internet to find the answers. Here is a example of a program I worte useing the C programming book. I have not learn all of the C language though..
#include <stdio.h>
#include <math.h>
//Evaluating Trigonometric Functions
int main(int argc, char *argv[])
{
  int x,y,output;
  float r;
  printf("Type in the X and Y points\n");
  scanf("%d,%d", &x, &y);
  r = sqrt((x*x) + (y*y));
  printf("The Sqareroot Equals: %.2f\n", r);
  printf("----------------------------\n");
  printf("sin = %d/%.2f\n", y, r);
  printf("cos = %d/%.2f\n", x, r);
  printf("tan = %d/%d\n", y, x);
  printf("csc = %.2f/%d\n", r, y);
  printf("sec = %.2f/%d\n", r, x);
  printf("cos = %d/%d\n", x, y);
  return 0;
}

Name: Anonymous 2006-03-28 5:28 (sage)

Oh and kiddies, if I see you declaring main as returning void or taking anything but void OR int,const char** I'm going to slap you so hard that Alan Turing is going to feel it and get an erection (the BSDM feller that he was).

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