43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Krstevski

Hello friends, I have a small problem with parsing XML documents... My program works great, but if some element is not exist in the XML then I got an exception error, and now I want to ask "How to check if the element is in the XML" ? Here is …

Software Development python xml
Member Avatar for Krstevski
0
7K
Member Avatar for Coyboss

Hi all I am trying ot use Netbeans 6.9.1 to write a basic "hello world" java script, but it keeps giving me the following error; ********************************************************************** debug: Have no file for C:\Program Files\Java\jdk1.6.0_23\jre\lib\modules\jdk.boot.jar java.lang.NoClassDefFoundError: helloworld/Main Caused by: java.lang.ClassNotFoundException: helloworld.Main at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) …

Software Development java java-netbeans
Member Avatar for ~s.o.s~
0
164
Member Avatar for kvass

Hey Everyone! I need some help with a JTable I'm working on. [CODE] TableColumn column = table.getColumnModel().getColumn(2); ... JComboBox comboBox = new JComboBox(); comboBox.addItem("A"); comboBox.addItem("B"); comboBox.addItem("C"); comboBox.addItem("D"); comboBox.addItem("E"); comboBox.addItem("F"); column.setCellEditor(new DefaultCellEditor(comboBox)); [/CODE] I know that the code above will take the column of the table at index 2 and give …

Software Development java
Member Avatar for kvass
0
129
Member Avatar for RenanLazarotto

Hey guys! I'm planning on a private software, that I wish that have multiple pages, like a installer. It will not be a installer or anything, and I don't want to use tabs on it (it doesn't fit to what I'm thinking.) How can I do it? I've tought on …

Software Development vb.net
Member Avatar for RenanLazarotto
0
213
Member Avatar for Mr_PoP

[CODE] #include <algorithm> #include <iostream> #include <Windows.h> #include <string> #include <cctype> using namespace std; int main(void) { //declare variables char npcname; char actid; //askin the user to input npc name cout << "Please Enter Your NPC Name!"<<endl; cin >> npcname; //askin the user to input action id cout << "Please …

Software Development algorithm c++
Member Avatar for Saith
0
80
Member Avatar for Mr_PoP

[CODE]#include <algorithm> #include <iostream> #include <string> using namespace std; int main(void) { int actid; cin >> actid; if(actid != 1,2,3,4,5,6,7,8,9,0) { cout << "you must enter an integer"; return 0; } }[/CODE] but it's fail :(

Software Development algorithm c++
Member Avatar for Mr_PoP
0
146
Member Avatar for indr

[CODE] #include<iostream> using namespace std; int main() { int* p=new int[2]; p[0]=1; p[1]=2; cout<<p[0]<<" "<<&p[0]<<endl; cout<<p[1]<<" "<<&p[1]<<endl; cout<<endl; cout<<*p<<" "<<p<<endl; p++; cout<<*p<<" "<<p<<endl; delete [] p; } [/CODE] the output of the above program is : 1 0xe502f0 2 0xe502f4 1 0xe502f0 2 0xe502f4 aborted(core dumped) can anyone pls tell …

Software Development c++
Member Avatar for indr
0
164
Member Avatar for fab2

Hi, I have started to study the C language, and as anyone, problems are on. I am having problems with the for comand for; I do apologise if I am not using the CODE and the ICODE correctly. here an example: [code] #include<stdio.h> int main() { int i; int b; …

Software Development c
Member Avatar for fab2
0
115
Member Avatar for Mr_PoP

[CODE] #include <iostream> #include <string> using namespace std; int main(void) { string test; test="this is a test" test.replace(' ','~')// replace the space with ~ cout << test; return 0; } [/CODE] but it's not working can anyone help me?

Software Development c++
Member Avatar for Mr_PoP
0
165
Member Avatar for Akill10

Ok, I am sort of new to C++, and I just came across something that I don't fully understand. [CODE]int main(){ int iX=5; { int iY=30; std::cout<<iY<<std::endl; } std::cout<<iX<<std::endl; return 0; }[/CODE] What does it mean when I make a code block with no if,else etc..? Does it just make …

Software Development c++
Member Avatar for Akill10
0
136
Member Avatar for StickyTape

I've been using Visual Studio 2010 Ultimate to learn C++ and have created a project file. Within that project file are 2 .cpp files. I use one to refresh my memory of what I've learned and the other to enhance my knowledge of C++. The problem is that whenever I …

