132,725 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Neon Tetras

I want to execute WordPad using the code below. It runs fine on my pc. But failed to run on other pcs. String program = "C:\\Program Files\\Windows NT\\Accessories\\wordpad"; String file = "srcFiles\\Resources\\readme.rtf"; //This is the path to the file i want to open with wordpad. Runtime load = Runtime.getRuntime();; try{ …

Software Development java
Member Avatar for djslavens
0
195
Member Avatar for glao

Hello , I am trying to solve some problems from the "Computer Simulation Methods" book. It says > > Write a class that solves the nuclear decay problem.Input the decay constant l from the control window.For l=1 and dt=0.01 ,compute the difference between the analytical result and the result of …

Software Development algorithm c++
Member Avatar for glao
0
656
Member Avatar for Chris_16

Hi This app is supposed to let a person draw depending on their choice of Shapes and color. I cant figure out what is going wrong. The colours and shapes barely work and the mouse position is not showing up at all. Mouse listener that tracks mouse position seems to …

Software Development java java-swing
Member Avatar for Chris_16
0
324
Member Avatar for EddiRae

Hello, I have created multiple tables in a dataset when I load a page. Some of the information for those tables are on a form. After making changes to the data on the form, I want to go back to those datatables to write to the SQL table. Here is …

Software Development dataset vb.net
Member Avatar for EddiRae
0
755
Member Avatar for jantrancero

So i made a script and it works fine but it could be better. The code will be written below, the purpose of the script is to make a beep sound when the timer runs out (that works) but i also want to show on the screen how many hours …

Software Development python
Member Avatar for CaptainFApin
0
2K
Member Avatar for Triryche

I know I have a fundamental problem, I do not fully understand List objects. Based on a user input from a list box I want to creat a different list named `icons`. I previously had issues with the `switch` function, seemed I was doing it at the class level, so …

Software Development
Member Avatar for Triryche
0
267
Member Avatar for woomar

Hi. I was wondering if someone could explain to me how to make some new node point to the first element in a list.

Software Development java linked-list
Member Avatar for somjit{}
0
244
Member Avatar for HiHe
Member Avatar for vegaseat
0
684
Member Avatar for woomar

