132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sirlink99

I am getting this error. [CODE] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 >= 0 at java.util.Vector.elementAt(Unknown Source) at Game.collision(Game.java:176) at Game.<init>(Game.java:20) at Frame.<init>(Frame.java:12) at Frame.main(Frame.java:31) [/CODE] The game was working, but when the enemies came on the screen it started lagging, so I made another thread, and just copied the …

Software Development java java-swing
Member Avatar for sirlink99
0
172
Member Avatar for Thermalnuke

Im having problem with this code I made for finding the average rain fall. When the program starts. it is suppose to go through each month and you are able to input the rainfall. When the months show up in the CMD it is just a bunch of numbers and …

Software Development c++
Member Avatar for Thermalnuke
0
144
Member Avatar for WhosThatGuy

Hello everyone, Ive been stuck with this little problem for quite some time and if someone could help id be much obliged. I have this code that contains an array with several numbers in put by the user and i don't want any of the numbers in the array to …

Software Development c++
Member Avatar for WhosThatGuy
0
183
Member Avatar for steffisusan

Hi, Can anyone tell me the c code for taking snap and saving it to directory. Thanks

Software Development c
Member Avatar for Tumlee
0
147
Member Avatar for Behseini

Hi Guys, I am trying to display a selected file name by user(using OpenFileDialog class and FileName property) as [CODE] if (dlgOpen.ShowDialog() == DialogResult.OK) { txtFileName.Text = dlgOpen.FileName; } [/CODE] but the problem is this return all path info which I do not need! Can you please let me know …

Software Development
Member Avatar for Behseini
0
120
Member Avatar for asif49

Is there any possible way to allow multiple different types of identifiers on a class. I.e. on ArrayLists you can do: private ArrayList<Employees> e = new ArrayList<Employees>(); the "Employees" is the identifier and can be accepted along with many others. But if I've created my own class and I want …

Software Development java
Member Avatar for stultuske
0
97
Member Avatar for mattgwilson

Hi, I'm opening up text files created by another program which leaves an EOL character (which is a square box) to separate lines. I'm reading through these files and extracting data from them, I know where my data starts because I know the name of the parameter eg. "FOOD TYPE", …

Software Development python
Member Avatar for TrustyTony
0
352
Member Avatar for JwhateverJ

I'm writing an application launcher program. The launcher will launch applications based on the files found in the working directory. (Example: a folder containing files with the extensions .docx, .xlsx, .sln, and .txt, would give the user the option to launch Word, Excel, Visual Studio and Notepad loading any of …

Software Development c++ oop visual-studio
Member Avatar for cox44
0
927
Member Avatar for lgbagabuyo

// Loel Jolito NiƱo C. Bagabuyo package marathon; public class Marathon { public static void main(String[] args) { String[] names = { "Jessabel", "Jerome", "Kristine", "Rodel", "Grajen", "Reymart", "Kevin", "Sherwin", "Orniel", "John", "Kirk", "Jovert", "Rhea", "Mariella","Melart", "Michael" }; double[] times = { 341.0, 273.0, 278.0, 329.0, 445.0, 402.0, 388.0, 275.0, …

Software Development java
Member Avatar for lgbagabuyo
0
2K
Member Avatar for buae2

Hi are these two instructions valid in assembly language? (8086 mov instruction). 1. mov DS,[BX] 2. mov DS,[3900H] if no,why not?!

Software Development assembly
Member Avatar for gusano79
0
189
Member Avatar for bossman5000

I need help please.write a shell script that will take the information from two files and combine into another file I created both files in vi. file1 David 734.854.5643 Roberto 313.432.4532 Sally 267.423.5412 Mary 435.432.7654 Ted 324.642.6743 Alice 234.576.3245 Frank 342.465.6754 second file file2 Roberto Tuesday 2 Sally Monday 8 …

Software Development shell-scripting unix
Member Avatar for tudloiako
0
432
Member Avatar for mrym

i've some code written as a dll in C++ in Visual Studio 2008. I've to be able to debug it. But i can't load dll in test exe. There isn't any problem on my test exe because when i try to load another dll there isn't any problem. Dll that …

Software Development c++ visual-studio
Member Avatar for thines01
0
333
Member Avatar for asif49

I need to create a class which does the exact same functionality as a Set does, but for this project I'm not allowed to use the java import for sets. The only functions I need are adding to the set and removing from a set. If someone has done this …

Software Development java
Member Avatar for NormR1
0
106
Member Avatar for AdampskiB