Software Development c++ visual-studio
Member Avatar for myk45
0
203
Member Avatar for christos312

Hello to everyone and happy new year... I have 3 JRadioButtons in my JFrame [CODE]private JRadioButton one = new JRadioButton("one "); private JRadioButton two = new JRadioButton("two "); private JRadioButton three = new JRadioButton("three ");[/CODE] And I Have add them to a group [CODE]private ButtonGroup Group = new ButtonGroup();[/CODE] [CODE]Group …

Software Development java
Member Avatar for christos312
0
603
Member Avatar for JakeStanely

Hey everyone and happy new year. I'm a java beginner and I am doing my first program, a dvd rental system. I've got 4 classes with the following variables: the main class the dvd class - dvdID, title, rating, producer the cleint class - cleintID, name, surname, address the rentals …

Software Development java seo
Member Avatar for JakeStanely
0
308
Member Avatar for Gh.S

Hi, This is my first post in daniweb! I've two questions: First question: I'm currently studying about classes, and could get '=' overloading format: [CODE]​[COLOR="Red"]T&[/COLOR] T::operator =(const T& b);​[/CODE] Why we set it to return reference? what's the use? Why couldn't simply be: [CODE]​[COLOR="red"]void[/COLOR] T::operator =(const T& b);​[/CODE] I've used …

Software Development c c# c++
Member Avatar for Gh.S
0
267
Member Avatar for daskeyboard

The title of this thread pretty much says it all - I would like to know how to open an already created excel spreadsheet (I want the application to launch). Thanks so much to anyone who has time to respond to this.

Software Development vb.net
Member Avatar for kvprajapati
-2
17K
Member Avatar for el_jk

