Jump to content

HELP. Beginner trying to compile a programme

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Sarah19

Sarah19

    Newbie

  • Members
  • Pip
  • 1 posts
Hi, I'm very new to the C language and haven't compiled many programmes before.

I'm trying to create a virtual zoo type game. In one of the subsystems it asks what animal the user wants to view and lists a about 25 animals (grouped according to regions) next to each animal is a number, and so the user will have to input a number of the animal they want to see

The program will then have to recall that animals file and display it to the user.

So basically I would just like to know the simplest way to do the subsystem above - i know it is pretty simple but i'm quite useless when it comes to C. Any help whatsoever would be appreciated.
Thanks!! :thumbup:

#2
abdul.gafur

abdul.gafur

    Learning Programmer

  • Members
  • PipPipPip
  • 42 posts
int main() {
   printf("Hello");
   return 0;
}

Clue :
  • display all of animals included their number
  • read input from user
  • create a 'switch case' to determine what animal is chosen (in this case is a number)
  • display related information about the selected animal


#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Is your problem writing the code, or compiling it? In either case, we'll need to see what you have so far to help.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#4
brade8000

brade8000

    Newbie

  • Members
  • PipPip
  • 21 posts
If you post the code we can try and help.