Hi. I need help with my size method. I am using a single-linked list. I tested my code and it returns 0 all the time. /** This method returns the size of the current list. <br> * If the current list has no elements,it is empty. <br> * * @return …

Software Development java linked-list
Member Avatar for JamesCherrill
0
265
Member Avatar for Tayler_1

f = open("program0.4.txt", "w") done = input('Enter done for last name when finished') Last_Name = input("Enter Last Name: ") while Last_Name != 'done': First_Name = input("Enter First Name: ") Hrs_Wrkd =int(input("Enter Hours Worked: ")) Hrly_Wge = int(input("Enter Hourly Wage: ")) f.write('Last Name' + ' ' + 'First Name' + ' …

Software Development python
Member Avatar for Tayler_1
0
1K
Member Avatar for Benjamin_4

This a question please schools grades ------- -------- havard 90% with this table, i want to select the information in each column concatenate them and ouput the results in a textfeild. sample output = havard/90% so can you declare a column in mysql as a variable in java? if yes …

Software Development java mysql
Member Avatar for Benjamin_4
0
162
Member Avatar for Triryche

I'm adding sound to a simple matching game. I have a sound for a flipping a card, a match, and no match. The problem I am having is when 2 cards are match, the flip and match sounds play simultaneous. So I tried calling Sleep at line 146, which gives …

Software Development perl
Member Avatar for Triryche
0
328
Member Avatar for Start4me

I want to create a map, with image of a floor plan. As the user zooms in or out, or moves the image around the form and clicks on a room to see more information about it, it will be possible. I'm thinking of creating labels or buttons with opasity …

Software Development image vb.net
Member Avatar for Begginnerdev
0
348
Member Avatar for maxbummber

I have the following code that prints out something like a database using a velocity engine and the output is printed to a console. Though what I'm asked is to generate HTML code using a Velocity template. The **Velocity Test Class** import java.io.StringWriter; import org.apache.velocity.app.VelocityEngine; import org.apache.velocity.Template; import org.apache.velocity.VelocityContext; public …

Software Development apache java
Member Avatar for ~s.o.s~
0
399
Member Avatar for mgold

First, just to clear this up, I did not post this is the wrong place. I know the difference between "Java" and "Javascript" I'm working on a project where I want to allow a simple, no intense programming required, way for users to create custom functionality. This is a simplified …

Software Development java javascript
Member Avatar for JamesCherrill
0
379
Member Avatar for Deegirl

Good morning, Can someone help me to figure out how if I should used a Public Sub New or a Public Function. My codes are: Public Function ClassAverage(ByVal Average As String) Dim Grades() As Decimal = {76.5D, 63.4D, 45.4D, 94.5D, 81.3D, 66.2D, 68.6D} Dim sum As Decimal = 0 For …

Software Development vb.net
Member Avatar for wrathness
0
379
Member Avatar for javaprog200

Hello, In the following programs, I am trying to add multiple clients. The Client program remains unchanged. For the Server program, I am using a thread (custom class implements the Runnable interface) to open a new socket and process every client request. My questions follow the programs. **ChatServer.java:** import java.net.*; …

Software Development client-server java java-swing
Member Avatar for franko1990
0
4K
Member Avatar for toneranger

Hi, I've got a vector of structs populated with the following fields: double double double double (unsigned int) (unsigned int) string I want to take each line in that vector (call it OldVec), and 1. transfer it to a new vector of structures 2. add a string identifier at the …

Software Development c++
Member Avatar for toneranger
0
271
Member Avatar for jvasher

Sometime crashes, sometimes blank text, and sometimes works. I'm passing (I hope) a reference to TextDisplay::update() so It can draw all the text in keyBindMenu which is a vector of std::strings. I'm not sure if I'm handling this correctly. My understanding of this is very weak, but I think I …

Software Development c++
Member Avatar for jvasher
0
142
Member Avatar for DarkLightning7

I'm attempting to write a substitution function but am having trouble figuring out how to fix the Error: operator and operand don't agree [circularity] operator domain: ''Z list * ''Z list * ''Z list operand: ''Z list * ''Z list * ''Z in expression: sub2 (x,y,hd z) Code: fun sub2(x, …

Software Development
Member Avatar for DarkLightning7
0
1K
Member Avatar for refphlex

The second loop after opening the file again the second calculation for count isn't coming out correctly it seems to be doubled, comes out double the normal value when it shouldn't someone help please! #include <iostream> #include <iomanip> #include <string> #include <fstream> #include <cmath> using namespace std; int main () …

Software Development c++
Member Avatar for refphlex
0
167
Member Avatar for ChicagoBears2012_1

I have a function that has takes in a string "secret" sec = set(secret) print sec output: set(['A', 'C', 'E', 'I', 'H', 'M', 'S', 'T']) Assuming I called the function sending in the string "Mathematics", how do I get an ordered set. I'm looking to get unique characters in the …

Software Development mathematics python
Member Avatar for snippsat
0
270
Member Avatar for nathan.pavlovsky

Hello programmers! I am working on a Tic-Tac-Toe player vs. computer class, which is supposed to have a `run.()` method in order for the game to start. In a `gameWon()` member function, I am checking for a win, either by the player or by the computer. I check to see …

Software Development c++
Member Avatar for Moschops
0
525
Member Avatar for Deegirl

Good morning, Can someone help me code this part of my assignment, it's been 24 hrs trying to do this. Place student names and final mark into two, one- dimensional arrays. One array will be of String (for names), the other will be an array for real numbers (for marks) …

Software Development vb.net
Member Avatar for Deegirl
0
248
Member Avatar for schroaus

I REALLY need some help. I ahve been writing a tic-tac-toe console application program in delphi. I had most of the logic finished for the program when I made a mistake. At the beginning of a class period the program was working fine, at the end of the class it …

Software Development delphi gaming pascal
Member Avatar for Schol-R-LEA
0
3K
Member Avatar for glez_b

The following script try to calculate the resulting average of the direction and magnitude of the wind well as daily averages of Temperature, Moisture and Sum of Precipitation. My monthly dataframe has the following column: data Fecha Hora DirViento MagViento Temperatura Humedad PreciAcu 0 2011/07/01 00:00 318 6.6 21.22 100 …

Software Development python
0
130
Member Avatar for voicephone

how can i get practice tutorial question on c#

Software Development
Member Avatar for sbesch
0
159
Member Avatar for vdhyasri

#include <stdio.h> #define N 40 void sum(int*p, int n, int d[]) { int i; *p = 0; for(i = 0; i < n; ++i) *p = *p + d[i]; } int main() { int i; int accum = 0; int data[N]; for(i = 0; i < N; ++i) data[i] = …

Software Development c++
Member Avatar for mike_2000_17
0
177
Member Avatar for roidbeginnerlvl

I am trying to read a textfile containing some informations in this format, itemId:itemDescription:itemCategory:itemSubCategory:amountPerUnit:quantity:date. item.txt 1:macbook:electronics:laptop:100:100:18-Oct-13 2:Iphone 5:electronics:handphone:50:50:18-Oct-13 I am able to extract everything except the itemId. Please advise or suggest what I should change/do to get the id. Thanks in advance. my output Id: <----blank! Item Description: macbook item …

Software Development c++ iphone
Member Avatar for richieking
0
203
Member Avatar for jvasher

Tried searching for an answer to this, but not sure even how to explain this question so i will show a code example.(I blame java, better then saying i'm brain damaged) I have no problems with pointers. But can't seem to remember the correct way to call the constructor when …

Software Development c++
Member Avatar for deceptikon
0
292
Member Avatar for nyfan68

I was wondering if anyone could assist me with an assignment. The problem deals with operator overloading. In this assignment I have to modify a class called "Complex" to a)enable input and output of complex numbers via overloaded>> and << operators b)overload the multiplication operator to enable multiplication of two …

Software Development c++
Member Avatar for angel.ey.7503
0
495
Member Avatar for Ihteshamullhaq

i wantto builda GPA in C# and want to a condtion which chek the value from user input. chek it if it is greater then 70 show A GRADE greater then 50 show B GRADE like and print it and also set is this char type value to switch and …

Software Development programming-construct
Member Avatar for Ihteshamullhaq
0
182
Member Avatar for Raymond Albert

Hello! I'm having a rather difficult time because the concepts weren't very much explained in class for complex situations. I'm a bit entangled with the few if-else conditions I have... :( I've been trying hard to crack the case, but I think somebody really needs to see my work. Write …

Software Development c programming-construct
Member Avatar for Adak
0
4K
Member Avatar for boni_go

Hi, I try to copy tree by shutil.copytree(). While the function run, I get some Exception "File name too long". The path+fike name are realy long, and the exception as I understand is from the OS not Python. Do you have any solution? * I can not change the directory …

Software Development file-system python
Member Avatar for edenrol
0
1K
Member Avatar for furalise

Hi What is the difference between using the **fstream** library to read a file....and using something like a procedure below using the FILE* object? There seems to be two ways to read a file? Thanks /* FEOF example */ #include <stdio.h> int main() { FILE * pFile; char buffer [100]; …

