Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
gets
- Page 1
Re: LNK2005 unsigned short
Programming
Software Development
3 Weeks Ago
by Salem
… header is included exactly once. But as soon as it
gets
a bit more complicated, the idea falls apart.
Re: Tribal Knowledge: atoi is evil!
Programming
Software Development
3 Weeks Ago
by hladysz
Excellent post! Could you please fix the condition? ```c if (end != buf && errno != ERANGE && (temp >= INT_MIN || temp <= INT_MAX)) { ```
Re: Tribal Knowledge: atoi is evil!
Programming
Software Development
3 Weeks Ago
by Salem
> hladysz said > please fix the condition: Please explain why you think this is the wrong condition.
Re: Should we noindex our JSON files?
Digital Media
Digital Marketing
Search Engine Strategies
2 Months Ago
by Chris Hüneke
… of the complete page by Googlebot ensures that this content
gets
indexed without needing the JSON files themselves to be indexed… set them to noindex. JSON files contain data that eventually
gets
displayed on the page, but the files themselves shouldn’t…
Re: Why Startups Need Solid and Robust Data Pipelines
Programming
Databases
1 Month Ago
by meyerrluanna
… streamline processes and ensure efficiency. But one area that often
gets
overlooked, especially in fast-paced environments, is customer experience. If…
Re: PHPMailer with PDO
Programming
Web Development
2 Months Ago
by János_6
Hello! Could you please to send me the code snippets tap for PDO examples that needs to PHPMailer? Thank you very much in advance.
Re: PHPMailer with PDO
Programming
Web Development
2 Months Ago
by pritaeas
https://www.daniweb.com/programming/web-development/code/435142/using-php-pdo-with-error-checking https://www.daniweb.com/programming/web-development/code/462126/pdo-binding-example
Re: PHPMailer with PDO
Programming
Web Development
2 Months Ago
by János_6
Thank you for your reply! Sorry if I was not clear what problem I need to solve. I actually have a problem with the PHPMailer. My app (I run it on localhost) always displays this error message: SMTP connect() failed. I just don't know why. I tried many things to fix the error but no result. I thought PHP 8.2 was the problem but no. :( Maybe if you …
Re: PHPMailer with PDO
Programming
Web Development
2 Months Ago
by pritaeas
IIRC PHPMailer has a debug setting that allows you to see more issues. See the PHPMailer docs.
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
9 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
9 Years Ago
by anwar sholi 2
hii i want to know how (
gets
)works
Re: gets
Programming
Software Development
9 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
17 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
17 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
12 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
12 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
12 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
17 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
12 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
12 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
12 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
12 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
17 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
17 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
Forum Categories
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
Forums
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
© 2024 DaniWeb® LLC