The RPG Maker Resource Kit

RMRK General => General Chat => Topic started by: ahref on April 04, 2010, 11:04:47 PM

Title: Ahref does some C :( HALP
Post by: ahref on April 04, 2010, 11:04:47 PM
Hello,

I've got an assignment to do in C about a taxi rank. The majority of the assignment is done which is a linear linked list derrived queue. Taxis enter the back of the taxi rank and leave via the front. Sound fun doesn't it.

Part of the assignment requires a command line based menu for specifying operations. e.g.arrive,leave,search.

While ive got these functions working i cant seem to get the actual entering of a string working.

Can anyone give me an example of C code where a string is got from the user, who types it into the command prompt window and then that string is stored within the program.

With this i should be able to finish the assignment :D

Thanks.
Title: Re: Ahref does some C :( HALP
Post by: Roph on April 04, 2010, 11:10:07 PM
StackOverflow (http://stackoverflow.com/) is probably your best bet here =o
Title: Re: Ahref does some C :( HALP
Post by: ahref on April 04, 2010, 11:12:31 PM
I'll try there too but i thought there were some resident C guys here :D

EDIT: A mate found this from google LOLOL,

I finished this assignment and got a good grade for it :blizj:, Code is available if you are interested.

HAI CHRIS!