Hello, The objective of my task is to allow the user to enter a series of colours (maximum and minimum of 4, and have to be within 5 set colours). I'm supposed to write code that continuously prompts the user if what they've entered doesn't meet the criteria. And also …

Software Development python
Member Avatar for woooee
0
156
Member Avatar for mahela007

Hello everyone I'm using python 3.1 and am trying to use the pyserial library. However, when I try something like ser.write('hello'), I get a type error. [CODE]>>> import serial >>> ser = serial.Serial('COM13') >>> ser.write('a') Traceback (most recent call last): File "<pyshell#2>", line 1, in <module> ser.write('a') File "C:\Program Files\Python31\lib\site-packages\serial\serialwin32.py", …

Software Development python
Member Avatar for mahela007
0
743
Member Avatar for seion

Practicing C++ and here is two of the practice problems I pulled from the FAQ And practice post. Just want feedback and issues with the way I wrote these. Simple Calculator [CODE] #include <iostream> #include <string> #include <sstream> #include <stdlib.h> using namespace std; int main(void) { //cout << string(50, '\n'); …

Software Development c++ mathematics
Member Avatar for Clinton Portis
0
154
Member Avatar for crystalll

how would I get this code to recognize a tie in the game? /* TicTacToe Game */ #include <iostream> #include <sstream> #include <string> namespace Games { class TicTacToe { public: TicTacToe(void); void Play(void); void Reset(void); private: char board[9]; char player; static int wins[24]; void displayBoard(void); bool getMove(void); void initializeBoard(void); void …

Software Development c++
Member Avatar for Schol-R-LEA
0
609
Member Avatar for Desh2350

Hello All, I've put together this program for a rational class and it runs, but the problem is, it doesn't do what it's supposed to do. Any ideas? Thanks in advance. See ya on the flipside, Desh2350 [CODE]// This program will do arithmetic operations on two rational numbers entered from …

Software Development c++
Member Avatar for Schol-R-LEA
0
4K
Member Avatar for zachattack05

I'm having a problem with using the table adapters to accomplish this and was wondering if someone might know of something I could be doing wrong. The scenario is this: Adding a new record to the underlying SQL database in this case requires that both a record exist in TableA …

Software Development
Member Avatar for zachattack05
0
174
Member Avatar for learner guy

