Member Avatar
Hi guys, I have a class which contains similar property names like: ... I then have a method where I iterate through a collection and want to assign a particular property with a value based on the interation count. So if is the first interation Number1 should get the value. …
by ogsirus in Software Development ()
Member Avatar
I'm tryng to read sentence for sentence from an input with python: ... (For example: Hello, my name is Mattia) How i can read sentence for sentence? For example: 1 = "Hello" 2 = "," 3 = "my" 4 = "name" 5 = "is" 6 = "Mattia"
by Mattia_1 in Software Development ()
Member Avatar
Hi, I'm new to perl and I'm stuck at regular expression on which to get the data of deck, super and trial from an array. I have an input file as the following : ... Here is my code : ... I supposed to have an output of the following …
by analys in Software Development ()
Member Avatar
Hi, I guess I'll post here with my problem as well my introduction. I've coded in Java in high school for 2 years but my teacher was horrible so I decided to wait till college to take another programming class. Well I'm Programming Fundamentals and have been assigned a program …
by Megaz221 25 in Software Development ()
Member Avatar
I am trying to iterate through a string and save the characters in a character array. It iterates perfectly and prints the characters but when I try to save the characters in the Array or in a List, it gives me NullPointerException. Can anyone point out the mistake I am …
by sireiz in Software Development ()
Member Avatar
I have need to find a particular string from a text file. The user inputs the string they're looking for and the program searches through the opened text file to find that string. Is that possible? ...
by Damien_3 in Software Development ()
Member Avatar
Dear members, ... The book says......the following code fragment would help fix ideas about const further char *p = "Hello" ; //pointer is variable , as well string is <<< I find this wrong *p = 'M' ; // error p = "Bye"; //works const char *q = "Hello"; //pointer …
by surfingturtle in Programming ()
Member Avatar
Given the following code: String string = "0"; int x = Integer.parseInt (string); Which of these statements is correct and why? A) The code goes in error because the variable string is not an integer B) The code does not in error because the string "0" converts to the number …
by Biz_1 in Software Development ()
Member Avatar
Hello, I'm in a beginning Java class, and I am lost :( My homework calls for me to write a program that takes an integer (of unknown length) and prints it one digit per line, like: 5 6 9 8 6 4 3 I have been googling this for hours …
by gavriela in Software Development ()
Member Avatar
Enter a string: house (a)esuoH (b)ESUOH (c)esuoh (d)EhuoS (Last and 2nd letter changed positions) I'm done with (b) and (c), and I don't know how to execute the remaining 2. Any suggestions? Here's my code: include &lt;iostream&gt; include &lt;string&gt; include &lt;locale&gt; using namespace std; int main () { do { …
by violet101 in Software Development ()
Member Avatar
Could someone please help me where I can find a large recent list of; Emulated Devices User String Agents for Chrome, I can't find it in my searches.
by Siberian 1 in Web Development ()
Member Avatar
Howdy I have a timespan that contain in excess of 24 hours. For the example lets use a value of 1 day 6 hours and 32 minutes. I would like to get this into a string that displays "30:32". Have so far tried something along the lines of ... however …
by Mike Askew 131 in Software Development ()
Member Avatar
Hi, Im new to Java so Im trying out some excersises. The question asks to input IC number then get the digits for birthdate then display the complete birthdate. The output of this IC number : 900208-08-5386 ,should be something like this : 08 February 1990. I probably have to …
by nadiam in Software Development ()
Member Avatar
Hello am trying to encrypt my strings in delphi I already encrypted my needed strings in php but am having a little trouble getting the matching string from my delphi test application below is the php code am using to encrypt on website then following code is my delphi app …
by Simon180 -3 in Software Development ()
Member Avatar
I am trying to convert a file to a dictionary here is the contents of the file, ... And here is my code for conversion, ... The "self.curDir" is the directory with all my files, it opens the file fine but it returns a blank string and/or list after I …
by DragonMastur 23 in Software Development ()
Member Avatar
Hello. I was wondering if anyone could help me with a caesar cipher program I am attempting to create. I was asked to write a caesar cipher encoder program. Ok. No problem. This is what i got: import string def main(): print "This program will encode your messages using a …
by pyguy25 in Software Development ()
Member Avatar
Hi everyone, I'm new here. I don't know VBA and have been tasked with a VBA project for whatever reason. We have a recurring bug wherein a report we receive has semi-fake rows, causing all kinds of hell. The current logic I am attempting to execute should run as follows: …
by nugab in Software Development ()
Member Avatar
So the objective of this program is very similar to another C# homework problem (practically the same) but I am allowed to use arrays. I have been working on this for 10+ hours and I am losing confidence every second. I do not know what I am doing wrong; my …
by Brandon_11 in Software Development ()
Member Avatar
It took me 4 weeks to write this code. The chess game works now . there are no bugs... everything confirms to the chess rules (part from stalemate that i was too lazy to do). i have been learning java for 4 months. what do you think of my code …
by NewOrder -1 in Software Development ()
Member Avatar
Hey guys, Using PHP I store a datetime in a mySQL table. I am trying to draw that out and reformat the time. The datetime is contained within the array $user_data['6'] and the format in the mySQL table is set to datetime. The error I'm getting is Call to a …
by James_43 15 in Web Development ()
Member Avatar
The Swift computer language is the brainchild of a number of Apple associates. In my humble opinion it shows some nice features, but also some warts. Part 1 (constants, variables, strings, tuples, arrays) explores a number of the features to give you a taste of the language. I hope i …
by vegaseat 1,720 in Computer Science ()
Member Avatar
I am new to perl. In a string How do I replace a backward slash with a forward slash? when I call the following perl api $FindBin::Bin; I get the path as follows $myPath = c:/perl/test I would like to covert this to c:\perl\test I did try the following and …
by alan_123 in Software Development ()
Member Avatar
Hello, I have a table with a filed Customers defined as int(10) I have the following query: SELECT * FROM 'table' where ... = 'a' This query returns all entries which have 0 in this field, BUT a is not equal to 0 as we know? Also I can use …
by emilianjobs in Web Development ()
Member Avatar
Member Avatar
Is there a way to split a string at different types of characters into separate strings? ... Something like this? ...
by COKEDUDE 13 in Software Development ()
Member Avatar
Write an expression whose value is the result of converting the str value associated with s to an int value. So if s were associated with "41" then the resulting int would be 41.
by container54 in Software Development ()
Member Avatar
I'm doing a quiz game using netbeans. I've already done the randomization of questions. The problem is, how do i keep a question from repeating itself? ex: chose correct answer --> questionrandomizer comes in --> next question appears but it's the same question earlier here's my code: ...
by EarhawkPH in Software Development ()
Member Avatar
I have a class where there are a few ... variables that have few values that repesent color values. The class is basically used to get the color values. Is it better to convert this to enum? ...
by newcoder310 in Software Development ()
Member Avatar
How to search a string in table i.e. searchstring = "Gandhi Chowk" actual code: ...
by blueguy777 in Web Development ()