when trying to use gets() when i compile it will not allow my program to run. it says that it is dangerous and should not be used. i am using code blocks for ubuntu. is there a way around this or an alternative?
Thanks in advanced!!
when trying to use gets() when i compile it will not allow my program to run. it says that it is dangerous and should not be used. i am using code blocks for ubuntu. is there a way around this or an alternative?
Thanks in advanced!!
Cprogramming.com FAQ > Get a line of text from the user/keyboard (C)
Edit: Since you are using Linux, you might want to have a look at this function.
Last edited by kermit; 09-12-2010 at 07:41 PM.
whats he function called kermit? give me the name and ill google it. thanks
How about you read what is at the links I posted; Otherwise, if you can't be bothered to do that much, then I can't be bothered to type out the names of the functions.
Becuase i do not click on links or download files! just something i dont do. Its not like ur the last guy on earth and i absolutely need you bro! If you dont want to help and be a cocky ..........hole then that is fine i do not need your help! Thank you
How the hell do you function on the Internet if you "do not click on links or download files"??? How did you manage to get here? How did you manage to download Code::Blocks? kermit has 1,402 posts, you think he's going to steer you wrong? Please. Don't be ridiculous.
I doubt that it won't allow you to run program.when trying to use gets() when i compile it will not allow my program to run. it says that it is dangerous and should not be used. i am using code blocks for ubuntu. is there a way around this or an alternative?
What's wrong with clicking on a link?
c-faq12.23 why gets() should not be used and alternative function.
it wont let me run the program because it says it is dangerous but the reason i dont click on links people give me is a personal reason but i understand y it shouldnt be used i just dont understand y code blocks wont allow me to run it. and i am hoping for an alternative
me not clicking on links people give me is my issue but there was no reason to come off with an attitude lol sorry if i came off wrong, sorry kermit, sorry to the forum and just please understand i will not click a link given by another! an dif this is a problem let m eknow! but if not then help me out please
Kermit's link let to information about "getline".
If you hover the mouse over the links your browser should show you the URL they're pointing to... All you need to do is exercise a little wisdom and not click on linkes to harmful files. We're here to help, it's probably not a very good idea to blow us off.
How To Ask Questions The Smart Way <--- "How to ask questions the smart way"
You know, web pages are downloaded to your system. You had to get to this page by clicking links. Using google, you are clicking on links so none of this makes since.
Anyway, you could use the "fgets()" function or "scanf()" but I wouldn't use the latter for strings.
EDIT: I use Code::Blocks and I am able to use gets() without a warning.
you know what yall are here to help me yall are right not cause harm im sorry for the trouble i have caused and i am gonna start with kermits link and trust in the site that yall are going to guide me so my sincere apologies again!
Heh, the first link just directs you to a page on THIS website. You are in good hands.