Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
gets
- Page 1
Re: Is linux your daily driver?
Hardware and Software
Linux and Unix
4 Weeks Ago
by Dani
Wow, I'm surprised how many people here are primarily Linux users compared to how infrequently our Linux forum
gets
posted in these days.
Re: Are we being played by AI? Let's Discuss!
Community Center
Meta DaniWeb
3 Weeks Ago
by Dani
Having a very, very difficult time. My eye is swollen shut and I’m in danger of losing my vision as the shingles rash
gets
closer and closer to my cornea.
Re: 💻 What’s the First App You Install on a Fresh Windows Machine?
Hardware and Software
Microsoft Windows
1 Week Ago
by Reverend Jim
… files. With OneDrive active, anything that goes into My Documents
gets
stored on C. Not only that, but those files get…
Re: Why my created link is not updating as a backlinks?
Digital Media
Digital Marketing
Search Engine Strategies
2 Months Ago
by MasoodDidThat
… backlinks, check on tools like semrush and ahref. A backlink
gets
updated when google index the page where you have submitted…
Re: Ensuring data consistency and integrity
Hardware and Software
Cloud-based Apps
2 Months Ago
by Dani
… to use by passing in a server key into all
gets
and sets. We make sure that all cached items that…
Re: A reliable way of detecting AI content?
Hardware and Software
Cloud-based Apps
2 Months Ago
by Dani
AI generated content is very obvious to me, as well. However, DaniWeb
gets
a ton of AI generated submissions every day and I am looking for a reliable way of blocking it without having to delete the posts after-the-fact, and also without having to stick all new posts into a moderation queue.
Re: Looking for Apple Developer enterprise account
Programming
Software Development
1 Month Ago
by Salem
And who's head is in the noose when you mess things up with my enterprise account? Like for example, bad software
gets
signed with my key, or your "company" is in an embargoed jurisdiction? If you need it, buy your own.
Re: Looking for Apple Developer enterprise account
Programming
Software Development
1 Month Ago
by Sammi_2
… my enterprise account? > > Like for example, bad software
gets
signed with my key, or your "company" is…
Re: How to Implement Lazy Loading for Faster Web Portals
Programming
Web Development
1 Month Ago
by Dani
… how much traffic you get. For example, suppose a webpage
gets
frequently updated so you decide to cache for only an…
Re: Gets on linux - not working :(
Programming
Software Development
13 Years Ago
by Narue
gets
() is broken by design and you should use fgets() instead, …
Re: gets
Programming
Software Development
10 Years Ago
by L7Sqr
… for an open source implementation of it (FreeBSD, for example: [
gets
.c](http://svnweb.freebsd.org/base/stable/10/lib/libc…
gets
Programming
Software Development
14 Years Ago
by harikrishna439
I get a warning message while executing a C program containg '
gets
'.Is there any way to avoid this.Currently I am using ubuntu OS>
Re: gets
Programming
Software Development
14 Years Ago
by Ancient Dragon
[URL="http://www.gidnetwork.com/b-56.html"]Don't use
gets
()[/URL] Read that link -- it contains a lot of good-to-know dos-and-don'ts.
Re: gets
Programming
Software Development
14 Years Ago
by gerard4143
[QUOTE=harikrishna439;1337910]I get a warning message while executing a C program containg '
gets
'.Is there any way to avoid this.Currently I am using ubuntu OS>[/QUOTE] Yes, use a crappy compiler that doesn't warn you of 'potentially' bad...bad programming practises. And its compiling the program not executing it that generates the warning...
gets
Programming
Software Development
10 Years Ago
by anwar sholi 2
hii i want to know how (
gets
)works
Re: gets
Programming
Software Development
10 Years Ago
by Schol-R-LEA
No, you don't. You want to stay away from `
gets
()` entirely, in fact. The function is extremely dangerous, because it is prone to buffer overruns, and no experienced C/C++ programmer still uses it.
Re: gets() problem in C
Programming
Software Development
18 Years Ago
by Ravalon
… age; printf("\nEnter name : ");
gets
(name); printf("\nEnter age: "); scanf… age; printf("\nEnter name : ");
gets
(name); printf("\nEnter age: "); scanf…flush_stdin(); printf("\nEnter address : ");
gets
(add); printf("\n\n\nName is %…
Re: gets() problem in C
Programming
Software Development
18 Years Ago
by ankit_the_hawk
…age); printf("\nEnter address : ");
gets
(add); printf("\n\n\nName is %s…int age; printf("\nEnter name : ");
gets
(name); printf("\nEnter age: "); scanf(&… flush_stdin(); printf("\nEnter address : ");
gets
(add); printf("\n\n\nName is %s…
gets() working erratically
Programming
Software Development
13 Years Ago
by PrimePackster
… of 20 people using structures. But when i run it,
gets
gives me error....... Here is the code... [CODE]// Hihi.cpp…<<"Enter the district"<<endl;
gets
(addr[i].district); cout<<"Enter the state…"<<endl;
gets
(addr[i].state); cout<<"Enter the pincode…
Re: gets() problem in C
Programming
Software Development
13 Years Ago
by thisun
…[20],add[20]; int age; printf("\nEnter name : ");
gets
(name); printf("\nEnter age: "); scanf("%d"…;,&age); printf("\nEnter address : ");
gets
(add);
gets
(add); //repeat
gets
(); printf("\n\n\nName is %s",name…
Re: Gets on linux - not working :(
Programming
Software Development
13 Years Ago
by can_surmeli
…'s going on yashsaxena's side is the problem with
gets
() function itself. It's not something new & it's… are based on. e.g. If you've continuous
gets
() functions or a
gets
() function after a scanf() function then compilers skip… that
gets
() function. Sure, I can guide you better if you've …
Re: gets() working erratically
Programming
Software Development
13 Years Ago
by Narue
… is largely irrelevant. The important piece of information is that
gets
() is quite literally impossible to use safely. There's always…] char buf[N]; cin >> buf; // No better than
gets
() [/code] But at least here there's a fix for…
Re: gets() working erratically
Programming
Software Development
13 Years Ago
by PrimePackster
… is largely irrelevant. The important piece of information is that
gets
() is quite literally impossible to use safely. There's always…] char buf[N]; cin >> buf; // No better than
gets
() [/code] But at least here there's a fix for…
gets() problem in C
Programming
Software Development
18 Years Ago
by ankit_the_hawk
I have been experiencing problems in using the
gets
() command in C. Whenever I use it twice followed by …],add[20]; printf("Enter name : ");
gets
(name); printf("Enter address :");
gets
(add); printf("Enter age :"); scanf…
Re: gets() working erratically
Programming
Software Development
13 Years Ago
by zeroliken
Don't use
gets
() -->[URL="http://www.gidnetwork.com/b-56.html"]Article explaining why not[/URL] Try to use fgets() instead
Re: gets() working erratically
Programming
Software Development
13 Years Ago
by WaltP
#1) What [B]zeroliken[/B] said #2) It's C++. Why are you using the terrible and dangerous [B]C[/B] function [iCODE]
gets
()[/iCODE]? Use [iCODE]getline()[/iCODE]. #3) [ICODE]cin[/ICODE] is your problem. Reading an [I]int[/I] leaves the NEWLINE in the input buffer. The solution has been explained many many times on this site -- do a search.
Re: gets() working erratically
Programming
Software Development
13 Years Ago
by PrimePackster
[QUOTE=zeroliken;1737194]Don't use
gets
() -->[URL="http://www.gidnetwork.com/b-56.html"]Article explaining why not[/URL] Try to use fgets() instead[/QUOTE] Thank you very much! That explained a-lot.
Re: gets() working erratically
Programming
Software Development
13 Years Ago
by PrimePackster
… using the terrible and dangerous [B]C[/B] function [iCODE]
gets
()[/iCODE]? Use [iCODE]getline()[/iCODE]. #3) [ICODE]cin[/ICODE] is…
Re: gets() problem in C
Programming
Software Development
18 Years Ago
by Salem
…/cgi-bin/smartfaq.cgi?answer=1049157810&id=1043284351"]
gets
()[/URL], it is a totally unsafe function. Using scanf() comes… of leaving the newline behind, ready to mess up your
gets
() calls. Always use [INLINECODE]char buff[BUFSIZ]; fgets( buff, sizeof…
Re: gets() problem in C
Programming
Software Development
18 Years Ago
by Aia
… you C programming, all of them teach you to use
gets
() and scanf() as the default to read input. I understand… you to do some search in this forum for the
gets
() and scanf() and you will learn why your code has…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC