AI Frontier 2024: A Rapid Start to a Transformative Year Community Center by Johannes C. **From the White House's new AI strategy to Neuralink's latest brain chip breakthrough—explore mind-blowing developments in the world of tech and AI in the first month of 2024.** ![neuralink-scenario.jpg](https://static.daniweb.com/attachments/4/0f2b2bf71435ce660119b1e9a0ea9126.jpg) In many ways, 2023 was the year of AI, marked by astonishing… Re: Help with functions - basics Programming by jkon It seems that the issue has nothing to do with C++ or with functions. If you are new to programming why not try some tutorials in an easy accessible language (like JavaScript for example) and when you understand a few basics ( like null , functions , variables , loops , conditions ) move to a C++ tutorial for beginners ? Re: Improve HAVING BY performance Programming Databases by Reverend Jim I have a friend who spent the better part of a career doing SQL. I wrote up your question and sent it off to him. Just for sh!ts and giggles, he decided to feed it to ChatGPT first. He said that what he got back was what he would have written if he spent a lot of time researching. Here is what ChatGPT said... >Yes, you're correct that … Re: 4 weeks in.. do-for-while loops? Programming Software Development by kakeen Heya guys.. thanks for all the help.. I think I got this program right though.. I don't really have the program to test it out.. Could anyone please tell me if this program works... [code] #include <stdio.h> #include <conio.h> #include <math.h> int loop; int FiboNum, FiboDisp; char return; char choice; main (){ do { int … Re: Looping to sort! Programming Software Development by Fbody Looping and arrays are heavily-linked concepts. It is pretty much impossible to properly process an array without some sort of loop. I would read the chapter again, VERY carefully. There must be some sort of data structure in it that will tell you how to handle the multiple values, perhaps not an array, but something. Do articles with keywords really help with digital promotion? Digital Media Digital Marketing by Alex314# Conditions: no budget for advertizing, no sponsors. What are good ways to promote for free. (p.s. guest posts are not working). Re: oh man i really need help! Programming Software Development by Lerner Looping just means do the same thing one or more times. So if you can write code to determine if a given char has a given value, then you use that in a loop using a counter to determine how many of a given char there are in a given string. The tricky part sometimes comes in determining what information to use starting and stopping the loop. … Re: Activity stream Community Center Meta DaniWeb by JorgeM Looping? what looping, the only looping was my eyes trying to keep up with the information on the screen. Re: jquery datepicker disable dates Programming Web Development by Airshow Looping through an array with [iCODE]for(var x in arr){}[/iCODE] is decidedly dodgy. The order is unpredictable and x could point to objects other than the array elements. Besides, there appears to be no value in looping and certainly no point having two nested loops. Unless I have made a mistake, your latest version of [iCODE]… Re: Random Number Problem For Lottery Program Programming Software Development by Comatose Looping is a fun trick where you can do something a number of times or until a specific condition is met. There are a few kinds of loops, but two of the main ones are a "for loop" and a "do loop". A For loop is a way to execute the same code, a specific number of times. So, If I wanted to add the numbers 1 to 10 in a listbox,… Re: I want to upload multiple images to a sever using php/mysql Programming Web Development by sureronald Looping is the way to go as Menster has just shown you here. in your html add as many file input fields as you want but name them all as upload[] so that PHP will take the name upload as an array when it is posted. You can then loop through the array as you do your saving. I'm just explaining Menster's code /*Happy coding*/ Re: Password verification C++ Programming Software Development by Luther von Wulf Looping over the string keep in mind that the code is looking for a single instance of the character type. Avoid breaking the loop until the end. Your code does not work because the first loop in verifyPass returns false if *any* of the characters in the whole string is not lower case. One loop can be used with flags and then the flags are … Re: Java allowing user to create new variables Programming Software Development by jon.kiparsky Looping through the members of an ArrayList is easy enough: [CODE]for (Flight f: flightsList) { // do what you want to do with each flight: f will take the value of each one in turn }[/CODE] Quuba's solution can work, but arrays are fixed, so you'd have to put in some provision for resizing. That's not very difficult, but the work has … Re: Search Array Programming Software Development by ~s.o.s~ Looping over the array and comparing values would be the simplest solution. If it is an array of primitive values, use the comparison operator [icode]==[/icode]. If it is an array of reference types, use the [icode]equals[/icode] method (or [icode]compareTo[/icode] if the reference type implements natural ordering). Another simple way would be to … Re: Upper-Triangular Matrix Inverse Using Back-Substitution Programming Computer Science by Rashakil Fol Looping up to j-2 sure looks dubious. Re: Failing to close after loading array Programming Software Development by nezachem Looping [ICODE]while(!data.eof())[/ICODE] is incorrect. It causes one extra (unwanted) read, which in your case leads to a classic buffer overflow. Re: Diamond asterisk Programming Software Development by mharicz looping statements if n=5, output ******** ****** **** *** * plz answer :( Re: Alternative to executing SQL in a loop to update multiple rows? Programming Software Development by thines01 Looping for the update is pretty standard. There are ways of sending minimal updates, but you really need to know your data (and the table structure). One of the better tried-and-true techniques is to use stored-procedures where you are sending the procedure name and the parameters. The next best is to prepare-and-parameterize your query, so (on a… Re: Why isn't this array working? Programming Software Development by vmanes Looping 26 times to move one place, doing that 25 times, is really a trivial amount of work for a current computer - it's only 650 executions of the loop body. Now if it were a 1000 character alphabet you were shifting 500 places, that's starting to be something to be concerned about. Re: Activity stream Community Center Meta DaniWeb by Dani Looping as in if there was no new information to display, it looped back to 10 minutes ago and replayed the last 10 minutes. Re: Word Association Game Community Center Geeks' Lounge by roryt conditions --> IF Re: Fantastic word game Community Center Geeks' Lounge by JJ___ Conditions in the UK recently are certainly worthy of discussion. We get excited when the sun shines. Re: Looping through file problem Programming Software Development by mchin131 [QUOTE=VernonDozier;1587385]Which makes sense looking at the code. Have you tried Walt P's suggestion yet? Copy line 27 to line 35 while you're at it.[/QUOTE] I have done both your suggestions. The masterfile is looping correctly, but the transaction only lists the first one and then stops, basically only showing the first line. If the … C++ looping program Programming Software Development by Adam Ma Ok so i have trouble with looping with while and for statments heres the questions: 1. Write a program that gets a positive integer from the user and prints all the numbers from one to that integer. If the inputted number is zero or negative, then the program will print an error and quit. I dont have much, but this is all i have: [CODE]#include &… Re: C++ looping program Programming Software Development by cherrymae.calma in using while looping statement your need the following the initialization,logical condition,incrementation or decrementation. Looping problem Programming Software Development by jason0202 Hi everyone! I'm trying to write a program which can run a loop without interrupt but still can accepts input from user anytime. My program is like this: A bunch of word will drop down(using looping) User have to enter letters for each word but the words will still continue drop down without waiting for user input. After finished enter … Re: Looping Using Recursion Programming Software Development by Harold_2 The right answer depends strongly on external unspecified requirements and environmental conditions. If you know that the depth of the tree is limited, AND you want a solution with small, deterministic execution time, then recursion is the right answer. If you want a robust implementation that can handle any tree depth, then by all means use … Looping a program Programming Software Development by jessicamelillo I have a project due for my computer programming class on Monday, and though I've completed the majority of the program, I now have to loop it and have no idea how. Here is the program: #include<iostream.h> int add (); int subtract (); int multiply (); int division (); void menu (); int main () { menu (); … Looping for binary search Programming Software Development by Nandomo Ok I got my program running, finally ^.^ Compiling without errors But I want the looping for the binary search to work. How do I get it to loop without sending back a return until all 5 numbers are done searching. [CODE]#include <cstdlib> #include <iostream> #include <fstream> using namespace std; // Size of each … Looping Data Programming Software Development by vividiah I will make the process of looping the data to save data into SQL Server database, but field data that must be stored is retrieved from the database access, data taken later not only a record, but a lot of records, so it takes a process of looping in it, I am still confused with the looping process, please help, This is my code which is simple, …