Re: How do I make my code jump back to a previous line? Programming 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 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 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 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 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 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 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 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 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 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 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 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 by Narue gets() is broken by design and you should use fgets() instead, … Re: gets Programming Software Development 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 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 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 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 by anwar sholi 2 hii i want to know how (gets)works Re: gets Programming Software Development 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 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 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 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 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 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 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 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 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 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 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 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.