Home - BEAM Robots - Javascript - C - Forum - Blog
   C Programming
NEWS

TomboT V2.

The new website is here! The new design has been created to address search engine issues, and general user friendly issues.

LINKS

Useful BEAM links:

Solarbotics - The best BEAM resources
Totalrobots - UK based suppliers
eBeamUK - UK based suppliers of great BEAM products
SheekGeek - BEAM and educational kit suppliers
Yahoo BEAM - BEAM community
Solarbotics.net - Community pages
EShock - Liverpool Uni's Elec Engineers society
JWGoerlich's site - A fellow BEAMer who has made some great robots. Also some great Solar Engine tests!


C Programming

This section will simply host many example C programs that I have had to complete as part of my course. I am uploading these because I feel examples of code are very useful to people, I shall not be creating tutorials, there are plenty of those out there already.

Because the examples I have to complete at Uni are quite basic, I thought they would be good to add to the site. At a later date I intend to comment the code, but in the mean time if you have any questions please e-mail me.

I am not going to post the exe files on the site as most people probably won't want to use them (you never know what someone could have in an exe file). So I am only posting the code. Click download to get the "*.c" file, or view to see the code text. I use the DEV C++ compliler, by Bloodshed, so if you want to complile your code this is a good free one.

  1. Hello World!!, a single printf statement,
    Download, View
  2. Print Diamond made up of users chosen character,
    Download, View
  3. Program that takes two user numbers and uses a function to multiply them,
    Download, View
  4. A program that takes user inputs and then uses three functions to perform calculations on the inputs.
    Download, View
  5. A simple for loop to create the first 10 numbers of the fibonacchi sequence
    Download, View
  6. A bit more complex, program that uses a switch statment, if statements, and functions
    Download, View
  7. A program which will copy a specified file into a new file of name specified by the user
    Download, View
  8. A program demonstrating the use of fprintf and fscanf, the programs function is to read a text file of integers, then to copy them into a new array of type char, and then put the char array into a new file
    Download, View
  9. A program which reads values from a textfile called myfile.txt, prints them on screen and then writes them to a newfile. You need to create a text file to do this, seperate eah value by a space, an include some linefeeds... eg:
    23 45 67
    5678 23 4
    56 3 7

    Download, View
  10. An aeroplane bookng system, uses arrays of structures, switch statements and file input output.
    Download, View
  11. Resistor calculator in c, works out a four colour coded resistor
    Download, View
  12. Matrix code.... an attempt at re-creating the Wake Up Neo screen!
    Download, View
  13. DVD rental Store. This was a long project featuring multiple file input/ouput, a really fun program resulted. The whole thing is in the zip file
    Download



You can search the site here:
Google
 
Web TomboT
Webmaster: Tom Elner
© 2001 TomboT