Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
gets
- Page 1
Re: How do I make my code jump back to a previous line?
Programming
4 Weeks Ago
by Dani
Organizing code into functions is always important for readability and also to be able to reuse parts of your code as your app
gets
bigger. Thank you for posting your updated code to share with others :)
Re: Handling Performance Issues in TreeView for Large MLM Networks
Programming
Software Development
2 Weeks Ago
by Reverend Jim
Two possible ways to handle this: 1. Populate the tree in a separate thread 2. Only populate sub-nodes as required to view You can do option 2 by putting the "populate directly under this node" code in the event that
gets
triggered when you select a node.
Re: Do you fear that Google "AI Mode" will be the default option in Google ?
Digital Media
Digital Marketing
2 Weeks Ago
by Reverend Jim
…. Interestingly enough, you can ask a question two ways. One
gets
the AI summary and the other does not. 1. why…
Re: Crosshair has a vertical and horizontal line to view the value of the axis.
Programming
Software Development
1 Week Ago
by Dani
… write an entire mini-program that does X, it inevitably
gets
quite a few bits wrong, left out, etc. But if…
Re: Digital Marketing
Digital Media
Digital Marketing
1 Week Ago
by WendyDolan
… there AI tools, SEO plugins, social media schedulers, etc. It
gets
kinda overwhelming. 😅 Has anyone here seen a real difference from…
Re: Is linux your daily driver?
Hardware and Software
Linux and Unix
2 Months 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
2 Months 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
2 Months 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: Fujitsu Windows Server 2019 Servers Rebooting at 11pm every day
Hardware and Software
Microsoft Windows
1 Month Ago
by Dani
…, but just well enough to work. As long as it
gets
the job done, I suppose. NuGG: So sorry about hijacking…
Re: Getting in touch with Cloudflare billing
Hardware and Software
Cloud-based Apps
1 Month Ago
by toneewa
… FLARE A disputed charge back on a C/C always
gets
their attention, and billing would probably call you. I wouldn…
Re: Lots of new members but no one posts
Community Center
Meta DaniWeb
1 Month Ago
by Dani
… sneak around.) Once you earn 15+ reputation points, your profile
gets
moved to the /members/ folder. Too bad spammers waste their…
Re: Getting in touch with Cloudflare billing
Hardware and Software
Cloud-based Apps
1 Month Ago
by Dani
…; > A disputed charge back on a C/C always
gets
their attention, and billing would probably call you. I wouldn…
Re: Gets on linux - not working :(
Programming
Software Development
14 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
14 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.
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
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC