132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for trustno1butme

Program requirements are as follows: Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the …

Software Development java
Member Avatar for fr0styh3rb
0
204
Member Avatar for hazeeel

Please help me to solve the error: coordinates2T[a][b]=-3.7830557977332173 coordinates2T[a][b]=-3.7830557977332173 coordinates2T[a][b]=-3.7830557977332173 Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3 at KateAug24.main(KateAug24.java:137) Press any key to continue... Thanks is adv! [CODE]import java.io.*; import java.util.*; import java.text.*; public class KateAug24{ private static StringBuffer buffer; private static BufferedReader input1=null; public static String [] arrayM1 = new …

Software Development java
Member Avatar for hazeeel
0
124
Member Avatar for Rez11

I am trying to replace "the" with "that". My original sentence is "the ball is under the car". I can successfully change the first "the". But when I try to change the second "the" string1 ends up being "that ball us under that".So it cuts off the world "car". What …

Software Development c++
Member Avatar for StuXYZ
0
204
Member Avatar for VB 2012

How can you get to only save all the modified tabs By save i mean save as a text file or open your own savedialog < example :)

Software Development vb.net
Member Avatar for codeorder
0
98
Member Avatar for bpatt22

What are some alternatives to writing [CODE]len(mylist3 & mylist4)[/CODE] within this code? [CODE] mylist1 = [1,2,3] mylist2 = [4,5,6] mylist3 = set(mylist1) mylist4 = set(mylist2) lenresult = len(mylist3 & mylist4) [/CODE] A module i'm importing is unable to use the count() that gets called with the ' & ' operator.

Software Development python
Member Avatar for bpatt22
0
104
Member Avatar for Xzarik

Hey all, I've been having some problem with python - i'm pretty awful at programming but have been soldiering on with this for some time now! What I need to do is take one list and compare it to another. Both lists are presented in rows, and I need to …

Software Development python
Member Avatar for Xzarik
0
157
Member Avatar for Vani3863

Hi All, I'm a relative newbie having trouble completing a program that is required to read the text character by character from a .txt file and to then encode certain characters to something thing else. It is then supposed to be output to a separate .txt What seems to happen …

Software Development c c# c++ file-stream
Member Avatar for Vani3863
0
162
Member Avatar for Rajicet

I have a requirement for giving unique id's for <div> in XSL. Please help.

Software Development xml
Member Avatar for hielo
0
139
Member Avatar for tehmarto

Hi all, I have a program that loads a dll, uses it for some time and then it unloads it. I have no idea where dll is located or from where it is loaded but I know where dll is unloaded. Loading of the dll is very hardcoded and I …

Software Development c++
Member Avatar for tehmarto
0
133
Member Avatar for drizzled42

[CODE]I am a graduating student, taking up BS IT. Unfortunately, i don't have a talent in the field of programming. I have a problem regarding our final project this semester in Software Metrics. Our teacher requires us to have HALSTEAD METRICS PROGRAM to be pass on SEPT. 13 2010. Any …

Software Development java
Member Avatar for coil
0
201
Member Avatar for effizy

I am new to C++ or any form of programming language. Would appreciate any practical tips on: - approaching problems - techniques on writing codes - rule of thumb for writing codes - fixing errors - how to define and use(call) functions - loop - array - float, double - …

Software Development c++
Member Avatar for Jackk123
0
139
Member Avatar for xiansen

i am supposed which accepts a five-digit integer value. my program is then to output the digits, one per line. Each line of output should contain the digit value, its square and its cube. Once I have the program running correctly, modify the program so that it will process as …

Software Development c++
Member Avatar for xiansen
0
296
Member Avatar for plasticfood

ok i'm tryiing to convert a double into a string to get the 1st character of that number. [CODE] change = (amountPaid - total); String dollars = Double.toString(change); String firstNum = dollars.charAt(0); [/CODE] i got an imcompatiable type error on that part. change, amountPaid, total are double.

Software Development java
Member Avatar for NormR1
0
51
Member Avatar for ticktock