Software Development c++ file-system
Member Avatar for furalise
0
845
Member Avatar for andrew mendonca

Here is the website for the assignment I am working on: http://view.samurajdata.se/rsc/5c1dd0b4/ Here is the website for my header file (MixedExpression.h): http://ideone.com/G9aC9D Here is the website for my library source file (MixedExpression.cpp): http://ideone.com/PfH8f0 Here is the website for my calculator client file (Calculator.cpp): http://ideone.com/4wGayu Here are the input lines: ( …

Software Development c++
Member Avatar for Banfa
0
215
Member Avatar for durgesh1

hello friend i like to make program in which user can selecte product and they can choose on e or more product by clicking add button now i want to save this firstly temporary all selected product when they click on add button and when user click on submit it …

Software Development java php
Member Avatar for StephenHero
0
172
Member Avatar for sulfurid

Hi, i just want to finish my j2ee application that have to receive many sms from mobile users of network operator and store these on database. I try to google it but i found nothing about this. Please, i just need an orientation step by step (Excuse me for my …

Software Development java
Member Avatar for StephenHero
0
196
Member Avatar for wrathness

Good afternoon everyone. I made a project using Florian Leitner-Fischer's usb library. I can send data to the bus 100%, but when i read i get the recieve frame and then my application hangs for some reason. When i uncomment out "MsgBox(content)" in the event catcher, the program no longer …

Software Development vb.net
Member Avatar for wrathness
0
232
Member Avatar for pspwxp fan

Hi all, I have been told that variables containing objects are basically just references to a memory locations that contain the object data. And doing something like this: TestObject o1 = new TestObject(..); TestObject o2 = o1; would make a new variable o2 that will simply point to the same …

Software Development java
Member Avatar for JamesCherrill
0
130
Member Avatar for sonunmonu

Hi Guys: I am trying to add password to my bash script file. So, it should ask for password when anyone try to open that file. (for eg. anyone perform cat or vi command on that file it should ask for password). Thanks Sonu

Software Development shell-scripting
Member Avatar for GrazerC0de
0
204
Member Avatar for MrHardRock

Hey guys I had an assignment to recursively write the Towers of Hanoi then test it. I did not have too much of an issue getting the program written But I am not sure what the book means by test the efficiency do they want the number of moves my …

Software Development java
Member Avatar for stultuske
0
905
Member Avatar for iTechnnn

Hello, im having problem with my output =/ Everytime i run my program is not giving me the right output so, this is my assaigment. Consider a class that keeps track of the sales of an item. An object of this class will have the attributes: Number Sold Total Sales …

Software Development java
Member Avatar for stultuske
0
2K
Member Avatar for great_learner

Hi guys, I am completely new to objective c. I am trying to compile a very basic program of "hello world", but the problem is that gcc compiler can't figure out where my header files are. I wrote on cygwin bash shell: [CODE =c]$ gcc -lobjc hello.m -o hello[/CODE] and …

Software Development file-system objective-c
Member Avatar for spark_1
0
247
Member Avatar for nhrnjic6

I have a practise problem to write a function that takes 3 dim and dynamicly allocates 3d array with those values and then (PART THAT I DONT GET) : fills the 3-dimensional array with multiplication tables. What am I even supossed to do ?? Here's my code : int main() …

Software Development c++
Member Avatar for tinstaafl
0
171
Member Avatar for SpottyBlue

I am kind of new creating the A1Z26 cipher generator. But this has a problem. Only the program generates the last two numbers. What's wrong? #include <iostream> #include <ostream> #include <string> using namespace std; int i; // Counter char str1[101]; // A string of characters for generator. string str2, str3; …

Software Development c++ encryption
Member Avatar for tinstaafl
0
2K
Member Avatar for mixelplik

How can I loop through a data field with a binary search, looking for multiple values? Please, I don't want to know another, more efficient way, I want to do it this way to understand the concepts. Also my data is indeed sorted before the call is made. The data …

Software Development c++
Member Avatar for mixelplik
0
1K
Member Avatar for sirlink99

I am having a problem deleting nodes from my Binary search tree. What I have so far does part of what it is supposed to do. I read in an input (paragraph of text) to create the tree (organized via ASCII character values). I make it, then print out all …

Software Development algorithm java objective-c regex
Member Avatar for sirlink99
0
306
Member Avatar for lizzy2

Hi, I am working on a program that prompts the user for answers to a quiz. The answers can only be a, b, c or d and they are saved to an array which I later compare to my answer key array. Below is the method I have written to …

Software Development java
Member Avatar for lizzy2
0
1K
Member Avatar for whatthebobo

I have an assigment where I am to create a program to calculate BMI. I wrote the program and would like to have someone check it to see if there are any mistakes I need to correct. //Declare variables double weight, height, bmi = 0; //Prompt user for weight in …

Software Development visual-basic visual-studio
0
114

The End.