Hi ,help needed in bishop movement c++..the code is woking fine giving desired output most of time but there is one thing unintentional happening in the algorithm.. to understand the problem plz see the diagram (ignore the 'oo' and 'o' and consider them double and single spaces respectively, they are …

Software Development algorithm c++
Member Avatar for Schol-R-LEA
0
2K
Member Avatar for Wolxhound90

Hey all, I'm trying to have a ListBox show a list of tables available in a database. This can then be selected to be used later on. My problem is getting the actual table name to show up. I have the connection to the mysql database working properly, but it …

Software Development mysql vb.net
Member Avatar for Wolxhound90
0
365
Member Avatar for Germy Loo

Hi, I've made a JApplet trying to simulate a macroeconomy. It works as I want it to when viewed in appletviewer, but when I view it from a browser, clicking Proceed after having changed values of JSliders in EconFinalM.class doesn't work. EconFinal.java: [CODE]import java.awt.event.*; // Import Libraries. import java.awt.*; import …

Software Development java java-swing objective-c
Member Avatar for NormR1
0
262
Member Avatar for Taiki

Hello, I have been following discussions and codes for a while on Daniweb, and I'm really interested in this amazing community. I just joined though. I'm facing a problem in my Tk inter task. I have a code and I need to make a TKinter interface that does the job …

Software Development gui python tkinter
Member Avatar for Taiki
0
2K
Member Avatar for Adami

Hello All ! I'm trying to write a Robot Class who have several methods. One of its methods is move() that move the robot the direction his looking at, one step ahead. I'm getting an error on this: [CODE]switch (Direction) {[/CODE] If some one can help me find the mistake, …

Software Development java
Member Avatar for Adami
0
407
Member Avatar for AquaNut

Hi All, Finally getting somewhere with this project and can see the light at the end of a very long tunnel.. I have one more hurdle to overcome so any help in pointing me in the right direction would be greatly appreciated. I have a bound datagrid which I fill …

Member Avatar for AquaNut
0
494
Member Avatar for vivosmith

Hi, I am trying to figure out allegro, and so far, so good. But I ran into this one snag in this code [CODE]const float FPS = 60;[/CODE] Does this set FPS? Someone on another forum said no, but it seems like that it is a predefined function that changes …

Software Development c
0
157
Member Avatar for Spiere

So im making space invaders, and I cant quite figure out what I have to do in order to get the ship to move. I have the beginning of the movement code in SIbase, but I am unsure what to do from there These are the three classes that are …

Software Development java java-swing
Member Avatar for StephNicolaou
0
330
Member Avatar for vlady

hello I have a problem concerning of changing mark. I donĀ“t understand why it doesnĀ“t work...thought the old_mark is type LIST. It works for one student and not for more (for loop) Pls can you help me? Thanks Vlady [CODE]def change_mark(changed_mark): for student in changed_mark: old_mark=changed_mark[student] position=old_mark.index[old_mark] old_mark[position] = raw_input('new_mark') …

Software Development python
Member Avatar for valorien
0
177
Member Avatar for Kitson

Hi again, I have a program which opens a file, searches for a string ("Performance Summary"), misses 3 lines then copies the following lines until there are no more. [CODE]# Extracts data from a files and saves it in a summary file with open("file1.txt") as file: for line in file: …

Software Development python
Member Avatar for TrustyTony
0
174
Member Avatar for hemanthjava

I wanna find some good site which lists some good Java Programming Questions (Programs to work on the comp) along with their solutions. Regards, [url]http://www.freejavaguide.com[/url]

Software Development java
Member Avatar for stultuske
0
161
Member Avatar for Sweetblac2000

Hi I am new to Java and this is my issue. I can compile my code successfully but when I try to get the program to run it gives me an error stating.... [code=text]Exception in thread "main" java.lang.NullPointerException at TictacToe.makeTicTacToe(TictacToe.java:37) at TictacToe.<init>(TictacToe.java:25) at TicTacToeMain.main(TicTacToeMain.java:13) Press any key to continue . …

Software Development java java-swing
Member Avatar for JamesCherrill
0
95
Member Avatar for mattgwilson

Hi guys, I'm making a program which reads all files in a folder with test data, these files are known as logfiles. With each read logfile, I then need to extract only the lines which have the keyword in them... for example 'PASSED'. Here lies the problem, when you open …

Software Development python
Member Avatar for mattgwilson
0
158
Member Avatar for omer620

Hello guyz how r u all i m new in programming can u help me plzz can u tell me that how to arrange array elements in ascending in descending order in C++ e.g suppose we have an array of 6 elements.. let elements are 65289...i want to arrange them …

Software Development c++
Member Avatar for ppt123
0
237
Member Avatar for siddharthan64

79 0009!017009!0479%0009!0479 0009!0469%0009!0469 0009!0459%0009!0459'009 0009!0459%0009!0449 0009!0449%0009!0449 0009!0439%0009!0439 0009!0429%0009!0429'009 0009!0429%0009!0419 0009!0419%0009!0409 000'009!0399 0009!0389%0009!0389'009 0009!0379%0009!0369 0009!0349%0009!0349 0009!0339%0009!0339 0009!0339%0009!0329'009 0009!0329%0009!0329 0009!032 In this data, I'm supposed to extract the number 47, 46 , 45 , 44 and so on. Im supposed to avoid the rest. The numbers always follow this flow - 9!0 …

Software Development java
Member Avatar for hiddepolen
0
262
Member Avatar for Vasthor

4-6. Rewrite the Student_info structure to calculate the grades immediately and store only the final grade. What I proceed:- I doubt that data structure can 'hold' function or expression, so I give a look on net to check out, it seems, the tutorial(on net) just show that structure used for …

Software Development c++ data-structure
Member Avatar for Schol-R-LEA
0
249
Member Avatar for ali11

Hi i m trying to design a program using object oriented approach.everything works perfect for me except the bounces.If the new height is less then 0 then multiply both the height and velocity by -0.5 to simulate the bounce. [CODE]import java.util.Scanner; public class Ball11 { public static void main (String …

Software Development java
Member Avatar for zeroliken
0
274
Member Avatar for minimi

The code I have written so far only blinks constantly regardless of which switch is HIGH or LOW.. I can't seem to figure out how to make one switch faster than the others because it would either blink all switches at same rate or remain steady (doesn't blink). Could anyone …

Software Development assembly flash
0
83
Member Avatar for solomon_13000

The code below produced the error: OUT or INOUT argument 3 for routine mysql.getAuthentication is not a variable or NEW pseudo-variable in BEFORE trigger. Did I miss something?. [CODE] using System; using System.Data.Odbc; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using MySql.Data.MySqlClient; public partial class …

Software Development
Member Avatar for thines01
0
2K
Member Avatar for chriswinter

I need to print out the scores and the grades when entered and i do not know how to print the scanner. im sure i am probably missing other things as well. [CODE]import java.util.Scanner; public class Scores { public static void main(String[] args) { int count; int score; int total; …

Software Development java
Member Avatar for chriswinter
0
131
Member Avatar for jnmisa

Hello, Few days ago their is a contest for who can crack this code by the UK government. i will like to know more about this Code, Which book can I read to learn About it in Detail, Please I do wait your Reply, I am not Reading to Crack …

Software Development
Member Avatar for jnmisa
0
190
Member Avatar for lil_Is

Hi all, I am doing a project of CRM application which does sending and receiving sms/email. I am doing this using the visual studios 2005 ans SQL Server Database to store the send or received sms/email. I have search on sms in the internet but the problem is that it …

Software Development vb.net
Member Avatar for hericles
0
230
Member Avatar for vishal18

Hello to All, I want to use basic jasper report utility.... But facing error as mentioned below, please help me.....I'm beginer of JReport [CODE] import java.io.File; import java.util.HashMap; import net.sf.jasperreports.engine.JRException; import net.sf.jasperreports.engine.JasperCompileManager; import net.sf.jasperreports.engine.JasperFillManager; import net.sf.jasperreports.engine.JasperPrint; import net.sf.jasperreports.engine.JasperReport; import net.sf.jasperreports.engine.*; import net.sf.jasperreports.engine.util.JRLoader; import net.sf.jasperreports.engine.util.JRSaver; import net.sf.jasperreports.engine.xml.*; import net.sf.jasperreports.engine.design.JasperDesign; import net.sf.jasperreports.engine.export.JRPdfExporter; …

Software Development apache java xml
Member Avatar for vishal18
0
10K
Member Avatar for maggoteer

I'm having some trouble sharing my application to other PC users. I have tried to Build my application and Publish my application into a folder, zip it, and put it on my website for people to download, but when they try to run the setup file it gives an error …

Software Development vb.net visual-basic
Member Avatar for GeekByChoiCe
0
109
Member Avatar for Assassin7893

Guys, I've been stuck on this for a while now. This is actually one of my assignments, and I'm really lost. This is the assignment: ------------------------------------------------------------------------------------------- You manage a .txt file containing the customer ID number and account balance of the members of a bank. Last week, a computing error …

Software Development c++
Member Avatar for Assassin7893
0
865
Member Avatar for trinetra31

Hi, hello everyone. I am having troubles modulating these dtmf codes in visual studio 2008 in C. After going to Properties and selecting compile as C code, i complied it( F7) and then debuged it(F5) and then i was stopeed by this error window saying: Unable to start program 'C:\Users\Trinetra\Documents\nltvc\dtmf\Debug\dtmf.exe.' …

Software Development c visual-studio
Member Avatar for Ancient Dragon
0
289
Member Avatar for t2ac32

Hi every one well i have this problem: Im creating a method for multiplying two different lists sorted in arrays example: MyList a [9,9,9,9] * MyList B[1,1,9] the problem is that i was told not to convert to a large int and then multiply like this 9999*9 +9999*1+9999*9 Since the …

Software Development algorithm c++ objective-c
Member Avatar for t2ac32
0
1K
Member Avatar for luftey

I'm currently on my final C++ project for the semester. My assignment is: =================================================== Programming Assignment 6 Attached Files File data.txt (0.628 KB) File sample_dynamic_array.rtf (33.957 KB) The attached text data file contains a list of numbers between 50 and 150. Create a program that reads those values into an …

Software Development c++
Member Avatar for Schol-R-LEA
0
235
Member Avatar for iGuardian

[code]/* File: Rainfall.cpp Description: Write a program that reads in the average monthly rainfall for a city for each month of the year and then reads in the actual monthly rainfall for each of the previous 12 months. The program then prints out a nicely formnatted table showing the rainfall …

Software Development c++
Member Avatar for iGuardian
0
1K
Member Avatar for jankeifer

guys, can you please suggest a 2 player game? any 2 player game as long as the difficulty of coding is at an intermediate level. thanks! :D hope for some replies soon.

Software Development c++ gaming
Member Avatar for Sgt. Pepper
0
180
Member Avatar for Sphiros O'kelli

Hey!! I'm new to C++, this is the final program of my semester and I am stuck sooooo hard... I have the code laid out and it will compile but my functions wont work like I want them too. here is the code: [CODE] #include<iostream> using namespace std; void getlist(int[], …

Software Development c c# c++
Member Avatar for Sphiros O'kelli
0
344

The End.