Is it possible to convert a string value to a variable name ? Considering the following example AddNode(treeview, "root", "This is the root"); [CODE]public void AddNode(TreeNode parent, string nodeName, string nodeValue) { // what i want to happen is here to be created node with the name "root" // TreeNode …

Software Development
Member Avatar for kvprajapati
0
154
Member Avatar for simonfoley

Hi there More help required! I have a table being imported into my VB application that has 3 columns. I have written code to import the table, and have written code to display on the first column (country) in a list view. What I want to do now is have …

Software Development vb.net
Member Avatar for Teme64
0
106
Member Avatar for SoulMazer

I should begin by stating that XML and I don't seem to get along very well. I've just about finished the interface on the level editor for a game I've made, and the next step is generating a XML file so that it can be read into the game dynamically. …

Software Development python xml
Member Avatar for ultimatebuster
0
157
Member Avatar for FudgeCoder

Here is my code for a calculator. What I don't understand is how it knows which function to execute when someone chooses an option, how does it know to add and not subtract? The program works perfectly. I'm just looking for an explanation on how it knows if I press …

Software Development python
0
72
Member Avatar for mangopearapples

I'm trying to make it so when I press ESC, it RestoreScreen() but it doesn't work. Now I don't know whether it's my method RestoreScreen() or my listeners. This is my code: [code]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class main extends JFrame implements MouseListener,KeyListener{ public void keyPressed(KeyEvent e) { …

Software Development java java-swing
Member Avatar for roxin_phoenix
0
186
Member Avatar for gazzatav

I'm reading a book called Beginning Algorithms by Harris and Ross, which gives code examples in Java. As an academic exercise I am trying to convert the code examples to C++. In the interface below the part that throws me is the return of the 'Object' by the 'current' method. …

Software Development c++ java user-interface
Member Avatar for gazzatav
0
435
Member Avatar for FudgeCoder

Hello, I am very new to Python (just started yesterday) and I've written a program for converting temperatures. I get wrong C to F numbers, and when I try to go from F to C I get 0. Here is the code: [CODE] choice =1 while choice==1: print "1. Celcius …

Software Development python
Member Avatar for snippsat
0
254
Member Avatar for vbx_wx

Hello,how can I make the 2 for`s to work at the same time to find out the diferences between A and B ? Thank you. [code] A = "gtggcaacgtgc" B = "gtagcagcgcgc" C = "gcggcacagggt" D = "gtgacaacgtgc" def cromo(a, b): inc = 0 for i in a: for j …

Software Development python
Member Avatar for woooee
0
208
Member Avatar for staz

I am using this as an example to show what I want to do. I have already done a char array like this: char name[10][10] = {"1. One", "2. Two", "3. Three", "4. Four", etc.. down to 24. I have already wrote the code, so all these 24 subarrays can …

Software Development c++
Member Avatar for Saith
0
238
Member Avatar for DanieltheE

hello all, this is my first post here and I have searched for answers elsewhere before asking for help. My code is pretty tight, but I keep coming up with symbol not found errors. Are my curlys not in the right place? Or have i not declared the objects correctly. …

Software Development java
Member Avatar for JKP()
0
155
Member Avatar for angelmichael4

[ATTACH]18705[/ATTACH] Hi there. I'd like to ask for assistance from anybody out there that knows how to create database conceptual and physical. The problem I'm wanting to solve is I've got an interface in Visual Studio 2010 that populates from 2 tables named Orders and OrderDetails. Below are the fields: …

Software Development database-design visual-studio
Member Avatar for angelmichael4
0
536
Member Avatar for rotexhawk

I get the following error from running this code. Was wondering if 'i' and 'j' are considered objects. If yes is there any way i could cast them..... How do i write a better for loop for this.... array2D = [[0 for i in range(10)]for j in range(10)] for i …

Software Development programming-construct python
Member Avatar for djidjadji
0
213
Member Avatar for Riga

i want to make program for a quiz. i create the questions is an array, and i want that questions start at random, and never be shown again. [CODE]dim question() as String = {"OTOMATIS MENURUT KERJA MESIN", "TIDAK MENEPATI JANJI", "YANG UTAMA", "TEMPAT TINGGAL KEPALA NEGARA", "PENGURUS RUMAH SAKIT", "SUDAH …

Software Development vb.net
Member Avatar for codeorder
0
129
Member Avatar for flasp

I need help with this problem. The assignment says: "Do programming Exercise 6, but instead of declaring an array of three CandyBar structure, use new to allocate the array dynamically". Here is assignment 6: [CODE]#include <iostream> using namespace std; struct CandyBar { char candyName[25]; double candyAmount; int twoCandyWeight; }; int …

Software Development c++
Member Avatar for flasp
0
166
Member Avatar for durhamandy

I am trying to find the position of the maximum number in a 2D array. i have used .max() to find the max value but how do i find its position?

Software Development python
Member Avatar for vegaseat
0
246
Member Avatar for mrbungle

Lets see if I can explain- I have a text box (rich text box) in a form. Inside the box, some data gets put in there- specifically insurance information. Normally, the box doesn't need to change color to alert the user there's a problem with the text that's inside, because …

Software Development vb.net
Member Avatar for mrbungle
0
779
Member Avatar for Mike Bishop

i have been looking for help with this now for days and still not able to get this working. I want to make a function to get each line of my txt file and place it in its relavent var. IE DIM ServerV = (firstline of txt file) dim DatabaseV …

Software Development file-system vb.net
Member Avatar for codeorder
0
156
Member Avatar for kittystitches

[FONT=Arial]whats goin guys? I wanted to know how you would add in videos or music into your website using VBScript. If anyone can help me out I'tll be great :) thank you[/FONT]

Software Development vbscript visual-basic
Member Avatar for media90cj
0
1K
Member Avatar for sankalp_999

i have written a program in c++ using the concept of file handling. this program is about managing a basic electronic hardware store stock and showing the sales report. i am not able to understand why the [B]contents of my file are not being displayed, modified, deleted, or even printing …

Software Development app-store c++ file-system ios visual-basic
Member Avatar for sankalp_999
0
2K
Member Avatar for discovery-power

Hi All, I have had some reall problems with this. I have a form with a datagridview, now I can add new records and the dataset will update fine, but it wont update when I want to delete a record. Please see below my code. [CODE] Imports System.Data.SqlClient Public Class …

Software Development dataset open-source vb.net
Member Avatar for discovery-power
0
94
Member Avatar for Mike Bishop

Hi All, I have a text document that am pulling infomation out of. i only want to collect the information after the = sysmbol which is on each line. here is the code so far [CODE] Dim FileName As String = "C:\test.txt" Dim TextFromTheFile As String ' Whole text Dim …

Software Development vb.net
Member Avatar for Mike Bishop
0
126
Member Avatar for iwanttolearnc

good day and a happy new year to you folks. im trying to copy the contents of one text file to another text file but i cant seem to get it right. written below is the code im using but it does not seem to work. any help please? [CODE]#include …

Software Development c file-system
Member Avatar for iwanttolearnc
0
217
Member Avatar for daudiam

I understand that int values, when autoboxed, are interned i.e no 2 objects containing the same int are present, and so we can compare two Integers by == So why does the following happen :[CODE]Integer iRef1=1000; Integer iRef2=1000; System.out.println(iRef1 == iRef2); System.out.println(iRef1.equals(iRef2));[/CODE] This prints [CODE]false true[/CODE] On the other hand, …

Software Development java
Member Avatar for daudiam
0
127
Member Avatar for DJSAN10

Could anyone please explain what exactly bootstrapping is? As far as i know it is something related to "the compiler for C itself wriiten in C"

Software Development c
Member Avatar for DJSAN10
0
96
Member Avatar for Rookie09

Sup guys .. So , the thing is that i need to define a preprocessor directive so i can compile correctively an SQL pseudocode into C++ . VALUES (value1, value2, ...);//cant figure out a way to take the value1,...,valueX out value1,value2,...,valueX is string or integer typed expression for example : …

Software Development c++
Member Avatar for Rookie09
0
174
Member Avatar for Thisisnotanid

Hi everyone! I've built prime testers and prime listers before, but they only work sufficiently fast for values <= 1e6. I was thinking about all the prime tester projects they have going on, how do they test very large numbers for primality? I'm talking numbers on the order 1e12, 1e13, …

Software Development python
Member Avatar for Thisisnotanid
0
574
Member Avatar for BleepyE

I know that title is kinda miss leading, but i couldnt figure out another way to explain it. I know theres a way, but I dont know how to do it. Ive got a Save code that I have about 5 differnet times in my application. How do I make …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
90
Member Avatar for simonfoley

Hi there Another noob question from me...one of these days I'll get the hang of this VB! I am importing data from an Access table that has four columns/fields. I have set up the relevant headings etc on the list view control...but I have also set up a 5th column …

Software Development microsoft-access vb.net
Member Avatar for Unhnd_Exception
0
92
Member Avatar for steven8579

Hi! im sorry i keep asking so many questions but i really want to learn. I want to know how to get my program to print the items that i have in my two listboxes titled lstResult and lstResult2. This is what i have so far: [CODE]using System; using System.Collections.Generic; …

Software Development printer
Member Avatar for steven8579
0
875
Member Avatar for Weird Nerd

Hi everyone, I've been working with pointers for quite some time and I'm familiar with all the pointer-reference stuff. One of the things I don't get is the function of the delete keyword. I have used this code to find out what the delete keyword does. [CODE]int main(int argc, char …

Software Development c c# c++
Member Avatar for ShadowScripter
0
149
Member Avatar for seun101

public class Account extends javax.swing.JFrame { /** Creates new form Account */ public Account() { initComponents(); setTitle("Bank Account"); jTextArea1.setEditable(false); } /** * @param args the command line arguments */ private int accountNumber =0; private double balance =0; public Account(int accNum, double bal) { accountNumber = accNum; balance = bal; } …

Software Development java java-swing
Member Avatar for JamesCherrill
0
99
Member Avatar for arlir

hi guys,Iam learning the c language and still a green one really.I have this program am trying to develop using code blocks 10.5.Th code is as follows; #include<stdio.h> #include<ctype.h> #include<stdlib.h> struct secguard { char first_name[40]; char Last_name[40]; char gender; int age; int ID; char start_date; int work_rec; }; void main(void) …

Software Development c
Member Avatar for gerard4143
0
153
Member Avatar for tomtetlaw

Is it possible to have a pointer to something (say a string) that is on the hard disk?

Software Development c++
Member Avatar for Narue
0
119
Member Avatar for Naveed_786

I have a problem with date and time picker when i select the date from dtpicker1 then txtdate1 gets the value but when i debug it shows txtdate1 = "" why please help [ICODE]Private Sub DTPicker1_CloseUp() txtdate1.Text = DTPicker1.Value DTPicker1.Refresh End Sub[/ICODE]

Software Development visual-basic
Member Avatar for AndreRet
0
215
Member Avatar for WildBamaBoy

This program gets a list of the processes running and displays them in a ListBox. When one is clicked it puts info about the process such as start time and filename in text boxes. But some of these don't return anything and the text box remains blank and I can't …

Software Development
Member Avatar for WildBamaBoy
0
144

The End.