Thread: Any "recommended" C programs to be used in a programming contest? Please help.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Well, create a small game that allows you to walk forwards or backwards through rooms (implement as a double linked list). You can also save that linked list to file and read it back properly later too.
    The rooms should contain a name and size.
    If you want to complicate it EVEN further, then you can create a game with rooms that allows you to walk east, west, north and south, to different rooms to reach the goal. You can also add health and traps in certain rooms. If health reaches 0, the hero dies.
    Hint: Add traps and damage they do into the list.
    You might also create a struct with hero information such as name, gender and health.
    Not the easiest thing to do. I'd call that pretty hard.
    Last edited by Elysia; 12-10-2007 at 12:23 PM.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Expression Evaluator Contest
    By Stack Overflow in forum Contests Board
    Replies: 20
    Last Post: 03-29-2005, 10:34 AM
  2. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  3. WANTED: Contest Master
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-23-2003, 10:15 PM