132,726 Archived Topics
Remove Filter ![]() | |
I need to create a method that counts words and lines using specific guidelines and I can't figure it out: Update the count of words & lines in the file as each character is read create a void method, CountIt(), to count the lines and words Parameters: pass in the … Software Development | |
I have an assignment to show a brute force algorithm on combination and permutations. All I am given is the function headers, and I cannot see the main. I'm having trouble understanding how sets work... Here is my header function for combination [code=c++]set< set<char> > powerSet(set<char S>)[/code] now, I'm not … | |
I'm trying to my friend with an assignment to turn a number from Fahrenheit to Celsius and Kalvin. All that works fine and good. The problem is that his professor wants him to "The main() function ought to use a loop to allow the user to enter a temperature repeatedly, … Software Development c | |
I have to write a simple program that declares three arrayLists referenced by the objects named priceList, quantityList, and amountList. Each arrayList should be declared in main() and should be capable of holding a minimum of 10 double-precision numbers. The numbers that should be stored in price are 10.62, 14.89, … Software Development java ![]() | |
Hi I'm in some serious need of help with a homework assignment. I have to write a program that takes a three word phrase from user input (through JOptionPane) and my code has to convert it to uppercase and then just take the first letter of the three words. here … Software Development java java-swing ![]() | |
I have this code here [code]#include <iostream> using namespace std; int checkLevel(){ int exp[101]={0,1,6,21,51,100,172,274,409,583,800,1064,1382,1757,2195,2700,3276,3930,4665,5487,6400,7408,8518,9733,11059,12500,14060,15746,17561,19511,21600,23832,26214,28749,31443, 34300,37324,40522,43897,47455,51200,55136,59270,63605,68147,72900,77868,83058,88473,94119,100000,106121,112486,119102,125971,133100,140493,148154,156090,164303,172800,181585,190662,200038, 209715,219700,229997,240610,251546,262807,274400,286329,298598,311214,324179,337500,351181,365226,379642,394431,409600,425153,441094,457430,474163,491300,508845,526802,545178,563975,583200, 602857,622950,643486,664467,685900,707789,730138,752954,776239,800000}; int level = 1; int nextLevel = 2; int PokemonExp = 0; int input; int num = 1; while (num == 1){ cout << "Enter exp amount: "; cin >> input; PokemonExp = … Software Development c++ | |
i know nothing about programming but started learning python yesterday, and have learned some basic things. my dad is a programmer and challenged me to write a program that would be like '20 Questions'. i started it using the few things i know, and i think the way i started … Software Development python | |
Hi ,I just started learning assembly ,and I have a question when we add unsigned 255 and 1 in 8 bit registry CF=1 and OF=1 right, and how do we realize if this numbers are sign or unsigned Thanks Software Development assembly | |
Right now I have three classes from following a tutorial I found online. It draws a red square and a blue square to the screen and lets the user control the red square. The issue I am having is getting it so that when they intersect from the bottom of … Software Development java | |
I'm required to construct a three-dimensional array (a "universe"), but unlike traditional array navigation where you go to the end of the column, row, etc., increment and start at the beginning, I am required to move in reverse (like actually navigating a cube). The precise instructions: - Move along a … | |
[code] Dim iArr As Array For Each iArr In m_alTabell 'ReDim myArr(16, 11) If i dim iArr(0,0) as string I could do this... ii = ii + 1 iArr(i, constanter.colNames.colValue) = m_objList.GroupItems.Item(ii).ListItems(i).Value 'm_alTabell.RemoveAt(ii - 1) 'm_alTabell.Add(iArr) 'm_alTabell.Insert(ii - 1, iArr) 'iArr.CopyTo(m_alTabell.ToArray, ii - 1) 'al.Add(iArr) Next iArr [/code] I have … Software Development vb.net | |
I'm writing an inventory program for my uncle's warehouse, which has never been counted in 20 years. (yea it's taking me a week so far and still counting parts) I want the program to be serverless and just run on his laptop (which I'm still fixing also). I thought of … | |
just like we bring JButton images in java..............can we bring that type of 3Dbutton images on buttons in c# forms Software Development | |
Hey guys, im doing a rock paper scissors program for h/w i got it done but im getting an error and i cant figure out whats wrong. [code] public static void main(String[] args) { int pcpick; int userpick; String userChoice = JOptionPane.showInputDialog("1 Rock, 2 Paper, 3 Scissors"); int choice = … Software Development java | |
Hi all I need to change something that is hard coded into my application - Souds simple i know - however......... In essence what i need is a single word that will be interchangable and will be available straight away and the next time the application starts up. So need … Software Development vb.net | |
Bellow is the code i am using to connect to a webservice that i created that has basic math web methods like add, subtract, etc... this is the button for my windowsform app that connects to the webservice it has 2 text boxes a label to display the answer and … Software Development | |
Hello, Once more, I'm having a problem which I've been breaking my head about for a few hours searching Google to no avail, and came here again for some consult about. The thing is this; I have an image file, the size of 16x16 pixels, and I want to paint … | |
Hi Everone, I need Help With My code If there is any mistake Please Let me Know I will correct it it is a ping program it will ping an ip address or an address like [url]www.daniweb.com[/url] [CODE]#include <windows.h> #include <iostream> #include <conio.h> using namespace std; int main() { int … Software Development c++ | |
[QUOTE=letmec;107703]I'm working on TSR through C. i have writen dogens of them for dos, :rolleyes: but it works for dos only, can you tell me who to write TSR's for windows. Thankyou....[/QUOTE] I want to post the same question also. All I understand is: Windows (say Windows 98) runs under … | |
Hi all, I cannot seem to grasp the use of wrapper classes, or rather how to use them. I am in the middle of practicing for an exam tommorrow but I am a little stumped with the following task: [I]Create an overloaded setValue method that recieves a String parameter. This … Software Development java | |
I have a Datagridview in C# windows Application In it i have one ComboBoxColumn out of 12 datagridview columns Now I want to disable/enable cells of particular row on ComboBoxColumns selected index chaged event according to Condition. Not Gridview's whole column should enable/disable, I want Cells of particular selected Row … Software Development | |
Hi All, I want to add some admin privaliges to my program, its simple enough, when the user is logged in as admin certain buttons are enabled, when the user is logged in as anyone else, these buttons are disabled. Please see my code below [CODE] Private Sub MRMMain_Load(ByVal sender … Software Development vb.net | |
hi guys, i am asked to do a game where the player plays against computer where each one has to put into the pursue a piece of coin, it cas be 5cent, 10, 25 or a dollar, the one that puts the biggest piece can take the change for it … Software Development java | |
I have been trying to mimic GoogleReader's Json output, particularly the subscription listing. I started out creating classes for deserialization but I don't have a full grasp of the concepts. It crashes when I really try to consume the Json file, but when I generate my own serialized file it … | |
I have been told by a number of people to use xpath instead of regex for some of my regex searches. What advantages does xpath provide over regex? I can't find a webpage that says that. Been through over 10 pages of search so far. | |
Hi, I am pretty new to Java. I have some basic questions. [CODE] public class Array { private Object[] values; private int count; private boolean sorted; public Array (int max) { this.values = new Object[max]; this.count = 0; this.sorted = true; [/CODE] I am kinda confused at line 9. It … Software Development java | |
I do not know if I should use a 2D or just two seperate arrays to make this easier. I have two arrays. One is just an array like {1,2,3,4...n} and the other has values that correspond to those and make pairs. I want to create an array that stores … Software Development c++ | |
Hi I've got a strange problem that i'm going to explain but before, here is my code: /!\ This is not my finished application /!\ [CODE]#include <windows.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <conio.h> struct Date { short Jour; short Mois; short Annee; }; struct Ouvriers { char Genre; … Software Development c | |
hi, i need help on calendar picker.i placed a calendar control on a form.once i click on any date,i want the date value to be inserted into fields in database.i tried searching for the codes bt what i got was a manually designed calendar by a programmer.is it possible to … Software Development microsoft visual-basic ![]() | |
Hi guys, I am new to C++ and am trying to display the contents of an array in the form of {1,2,3,4} but am having some difficulties, they get printed but there is a trailing comma {1,2,3,4,}....how can I get rid of this? this is my code: [CODE]cout << "\nArray: … Software Development c++ | |
Hi I posted this on another thread but messed up the title (called it y2exe) and I want to make sure this gets found if someone can help. I'm using py2exe and pysnmp, and they seem to be incompatible, at least on the oneliner form I'm using. Pysnmp claims to … | |
Hi Iam running into a problem when using classes and inheritance. I have a base class which contains a member function whos job it is to create and intialize some variables that are shared between other classes. The other classes are inherited from the base class and the variables are … | |
Hi all, I have created the following code that deletes a Vector entry. Currently it gives an error if you enter a string that is not present in the Vector. Can anyone recomend a way of looping back to the original text entry point, rather than terminating the program if … Software Development java | |
The code works, I just want to see if someone can help me cut lines in main only. [CODE]#include <iostream> #include <sstream> #include <windows.h> #include <time.h> #include <string> using namespace std; struct tm * timeinfo; // Holds information about time in form of struct class Date { public: int m_nMonth; … Software Development c++ | |
This program is based upon the quadratic equation. If I enter a negative discriminant it prints NaN instead of "No real solutions". Any help will be appreciated. Why is it printing NaN twice??? What modifications are needed in the code? Please help!!! [CODE]import java.util.Scanner; class QE{ private double d=0; private … Software Development java | |
hi guys..i have a bound datagridview..and i wrote that code to trigger when the cell content is changed [CODE] private void datagridview1_CellValueChanged(object sender, DataGridViewCellEventArgs e) { MessageBox.Show("Content Has Changed"); }[/CODE] but it is fired 7 or 8 times when the form is loaded and it is fired again whenever i … Software Development | |
hello guys....if anyone can help me....i need to Save Info From A dataGrid Into an Excel File using Save Button....i am using vb 2010 and 10x from now Software Development vb.net | |
My script is as follows : [COLOR="Red"]echo " enter the directory path of file " read DIR_PATH path=$DIR_PATH cd $path echo "">/tmp/df_mac echo " enter the name of file" read EXCEL_FILE echo $EXCEL_FILE src_file=$EXCEL_FILE count=`expr 1` one=`expr 1` while read line do IDX=`expr index $line \/` echo $IDX echo $line … Software Development shell-scripting | |
Hello, i´m beginer in XSL and i need help. In attachment, is source xml and my xsl. I have problem with filtering element date. Because, when i run transform result is duplicate. Can you help me? thx Stan Software Development xml | |
i am trying to implement a simple keylogger... my code works fine and is able to detect simple keystrokes.... the problem that im experiencing is that whenever a key is pressed it remains pressed forever even after i release the key unless i press some key again...and if i try … Software Development c operating-system ubuntu | |
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement.[CODE] String id= t1.getText(); int c1=Integer.parseInt(rc1.getText()); /* rc1 is a radiobutton */ statementobj.executeUpdate("Update tablename(fieldvalue) values('"+c1+"')where ID='"+id+"'"); [/CODE] Software Development java java-swing microsoft-access sql | |
The output I am getting is : [CODE]You will be entering the names of ten students their corrsponding marks in Physics, Chemistry & Maths. Enter the name of the student : student1 Enter the marks in physics of STUDENT1 : 43 Enter the marks in chemistry of STUDENT1 : 54 … Software Development java | |
Hi, I created a class named [B]Test.java[/B] [CODE] public class Test { public Test() { System.out.println("Testing......"); } } [/CODE] It sucessfully compiles. Then i create another java class [B]Menu.java [/B]and here i trying to create an object of the Test class. [CODE] class Menu { public static void main(String[] args) … Software Development java | |
Hi, I got this code snippet with the following usage: [CODE] def main(): # sample usage manager = LoadManager() manager.msg = ('www.example.com', '/') manager.start(threads=5, interval=2, rampup=2) if __name__ == '__main__': main()[/CODE] Works fine,but i would like to supply the following arguments through command line: msg threads interval rampup Plz could … Software Development python | |
hello can someone please advise as to how can i insert tab after every word while inputting it in a file? i have to read all the lines in a file. the file has tables. there are random spaces between the words. Output is to put this table to another … Software Development file-system python | |
Ideas on Database Design in warehouse operating system Software Development database-design operating-system visual-basic | |
Can anyone give suggestion about Perl Script for Automation Testing(check http request & response).with some sample code. Software Development perl | |
I am making a console application. I want to make a method to stop the application. Can anyone help please. This is my code. [CODE]public void menu() { System.out.println("1 to go to menu help, 2 to go to head menu 3 to stop"); int optie = scanner.nextInt(); switch (optie) { … Software Development java | |
have pivot table set up in report format with various fields from a CRM database. I want to clear blank data in the cells when the user click in the pivot table cell to open a certain cell to view the data that is whtiin the pivot table. it creates … Software Development visual-basic | |
could you give me a syntax for insert into using db2 as the database and vb6 as it's front end? i am trying to insert a numeric value to my table coming from a host variable in vb6, however, i do not get the proper syntax for it..could you help … Software Development visual-basic |
The End.