199,114 Archived Topics
Remove Filter ![]() | |
I need to write a declaration for a polynomial class where data members are an integer for the degree and an array for for the list of coefficients and with basic operations of input and output....and then implement the input operation.... Here is what I have class Polynomial { public: … ![]() | |
Hello Daniweb. I'm new to Java, and I love learning it and want to continue learning it. I was curious about how a Java chat server could be made so I found an open source very basic one online. But the problem is when I run the server it gives … | |
I am working on a project where I am building a student object from student java class. The student.java class specifies a method of: [code=java] public void setCourses(ArrayList<Course> courses) { this.courses = courses; } [/code] So I have built the following two methods in my main.java class file: [code=java] public … | |
Hey guys. Hope you all well. A quick question, how can I make a form change backcolors so that it appears almost like its 'flashing'. Basically what I am trying to achieve is making a form more visible and getting the attention of the user. I can imagine it must … | |
How do i call another c++ code or an *.exe application in another cpp code. I actually wanted to create an AppSuite which contains an editor, a web browser, an address book etc. How to include all apps in one menu?? Any help will be appreciated, Anurag ![]() | |
How should i handle click events of a JButton array i have frame containing 100 JButtons .I need to find out which one was pressed by the user[code]import java.awt.*; import java.awt.event.*; import java.sql.*; import javax.swing.*; public class Screen1 implements ActionListener , WindowListener { int i; JFrame scrfrm1; JLabel lblscr; JButton … | |
Hi, I am trying to add multiple PictureBoxes dynamically at runtime using a loop but have come a little stuck. Here is the code I am working on:- [CODE] XmlDocument xDoc = new XmlDocument(); xDoc.Load(System.IO.Path.Combine(Application.StartupPath, "getPublicPhotos.xml")); XmlNodeList photo = xDoc.GetElementsByTagName("photo"); for (int i = 0; i < photo.Count; ++ i) … | |
Hi Folks, I wonder if anyone knows what is happening here because I'm very confused... I have some nested repeater that I'm using to display a list of Categories, projects and tasks on my ASP.net site written in VB.net i.e. Repeater 1 Category Repeater 2 Project Repeater 3 Task In … | |
Dear Friends, Please help me in getting out of the below error. I have made attachment of source file, kindly try to execute the program experience the error and guide me. D:\Tomcat 6.0\webapps\Beer-v1\WEB-INF\classes\com\example\web>javac -classpath " D:\Tomcat 6.0\lib\servlet-api.jar" BeerSelect1.java BeerSelect1.java:3: package com.example.model does not exist import com.example.model.*; ^ BeerSelect1.java:15: cannot find … | |
Hi, I am creating a web application. In that I have multiple radio button and two button. What I want to do is-- I want to choose a radio button and according to that value if I will click the button1, I want to display a different jsp page. But … | |
hi there!!! having trouble here, i have this main form and a password form, whats happening is that when i run my program my main form is dispalyed same with password form, (its on top of the main form), what i want is that my menustrip in the mainform to … | |
Hi All, I have JSP and Servlet that need to "talk" to each other. Actually I need to get record from database, fill it in JSP file. I have created Servlet that does the query and gets the result. I need those results to be shown on JSP file. In … | |
I've created a class PulldownArray, which contains two strings Value and Description. I created an array of this class called PulldownTABLE with the ArrayList^ command in my main program and I then populate it with the .Add method. All this works fine. How do I retrive the Value and Description … | |
Hey you guys. Im doing c code where i have to make a file full of double values and then make another empty one because im going to write into that file. It does compile but i get this: Enter the input file name: randomfile.dat Enter the output file name: … | |
Three one questions about releatie in MySQL with Visual Basic 2008. How can i use Mydatapter1 over again and over agian (see code)? So that i can fill [COLOR="Green"]three datasets[/COLOR] I want to fill three datasets with tree different tables and use them in my program [CODE] myCommand1.CommandText = "select … | |
This is the code I have so far, but something seems to be wrong with it. I don't know what though. Could someone point out what I'm doing wrong? [CODE]<HTML> <HEAD> <TITLE>Fun with Phonics</TITLE> </HEAD> <BODY> <CENTER><IMG SRC="fun.jpg" HSPACE=5 VSPACE=5 HEIGHT=64 WIDTH=129></CENTER> <CENTER><HR Width="75%"></CENTER> <SCRIPT LANGUAGE="JAVASCRIPT"> <!--Hide from old browswers … | |
Hi, I had a form ([B]says form A[/B])with control on it, 2 buttons with text "View Process Flow"([B]Button1[/B]) and "Manual trigger Process"([B]Button2[/B]). Both button will load and shows Form A in [B]Panel1[/B] in Form1, but button1 will let user to see the action but block them on clicking on it, … | |
This is my first c# application so I'm still figuring things out. Ok here is my setup, I have a MySqlDataAdapter filling a Dataset The Dataset acts as the DataSource for a BindingSource The BindingSource acts as the DataSource for a DataGridView The DataGridView successfully displays the data! The data … | |
i have a [B]sign up [/B]page. when user signup ,his data moves to database'table having 4 colomns.1 is of username,2 of password, 3 of email & last for title. when he signsup,a page [B]choice.html[/B] opens that offers to login now or later. if the user login at that time ,he … | |
I closed out the other post I had "fill 2d array". The assignment is to read in a file to a 2d array that has the month #, high temp, low temp for each month. Then calculate the aver high and aver low and give the highest and lowest temps. … | |
Here is the error message Object reference not set to an instance of an object. Line 18: FuelDSTableAdapters.FuelTableAdapter dsFuelTableAdapter = new FuelDSTableAdapters.FuelTableAdapter(); Line 19: decimal totalFuel = (decimal)dsFuelTableAdapter.TotalFuel(DateTime.Parse(TextBox2.Text), DateTime.Parse(TextBox1.Text)); Weird thing is - it works based on the dates I put into the text boxes. I think it has something … | |
Hi all I have a txt file. It has a maximum of 24 lines. E.g. Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 ... Line 24 I would like to delete lines 2, 4, 6 ... 24. All the even numbered lines this is the code … | |
Hi, I have this task that I need to solve and am stuck.I would like some help on this please.I am fairly new to this,so not sure what I should do.....really appreciated if anyone could help me out [I]Question Write an Algorithm to calculate discounts.[/I] Bookstore is offering discounts to … | |
hi i am new to coding i have an xml file named employees.xml [code] <employees> <employee id="1" name="carla weis" budget="100"/> <employee id="2" name="tom knox" seniorid="1" budget="50"/> <employee id="3" name="karl rogers" seniorid="1" budget="400"/> <employee id="4" name="beverly smith" seniorid="2" budget="200"/> <employee id="5" name="tom stern" seniorid="4" budget="700"/> <employee id="6" name="eveyln wilson" seniorid="2" budget="350"/> … | |
As I understand it equal hash codes in general imply a high probability of equality between objects, but they aren't perfect. But I've been told that in Java the base hash code of an Object is simply the memory address of the object, so I've assumed that Object hash codes … | |
I understand that this means I'm using more memory than is available to the JVM, but I'm not sure why or what to do about it. The purpose of the program is to simulate an item in a store that is being tracked with a bar code id number (or … | |
For the sake of readability, I've been trying to do something like this: [CODE]#define initialize(x)(type x = initfunction()) int main(){ initialize(example); example.item = 0; return 0; }[/CODE] where type is a typedef'd struct, and initfunction() generates one, inits values, and returns it. My problem is, I get these errors: warning: … | |
this is my code i was wondering if somone could help me find out how to put text in the new window created at the red line [CODE]from Tkinter import * import Tkinter as tk class Application(Frame): def __init__(self, master=None): Frame.__init__(self, master) self.grid() self.createsMenuButton() self.createsOptionsButton() self.createsHelpButton() self.createsUsernameWidget() self.createsUsernameEntryButton() self.createsLoginButton() #### … | |
I have a problem. Im working with a picturebox and a combobox. I have an image on a picturebox and then i create graphics over a picturebox depends on the combobox item selected. When the selected combobox item change needs to clear the graphics of the picturebox but the image … | |
I am using Visual C++ 2010 express edition and i am making classes but when i run i get the error: 1>c:\documents and settings\louisa\my documents\visual studio 2010\projects\ninja wars\ninja wars\game.cpp(71): error C2065: 'm_pScreen' : undeclared identifier [ICODE] In my Game.cpp i have this code void Game::Draw() { Sprite::Draw(m_pScreen, testSprite, 0, 0); … | |
Hi, we have all seen hashtable with a values of string but I want to make a hashtable that accepts the value as an arraylist,and add items to that array,delete from it, how can I do that and is it possible? thank you | |
Hi Guys, I need some help with a permutation problem. Say I have a string, 6 characters long - "123456" - how can I generate a list of all permutations of that string, limited to 4 characters long? So basically, each permutation generated can only be 4 characters long. As … | |
Here is a good listing of library functions. [url]http://www.cplusplus.com/reference/clibrary/cstring/[/url] | |
Hey guys I'm having a lot of trouble getting this program to work. I want to keep an inventory of different tools using a random-access file that shows the name of the tool, how many of each tool I have on hand, and the cost. I then want to put … | |
I am trying to write an algorithm to determine the average of a linked list of real numbers with the first node pointed to by first... ptr = first; while (ptr != null_value) { //not sure what to put in here } Can someone take a look of this short … | |
Hi, I have created a site and on one page it uses 2 divs side by side to display text information. in the left hand div it contains 8 links. these links when clicked load up text stored in separate text files and display it in the right hand div. … | |
I cannot seem to get the array to work and display the second and third loans, only the first one displays. Here is what I need to clarify the situation. Can someone help me out please. Modify the mortgage program again. Remove the amortization table. This time enter 3 different … | |
Hello All, I have a Web Application I am developing that has a GridView. I have searched the internet to no avail looking for an answer to this. The gridview has 11 columns. I want to hide the 11th column while in normal mode and make visible while in edit … | |
I have written a licensing system for my script and now i saved it an file called lic.php in the root folder I am going to encrypt that with ioncube when giving to a client side and i will simply include [CODE]include "lic.php" [/CODE] to call the licensing system But … ![]() | |
[ICODE]Hey I want when i click the submit button it runs a php script that then loads it to a local database where I can then use the entered data as a way for someone to login into the site but everytime i click the submit, it downloads the whole … ![]() | |
help me plz , write a java program that reads a number and verifies if it has the same value when we read it from right to left and from left to right. my program should display "having the same value so it is readable from both sides" if the … | |
Hi there, quick (and I am sure) simple question on a program I have just created. here's the code: [CODE]#include<iostream> using namespace std; int main() { char letter; int counter=0;//set the counter to 0 for (letter=65; letter<=122; letter++) {if ((((((letter==91)||(letter==92)||(letter==93)||(letter==94) ||(letter==95)||(letter==96))))))continue; counter++;//increment the counter in the loop if (counter==27)//counter condition … | |
I am looking for a way to extract an icon from a program and save it to a file, then load from the file and use again, keeping 32bit colors I have tried using ConvertTo32BitImageList() saving as file and stream When ExtractIcon() is used the icon is fine, I can … | |
Hi folks, I have a web page...which has a drop down box. whichever value is selected from that drop down certain number of labels and text boxes have to be created accordingly. [Actually database drives this...] Can anyone tell me, how can I achieve this ???? One more thing...I wanna … | |
I'm trying to find the linenumbers of a webdocument i load using urllib2. I'm trying to do this like this: [ICODE] document = urllib2.urlopen(url,'r') page = document.read() for index, line in enumerate(page): print index [/ICODE] This however, prints out the index of every 'character' instead of every 'line'. How could … | |
hi everybody this project my graduate project pls help me .. i dont understand where is error and how to sending mail ?[code]mr.php------------- <html> <body> <table width="380" border="0" cellpadding="3" cellspacing="1" > <tr> <td width="33%"><strong>Enter your email : </strong></td> <td width="67%"><form name="form1" method="post" action="mm.php"> <input name="email_to" type="text" id="mail_to" size="25"> <input type="submit" … | |
Not sure this is the right place to put this. I have a batch file for a program that I'm writing, which takes a C source file, compiles it and runs it, and then tries to save the output of it to a .txt file. The program lets a user … | |
Can someone tell me why I am unable to update a table in mysql using php with session data. First of all, I have done some reading around daniweb and Im not sure if i should be using UPDATE or INSERT to update the table. I have session_start(); at the … | |
Here I have a program and I'm getting the following error ControlPanel is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener public class ControlPanel extends JPanel implements ActionListener ^ I don't fully seem to understand how the best way is to overcome this? [CODE]import java.awt.*; import javax.swing.*; … |
The End.