Hey all, I am trying desperately to create a cube using VBO. I have the correct vertices that must be used yet when I render it, it only displays one part of the face of the cube (which in this case is a half triangle, since a square is made …

Software Development c++ data-structure opengl
Member Avatar for ticktock
0
2K
Member Avatar for oochi

Hi I want to write a loop that will terminate only when the cancel button is hit. I am using a JOptionPane.ConfirmInputDialog(null message1, Title, JOptionPane.OK_CANCEL_OPTION) to display three different messages at a time and the program will terminate once the cancel button has been hit. can someone please help oochi

Software Development java
Member Avatar for NormR1
0
91
Member Avatar for neural_jam

<edit>(scroll down a bit to avoid some rambling and get to the main question!)</edit> Hi there, I'm trying to write a C++ program that repeatedly executes another program (with a system call) that creates a file called 'output', then copies the output into a subdirectory and renames it so that …

Software Development c++
Member Avatar for neural_jam
0
168
Member Avatar for shantuli

hello everyone, can anyone please help me to solve the following problem. Write a program 1. To demonstrate division operation handling the arithmetic Exceptions. 2. To Access different elements of the given array: int [] arr1 = {10,69,30,12,11,34,56,78,35} Write exception-handling statements for ArrayIndexOutOfBounds Exception. thank you, regards, shantuli

Software Development java
Member Avatar for coil
0
176
Member Avatar for fr0styh3rb

Hello, I am developing an inventory program in one of my IT classes. So far I have implemented my Camera class correctly, I just need some help configuring my Inventory class. I have underlined the section of my code I am having trouble with. If someone could take a peek …

Software Development java
Member Avatar for coil
0
419
Member Avatar for lordbaddkitty

I'm working with VB.Net. I have imported some data into the Data Set. I have four columns of data. [CODE] [Column 1]This is a test[/Column 1] [Column 2]This is a comma, Test.[/Column 2] [Column 3]This is a double quote " test.[/Column 3] [Column 4]This is a comma, quote " test.[/Column …

Software Development vb.net
Member Avatar for lordbaddkitty
0
540
Member Avatar for Jamesbch

Hello there, I'm developing a server which use epoll to manage the incoming connections. I'm working at the moment on timers and I'm using the [I]setitimer[/I] and [I]sigaction[/I] interface of Linux. It's working well but I've found out that epoll and setitimer conflict each other: I guess they share the …

Software Development c
Member Avatar for Jamesbch
0
329
Member Avatar for y2kshane

how to play mp3 in c++? plz give me some example codes if you can:)

Software Development c++
Member Avatar for Stefano Mtangoo
0
156
Member Avatar for embooglement

I'm trying to write a to string function that would use std::stringstream to convert the the instance data into a string, but haven't been able to get operator overloading to work with it. As soon as I define a new << operator, I get a bunch of ambiguity errors saying …

Software Development c++ visual-studio
Member Avatar for embooglement
0
2K
Member Avatar for low_coder

hey, im making a database program using standard c functions (fopen, fclose...) and i need to read and write data to files quite frequently, so is it better to open (fopen) and close (fclose) the files before and after each operation or open the files at the beginning of the …

Software Development c++ file-system
Member Avatar for low_coder
0
99
Member Avatar for ultimatebuster

Why do people say isinstance is bad? If I have my own class, named Test, and if I want to check an variable to see if it is an instance of Test or Test's child classes, is using instance() bad?

Software Development python
Member Avatar for TrustyTony
0
188
Member Avatar for aikiart

Good day, I've got a question about why program 19-3 won't display a returning message but program 19-2 will. THIS IS 19-2 // This program demonstrates a simple recursive function. #include <iostream> using namespace std; // Function prototype void message(int); int main() { message(5); return 0; } //************************************************************ // Definition …

Software Development c++
Member Avatar for aikiart
0
294
Member Avatar for gabblesargh

