Thread: Roulette Program Problem

  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    5

    Roulette Program Problem

    Hi, I had to create a roulette program using C. My knowledge related to programming is close to zero (7 lectures in total) so I would kindly ask you to be as basic as possible when posting a reply. Now my program works perfectly well as it is, with no errors at all. However my lecturer has just let me know that I need to re-structure all of my program because I hadn't been using functions. Can anybody let me know how to change my program as I am finding it quite difficult since my knowledge related to programming is so limited. I won't put the code on here for certain purposes, however if anybody needs to know the code I can send it via a msg. Help is very much appreciated!

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    We'll need to see the code in order to tell you how to change it.
    If you understand what you're doing, you're not learning anything.

  3. #3
    Registered User
    Join Date
    Jan 2011
    Posts
    8
    Read about functions and how they work

    for exemple: Functions in C Programming - C and C++ Programming Resources

    In your code, try to see what can you put in a function and apply what you've learn reading that... Try some simple exercises first like a function that return the sum of 2 int arguments, etc...

    Any specific questions, post them here

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with a Battleship Program
    By HBlakeH in forum C Programming
    Replies: 1
    Last Post: 12-05-2010, 11:13 PM
  2. im a noob at c++, do you think so?
    By belRasho in forum C++ Programming
    Replies: 6
    Last Post: 04-25-2010, 11:02 PM
  3. Replies: 20
    Last Post: 06-12-2005, 11:53 PM
  4. Console Program Problem
    By Breach23 in forum C++ Programming
    Replies: 3
    Last Post: 10-19-2001, 12:35 AM