132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for 5ophie2012

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
Member Avatar for 5ophie2012
0
1K
Member Avatar for chaosgeneration

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 …

Software Development algorithm c++
Member Avatar for pseudorandom21
0
170
Member Avatar for jfunchio

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
Member Avatar for gerard4143
0
182
Member Avatar for montalbano80

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
Member Avatar for ztini
0
170
Member Avatar for curbster

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
Member Avatar for ztini
0
3K
Member Avatar for Phinocio

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++
Member Avatar for Phinocio
0
151
Member Avatar for jpaulsen

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
Member Avatar for woooee
0
157
Member Avatar for kukuruku

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
Member Avatar for sDJh
0
110
Member Avatar for Zabzacon

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
Member Avatar for Ezzaral
0
147
Member Avatar for McCurry0x77

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 …

Software Development api java
0
101
Member Avatar for splitter66

[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
Member Avatar for lolafuertes
0
317
Member Avatar for Phaelax

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 …

Software Development java sqlite
Member Avatar for Ezzaral
0
104
Member Avatar for Jessurider

just like we bring JButton images in java..............can we bring that type of 3Dbutton images on buttons in c# forms

Software Development
Member Avatar for ddanbe
0
156
Member Avatar for eikal

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
Member Avatar for eikal
0
184
Member Avatar for get connected

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
Member Avatar for codeorder
0
147
Member Avatar for summey

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
Member Avatar for summey
0
137
Member Avatar for KazenoZ

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 …

Software Development c++ image
Member Avatar for jonsca
0
697
Member Avatar for Hayzam_#include

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++
Member Avatar for pseudorandom21
0
151
Member Avatar for nailac

[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 …

Software Development c printer
Member Avatar for dos_killer
0
110
Member Avatar for Sonny101

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
Member Avatar for jon.kiparsky
0
147
Member Avatar for MARKAND911

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
Member Avatar for Mitja Bonca
0
2K
Member Avatar for discovery-power

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
Member Avatar for discovery-power
0
106
Member Avatar for triceratops

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
Member Avatar for jon.kiparsky
0
113
Member Avatar for denizen08

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 …

Software Development google json xml
Member Avatar for denizen08
0
111
Member Avatar for zizuno

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.

Software Development python regex
Member Avatar for richieking
0
614
Member Avatar for MIA6

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
Member Avatar for MIA6
0
143
Member Avatar for JordanHam

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++
Member Avatar for JordanHam
0
203
Member Avatar for hqrtt

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
Member Avatar for hqrtt
0
180
Member Avatar for nuBudDy

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
Member Avatar for ask_girl
0
527
Member Avatar for tudorH

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++
Member Avatar for ravenous
0
94
Member Avatar for LoveMyPadres

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 …

Software Development python tkinter
Member Avatar for LoveMyPadres
0
424
Member Avatar for RobZombie85

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 …

Software Development c++ oop
Member Avatar for Narue
0
154
Member Avatar for EmbeddedHelp

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
Member Avatar for javaAddict
0
158
Member Avatar for Nandomo

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++
Member Avatar for ravenous
0
366
Member Avatar for anumash

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
Member Avatar for anumash
0
121
Member Avatar for erdinc27

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
Member Avatar for Mitja Bonca
0
142
Member Avatar for chabo

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
Member Avatar for chabo
0
291
Member Avatar for suman.great

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
Member Avatar for suman.great
0
171
Member Avatar for standa333

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
Member Avatar for standa333
0
134
Member Avatar for dos_killer

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
Member Avatar for KonkaNok
0
148
Member Avatar for stephy1

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
Member Avatar for stephy1
0
194
Member Avatar for KKR_WE_RULE

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
Member Avatar for KKR_WE_RULE
0
142
Member Avatar for pssubash

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
Member Avatar for javaAddict
0
328
Member Avatar for ub007

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
Member Avatar for richieking
0
228
Member Avatar for shiningstar100

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
Member Avatar for richieking
0
82
Member Avatar for kiko_
Member Avatar for rhyll07
0
92
Member Avatar for suther

Can anyone give suggestion about Perl Script for Automation Testing(check http request & response).with some sample code.

Software Development perl
Member Avatar for suther
0
146
Member Avatar for stroper

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
Member Avatar for stroper
0
129
Member Avatar for memory100

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
Member Avatar for memory100
0
159
Member Avatar for xuexue

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
Member Avatar for AndreRet
0
124

The End.