The following code runs, but it only returns the same string, as many counts as the array. I want to return all the objects in the array (values) to the "lblMessage", one by one. Where is my mistake? [CODE] int i; int count; for (i=0, count = [values count]; i<count; …

Software Development iphone objective-c
Member Avatar for peter_budo
0
188
Member Avatar for frankinaround

Hi, im looking for any tips on how to make a program that can move the windows vista mouse icon to different spots + left and right click. So I can tell it to go to this spot and click. can anyone please help

Software Development python windows-vista
Member Avatar for vegaseat
0
100
Member Avatar for abysss

I am new to thread programming,i basically want to learn how write threads in c++.It would be a great help to me if anyone could guide me through this or provide any tutorial links. thanks in advance sidharth

Software Development c++
Member Avatar for abysss
0
145
Member Avatar for perryg30313

I have a vb .NET 2005 form that needs to load data based on a selected month by the user. Because there is a large amount of data in the table (60k+ records per month) it is taking the query a long time to pull the dataset back and populate …

Software Development data-structure dataset vb.net
Member Avatar for perryg30313
0
130
Member Avatar for pdk123

Hi , Sorry for this basic question, i am stuck, with somethings, I have a class class A{ int * mem_ptr; } then somewhere in the code: if ( mem_ptr == NULL ) { mem_ptr = new int; } Is it safe to assume that mem_ptr is NULL when the …

Software Development c++
Member Avatar for wtf4096
0
149
Member Avatar for sravan953

Hello all, I want to make a Python program which will go to a particular site, login with my credentials, and do a specific task, such as in this case: go to WordPress.com, login, navigate to the drafts section, and add a line to a draft. I believe most of …

Software Development html-css python wordpress
Member Avatar for ultimatebuster
0
174
Member Avatar for KnifeDarky

Hi everyone, I'm making some kind of game in Python and i need to save random number to text file but i cant. Please help me out. Here is the code: [code]def lvl(): x = random.randint(100,1000) tfile = open("text.txt", 'w') tfile.write(x) input("")[/code] Without x everything is good, but i need …

Software Development python
Member Avatar for snippsat
0
118
Member Avatar for DavidNeedsHelp

Hi All, I'm getting a segmentation fault that I simply cannot understand. I run gdb and get the following message: Program received signal SIGSEGV, Segmentation fault. 0x00000000004a91a5 in BDD::BandB (this=0x7ffffffe4e60, fixedVars=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece. ) at BDD.cpp:550 550 void …

Software Development c++
Member Avatar for Fbody
0
185
Member Avatar for Aslam Mansoor

I will greatly appreciate, if someone could help me to revert a VB6 Exe. file into Source code file. Cause I have lost my working project as a result of formating my PC. I have a copy of the Exe. file on my Flash memory. Only hope is that to …

Software Development file-system flash visual-basic
Member Avatar for MooGeek
0
1K
Member Avatar for dorien

Hi, I have been reading a number of posts about this, but I have not been able to figure it out. I want to write hex to a midi file. The hex code of the midi file looks like this: [CODE]4D 54 68 64 00 00 00 06 00 01 …

Software Development c++ file-stream ios
Member Avatar for dorien
0
9K
Member Avatar for acrocephalus

Hello! I am trying to update a MySQL table using a Python code but I am having some problems. I define the connection and the cursor in the Ornithobase (wx.Frame)class in the OnLof function as [CODE]self.db= MySQLdb.connect(host='localhost', user=self.Username , passwd=self.pwd, db='Ornithobase') self.cursor = self.db.cursor()[/CODE] Then, in the same class but …

Software Development mysql python
Member Avatar for TrustyTony
0
291
Member Avatar for 333kyle333

The title explains it. I'm running Ubuntu Linux if it matters. I want to be able to take input and pass it to the terminal (bash shell)

Software Development c++ ubuntu
Member Avatar for NicAx64
0
86
Member Avatar for churva_churva

how to do the adding of objects in array program using an interactive console/gui how to do the deleting of objects in array using an interactive console/gui how to do the updating of objects in array program using an interactive console/gui how to do the displaying of objects in array …

Software Development gui java
Member Avatar for churva_churva
0
87
Member Avatar for cgcgames

i have looked around the forum and on the web but couldnt find anything that seemed to be what i was looking for. or i couldnt follow how they where doing it. What i need is to fill a treeview from a dataset. the dataset has been filled from a …

Software Development dataset
Member Avatar for PierlucSS
0
170
Member Avatar for raghamayee

Hi everyone, I have written a program which can be performed in two ways...now,i want to compare the times taken by both approaches...can anyone help me how to get it...

Software Development c++
Member Avatar for mike_2000_17
0
144
Member Avatar for Simes

So I am trying to implement a menu that loops in a CLI simulator, I have the menu implemented but I am stuck figuring out how to make it loop or progress to the next option that requires input from the user. I have used scanner in for the menu, …

Software Development java java-netbeans
Member Avatar for NormR1
0
181
Member Avatar for techie1991

I was having some confusions about string and NULLs. So, I read this [URL="http://www.daniweb.com/forums/thread77987.html"]thread[/URL] on this very forum. But, I could not understand somethings... Firstly, Is NULL an integer value 0, or something else? Secondly, [CODE]if(strlen(str)==0)[/CODE] this shows that the string is null or it shows that the first character …

Software Development c++
Member Avatar for Ancient Dragon
0
163
Member Avatar for Shaggy19

I am currently having a few issues saving new information to a dataset. I could update the set, but on exiting and reopening the data all updates were gone. I found a few tips online but now get error messages when running the update command. Any help would be greatly …

Software Development dataset finance vb.net
Member Avatar for Shaggy19
0
100
Member Avatar for brent012

This is giving me an error and im not sure why? [CODE]procedure BeginSort; var I, X: Integer; begin //(1) whole thing Sorted:= false; repeat begin //(2) For I := 1 to 30 do Begin //(3) If Question[I].position > Question[I+1].position then Begin //(4) for if the question position is higher TempQuestionText:= …

Software Development pascal
0
69
Member Avatar for Rkeast

I've been kicking around the idea of doing a 3d game in my spare time, but I am struggling when it comes to actually setting up an application from scratch in such a manner that the different aspects of the application are separated into different projects in my IDE. I …

Software Development c++ ide visual-studio
Member Avatar for Ancient Dragon
0
174
Member Avatar for n.utiu

Hi, all! I was wondering if there is any way to check from the server side whether the client has closed a socket connected to one on my side. client side [CODE]import socket s = socket.create_connection ((host, random_port)) s.close () [/CODE] server side [CODE] ... a = lstn.accept () [/CODE] …

Software Development client-server python
Member Avatar for n.utiu
0
5K
Member Avatar for brainbox

Hi Everyone could anyone help me with the event handling behind a checkbox, which is one of the columns in datagridview. First of all i am adding this checkbox column to dataTable dt, which is the source of DataGridView1. However, i cannot make the checkbox to work, i.e. ifi click …

Software Development c#
Member Avatar for Geekitygeek
0
417
Member Avatar for Waseem Siddiqui

[B]I want to override a method of superclass in subclass the method have same name in both the class. But I want to call the method of superclass with the object of subclass Please Hlep[/B] Please consider the following code class a { void a1() { System.out.println("Hello from a"); } …

Software Development java
Member Avatar for JamesCherrill
0
224
Member Avatar for harikumar86

[CODE]Dim tp As Integer Dim str, flt(), strflt, sflt As String Dim l, l1, l2, l3, i, j, t As Integer 'Title code Private Sub Title_Change() Dim commas As Integer Dim pos As Integer Dim str As String l = Len(Title.Text) If l >= 80 Then MsgBox "Title Exceeded the …

Software Development office-suite seo visual-basic
Member Avatar for harikumar86
0
325
Member Avatar for JOSheaIV

Okay so I feel stupid for asking this and I feel like i am overlooking something, but how do retrieve the value of a datagridview cell as an int. I have used this code to change the column to type int [CODE]dataGridView1.Columns[0].CellTemplate.ValueType = typeof(int);[/CODE] I haven't really had a chance …

Software Development vb.net
Member Avatar for Geekitygeek
0
3K

The End.