Member Avatar
Hello All, I am having trouble looping through a 2D array in C++ (should be very easy, but I am just starting C++). At the current moment I have this class file ... amd this header file: ... As you can see, I tried looping through that way, but what …
by sirlink99 44 in Software Development ()
Member Avatar
Hello! Badly need help. I need to do a program that will produce odd & even numbers using loop structure Sample output: Enter a number: 5 This number is an odd number! Input 1 to run the program again Input 2 to stop Enter your Choice: 1 Enter a number: …
by OFCLMAINrogieacuna in Software Development ()
Member Avatar
Can you please help me with my Problem here? What I want to do is: 1. Input Username & Password (Make Password in Asterisk (*)) 2. If it is True / Right Proceed to the Main Program 3. Else If False/Wrong give another Trial (Do you want to try again? …
by Khyxz in Software Development ()
Member Avatar
I have this simple problem but im still newb to vb.net where i should Reverse the "hello world" and the result "olleh" without the world without using any function like strReverse() its very hard for me any ideas would be helpful
by joshuajames.delacruz in Software Development ()
Member Avatar
Hi All, I have a game which I'm implementing parallax scrolling which is currently looping infinite. Is there a way I can pause the loop for x amount of time, or even stop the loop completely after x amount of time. Here a bit of my code so far:
by ogsirus in Game Development ()
Member Avatar
I have a python code that reads several csv files and writes teh data to a single file but every time it loops back around to the next file it prints the headers again. Is there a way to stop this I can post my code if it is nessisary.
by abaddon2031 in Software Development ()
Member Avatar
I am new to programming and I am having a problem grasping the concept of looping an array. How do I go about doing this?
by Tashella in Computer Science ()
Member Avatar
Hello, I'm currently working on a school project in which i can not get my head around into figuring out how to make a loop until the user has input an interger this is what i have so far : obviously more needs to be added but the program still …
by MrNoobieCoder in Software Development ()
Member Avatar
Here is exercise in error handling, while looping and for looping with itertools.chain. It is also exercise of functions not letting user to go without giving proper input. I call them to myself 'jail functions'. Here you could add as an exercise breaking out of loop and continuing until user …
by pyTony 888 in Software Development ()
Member Avatar
whats wrong with this code? It keeps giving me an "unreachable code detected " exception
by pwolf 14 in Software Development ()
Member Avatar
Member Avatar
In this code, I need to put a limitation in every part where the user is asked to input data. The user will be asked to input a grade ranging from 50-100, and if his input is not in the range, the program will display a warning, and if the …
by GeneClaude in Software Development ()
Member Avatar
Today I have finally made up my mind to quit bat scripting and go for powershell... I need to do a quick script bascially trying to looping through a command output.. can anyone shed some light? i tried well, guess my guess isn't correct. Can anyone help me with this? …
by k2k 5 in Software Development ()
Member Avatar
Member Avatar
I get an infinite loop when i input 1 and 5 in this program. Please help me detect the error.
by emokidzz in Software Development ()
Member Avatar
Hello, Would you please help me? my code is not executing loop to allow user to play again after user cin>> yes. also the code suppose to allow user 10 tries to guess the number then stop, I am using this code but it's not working.
by tmunyemana in Software Development ()
Member Avatar
Hi there, I was wondering what the string.split() does. And another question is that I want to loop through the class like Math and find out what functions are defined in it.But, I was not too sure how to that. I tried a couple of things but they unfortunately didn't …
by rotten69 20 in Web Development ()
Member Avatar
Hello, Im trying to design a module in which, using an equation, x and y coordinates are found and i want to display them in a list box. The general idea in my mind is that the program asks the user to enter the length and number of divisions (lets …
by hassan980 in Software Development ()
Member Avatar
Hi, I am hoping you guys could help me with this. I am trying to loop number into something like this. 0 12 345 6789 here is my code: I don't have any idea how will I do it like that I tried searching for other and did not understand …
by kiyu2keith in Software Development ()
Member Avatar
Hi all I apologies again in advance for the seemingly stupid question. I have tried googling this once but can't see to get the answer i'm looking for. Basically i have a form which can query the database depending upon what the user has selected. The trouble is if multiple …
by a_salted_peanut in Web Development ()
Member Avatar
I want to loop through directory and process the files in them. I do this with the following code. for (root, subdirectories, files) in os.walk(dirDialoog.GetPath()): for file in files: My problem is that the files processed 2 times. I tried the next code, but in that way the files weren't …
by zaatlob in Software Development ()
Member Avatar
im trying to make a simple calculator: loop = 1 while loop == 1: print "Welcome to Jakes' Calculator" print "1) addition" print "3) multiplication" choice = raw_input("Enter a number 1-4: ") break if choice.strip() == "1": a = input("enter the first number: ") b = input("enter the second number: …
by pythoner in Software Development ()
Member Avatar
I am having trouble correcting the syntax on this problem so far and I can't seem to find my mistake any ideas on what I am doing wrong ? The object of the program is to ask user for amount of money to put in the pot, and play until …
by aharrisii in Software Development ()
Member Avatar
I am writing this program about Gas mileage, In the program I am assigning a value that is -1 as a sentinel value, that's why I use the While loop. The problem is I can input gallon variable, but the miles variable keep repeating over and over again. My question …
by arold10 14 in Software Development ()
Member Avatar
Hello everyone. I can't figure out the best way to make a simple picture loop through the screen in a predefined trajectory (e.g. elliptic). Do i need to use some math or is there a way to like draw a trajectory and bind the pic to it? Thanks in advance.
by witchDoc in Game Development ()
Member Avatar
I have a loop that writes out data for franchises. It works the first time through, but not the 2nd. Here is the page where the data is written out: Here is the code that spits out the wrong data after the first successful loop. Any ideas? $areaCodeData = getData($sSql, …
by RockyMtnHi in Web Development ()
Member Avatar
I need some help with a code I'm writing. The user inputs some letters, a loop is ran to check if it's a vowel or consonant, then when the user is done it returns the total amount of vowels and consonants. The problem I'm having is the loop is suppose …
by MediumSoda in Software Development ()
Member Avatar
I am trying to print out a chess board on the console. The data structure i am using is a set of pairs. I am having trouble accessing the pair's elements. I do realize a map is probably better in this case but i am using somebody else's code so …
by megatron21 in Software Development ()
Member Avatar
I'm having a problem with a code to display the vowels used in a string for example: "I LOVE YOU" the code will display "The vowels used are: e i o u" Any help? I'm supposed to use loops such as foreach, for, do-while, etc. and arrays..
by rayrenz in Web Development ()
Member Avatar
I'm wondering if someone can help me figure out my getAverageLength method in the following code: package com.abc.text; public class StringProcessing { } The output is providing me with the total length of the string array, the part I'm stuck on is having the loop divide total length by number …
by JRDJ12 in Software Development ()