RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Ahref does some C :( HALP

0 Members and 1 Guest are viewing this topic.

*
Resident Cloud
Rep:
Level 91
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.

*
( ´ิ(ꈊ) ´ิ) ((≡^⚲͜^≡)) (ી(΄◞ิ౪◟ิ‵)ʃ)
Rep:
Level 102
(っ˘ڡ˘ς) ʕ•̼͛͡•ʕ-̺͛͡•ʔ•̮͛͡•ʔ (*ꆤ.̫ꆤ*)
2014 Avast Ye Merry Pirate!2013 Avast Ye Merry Pirate Award2012 Avast Ye Merry Pirate AwardFor frequently finding and reporting spam and spam bots2011 Avast Ye Merry Pirate2011 Most Unsung Member2010 Avast Ye Merry Pirate Award
StackOverflow is probably your best bet here =o
bringing sexy back

*
Resident Cloud
Rep:
Level 91
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!
« Last Edit: March 28, 2011, 03:44:42 PM by ahref »