132,726 Archived Topics
Remove Filter ![]() | |
foo |-test |-xcom |-A.class |-B.java And two files: package xcom; public class A{} package xcom public class B extends A{} Given above directory structure where root dir is foo. Class B extends A. Question is: Which allows B.java to compile? The answer is: Set the current dir to *test* then … Software Development java | |
HI I would like to modify the following function so that it could take any of the operators such as +,-,* or /. I want to know if its possible to do this without having to write bunch of ifs and else to define each of the operators separatly like … Software Development c++ | |
` Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at finalprojectintersection.ProjectGUI.findbuttonActionPerformed(ProjectGUI.java:278) at finalprojectintersection.ProjectGUI.access$000(ProjectGUI.java:26) at finalprojectintersection.ProjectGUI$1.actionPerformed(ProjectGUI.java:133) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) at java.awt.Component.processMouseEvent(Component.java:6505) at javax.swing.JComponent.processMouseEvent(JComponent.java:3321) at java.awt.Component.processEvent(Component.java:6270) at java.awt.Container.processEvent(Container.java:2229) at java.awt.Component.dispatchEventImpl(Component.java:4861) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422) at java.awt.Container.dispatchEventImpl(Container.java:2273) at java.awt.Window.dispatchEventImpl(Window.java:2719) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:703) … Software Development java java-swing | |
Hi, Can someone help me on this. Really appreciated. **Requirement:** 1. To generate separate html files for each pal:fragment element, for the source document attached ,the files gets name based on @fragment-id which is present on the pal:fragment elements. 2. The <pal:fragment> can be nested, wrapped with<div> element. 3. The … | |
Here is my code... #include <iostream> #include <cstring> using namespace std; class employee{ public: char name[64]; long employee_id; float salary; void show_employee(void); }; }; { cout<<"Name:"<<name<<endl; cout<<"ID:"<<employee_id<<endl; cout<<"Salary:"<<salary<<endl; }; }; int main(void); { char str1[40]="employee worker"; char str2[40]="employee name"; char str3[40]="employee boss"; char atr4[40]="employee name"; strcpy (worker.name, "John Doe"); worker.employee_id … Software Development c++ | |
**Tic-Tac-Toe without a class** Write a modular program that allows two players to play a game of tic–tac-toe. Use a two-dimensional char array with 3 rows and 3 columns as the game board. Each element of the array should be initialized with an asterisk(*). The program should display the intial … | |
Hello everyone, I've got a question about vb.net and I hope one of you can help. In the program I made, the user has to give some input in different textboxes and have to choose from different listboxes. This wil give an unique combination and create an certain output in … Software Development vb.net | |
I mean physically harm it. damage the processor by overheating,memory etc?? Also "Does the programmer have to control memory manually in Assembly ?" Software Development assembly | |
hello, Im new to PERL and I'm writing some code to compare two files lines: file 1 gets random password from a server file 2 is a test case to check that I'm getting the password with the required characteristics ( length, alnum or num) the problem that I have … Software Development perl | |
I need help with the caesar cipher homework assignment, I am stuck and I do not know where to go in this problem. THis is the decoder which moves all the letters back three, but I do not know what is missing.. import java.io.*; import java.util.Scanner; public class AssignmentSix { … Software Development encryption java | |
I got a database with 2 tables. Table 1 is saving personal information Table 2 is saving dates, Time and a number In table 1 there is a date, time, number textbox. Which also is in Table 2. But Table 2 has some other fields which contain other data. Basically … | |
A books says that a register is abt 1KB.the books is trustworthy.But aren't they supposed to be 32-64 bits? http://oi45.tinypic.com/24lpjt3.jpg Inside the Machine: An Illustrated Introduction to Microprocessors and Computer Architecture screen capture from the book Software Development assembly | |
Can I get help writing a program for a 12 sided and 10 sided die and rolling snake eyes? Software Development java | |
Hello all, trying to get my program working. The program is to take input from the user in a hh:mmx format (x being p or a, standing for PM and AM) and tell the user how many minutes from midnight that time is. I was able to make it so … | |
When my code gets to a loop it always crashes and I am not sure why the system that I have been tasked (as a school project) to build is an Electronic Point of Sale system for a fast food resturanct. I will load the all the menu items and … Software Development vb.net | |
call method from another class Hi , I'm almost done with my practice paper I have done with the first part and now I'm working in the second part I came to this question and I stopped and didn't know how to call method from another class here is the … Software Development java java-swing | |
I am trying to search a dataset I have populated from several XML files for certain words in each column. The dataset table is "item" and the columns I want searched is "descritption". "description" are several articles from an rss feed. I want to search the articles for sports players … | |
Hi I want to be able to change the name of the JFrame I am working on. It is currently named SwimmingPoolVolumeCalculator. When I go the Company Tab and enter in a name, I want that name to be shown as the new Title of the JFrame. How can i … Software Development java | |
Good day, I'm tasked to develop an application that opens a web page, completes some fields to log on and then issues a crlf to send it on its way. Here's the code Public Sub LoginIntoSite(ByRef wbBrowser As SHDocVw.InternetExplorer) Dim HTMLDoc As mshtml.HTMLDocument Dim HTMLDoc2 As mshtml.HTMLDocument Do Loop Until … Software Development vb.net | |
How to add an integer no to a date so tat i can a new date foe ex: date=10/11/2012 no=5 newdate=15/10/2012 **Any body plz help to solve the problem** Software Development java | |
#include <iomanip> #include <iostream> using namespace std; int main() { cout << left << setw(10) << "Hello"<< "*" << right << setw(4) << "World\n"; } is the above code correct?? I think the alignments are not working for me.. MY output Hello^^^^^^^^^*World (represented spaces as ^) Software Development c++ | |
I suppose I should post my question about the Twisted http server here, but correct me if I am wrong. I don't know much about python or the twisted server, but I have a project on it and I must install it in my pc. I have googled some stuff … ![]() | |
Dear Experts,can we make dll in turbo c and use that dll in vb 6.0. Actually i have a program in c and it has so many constant 3 dimensional array.I have to use some API which can not be used in turbo c so i am planning to make … Software Development api c visual-basic | |
How to check if a vector is NULL? [code=c++] vector <int> test; [/code] How to check if this is NULL? [code] if (test == NULL) [/code] returns compiler errors. Software Development c++ | |
Inline Code Example Here import java.util.*; public class DiceGame { public static void main(String[] args){ Random myRand = new Random(); Scanner myScan = new Scanner(System.in); double money = 10.00; int temp2 = myRand.nextInt(6)+ 1; int temp3 = myRand.nextInt(6)+ 1; int roll = temp2 + temp3; int choice = 0; boolean … Software Development java | |
I'm trying to build a banking program with the capability to create new accounts (savings or checking), process a deposit, process a withdrawal, or print one or all of the accounts at this "bank". I am doing this utilizing two classes, one for 'Checking' and one for 'Savings'. I've more … Software Development c++ linked-list | |
Hello when i use below program to write and read data from USB mass storage device(flash memory) i am getting following error. I've succeeded with usb_bulk_write() but can't utilize usb_bulk_read(). It returns an error. Set configuration usb_bulk_write: 12 bytes written 33 5b 2 1 0 5 1 3 7 f … Software Development c pc-peripheral storage | |
Hello, I need to trigger an insert statement into my SQL database every time certain buttons are pressed. There are a total of 6 buttons, which makes having: string connString MySqlConnection conn = new MySqlConnection(connString); MySqlCommand command = conn.CreateCommand(); etc, etc. 6 times over in each button seem very inefficient … Software Development sql | |
Hi!! Just started windows phone development. Need to know how to use beginInit() and endInit() functions i'm processing an animation, and want the control to show new page after the animation is over but the control switches before the animation is completed. How should i do that ?? Please let … Software Development vb.net | |
import os data = map(lambda c: ord(c), file(args[0]).read(os.path.getsize(args[0]))) For one file, os.path.getsize(args[0]) returns 10456 while len(data) returns 281. After looking at different files, I realized that it always stops reading at the 0x1A character. The documentation says that in Windows, Python uses _wfopen which (for compatibility reasons) interprets 0x1A (CTRL-Z … Software Development file-system python | |
hi, good day . ahmmm, i have a problem in terms of adding a technology which is biometrics in our project, can you please help me on how to code the finger biometric in our online website my front end is asp.net and my back end is sql database. and … Software Development c# | |
I can't seem to see how this slice works test = (1,2,3) >>> test[::2] (1, 3) any insite would be helpful Software Development python | |
Greetings I wanna know what is going inside the steps when compiling a C++ source code to native code. I know the steps are such that: 1- Preprocessor copies the contents of included header files into the source code file. Q1: So how would the C++ source code file look … | |
Hello all, I would really appreciate some help. I have an assignment for my class that is due where the objective is for the program to recognize the holiday when a specific date comes around. The easy ones are holidays that fall on a specific date every year, examples such … Software Development java | |
I have been trying to read back the information from a file that i created. I get all the information i need out of the file but now all i want is to use the display function from the linklist to get that information. I would like it if the … Software Development app-store c++ file-system ios | |
How to write a function for highest denomination of any card in the hand.The denominations from lowest to highest are 2, 3,4,5,6,7,8,9,10,'jack,''queen','king','ace'.For example, highestDenomination({(6,'club'),(6,'heart'),('queen','heart'),('queen','diamond'),(2,'heart')})denotes‘queen’. Software Development python | |
Hi , I'm almost done with my practice paper I have done with the first part and now I'm working in the second part I came to this question and I stopped and didn't know how to call method from another class here is the question "In the Assignment9Form class, … Software Development java | |
Here's what I have so far. I have one class Directory.java and another class DirectoryWithObjectDesign.java I need help editing my code that when executed, it will be prompted by 3 commands. Find, Delete, and Add. If asked to find, the user will input find then("stringhere"), then the program will search … Software Development file-system java | |
My issue is creating the interface payable and making it compile properly. I have to modify an example out of the book such that is shows polymorphism using an different interface called Payable. This is what I have for my interface: interface Payable { //----------------------------------------------------------------- // Creates a staff of … Software Development java | |
Hi, I am trying to write a code in which i want to read the command line arguement ( which i can get by using $(0,1,...) ) and want to give the arguement to some filename. Eg. ./myprogram filename.cpp I want to remove ".cpp" from the filename and want to … Software Development shell-scripting | |
Hello programmers! I am making chat software and I want to make users to be able to edit profile (Change password, informations and avatar). Now I need code for getting avatar from user account to picturebox. I want for default avatar to be avatar from user's account (Avatar shown on … Software Development vb.net | |
Below I have two subs, once RearrangeDecks is run, it will call moveToEnd(p1stat,p2stat). I get p1stat and p2stat from a different sub used earlier. However when I run it, it gives me back an error saying "**Arguments not optional**" as well ass highlighting the first offset word in the sub … Software Development visual-basic | |
Hey guys, I am curious on how to start automated testing, and what kind of software or scripts would i need to test java, c , c ++, c#, or python code. Also does anyone now any good well explained videos or websites out there, i tried searching on google … | |
hi, so i have a question relating to sending data in a sequence. i have a class evenvent that reads the data from a txt file. that class has to send data to 2 comunication line async and sync. data sent to async is for ex: 'new' . data that … Software Development queue | |
#include <iostream> using namespace std; main() {intx,charge; float a,b,c; cout<<"case 1<=2hours,case2<=3hours,case3<=4hours,case4<=5hours,case5>6hours\n"; cout<<"pls enter your time entry\n"; cin>>a; cout<<"pls enter your time exit\n"; cin>>b; c=b-a; cout<<"no of hours park is\n"<<c; cout<<"pls enter no of case according to your no of parking hours\n"; cin>>x; switch(x) { case 1:cout<< "the charge is RM2.00\n";break; … Software Development c++ | |
Hello I am having a problem with this function. Everything works fine until it reaches the `delete []dynamicArray` line. Can someone please tell me why it would crash at this part? string* addEntry(string *dynamicArray, int &size, string newEntry) { string* hold; hold = new string[size + 1]; for (int i … Software Development c++ | |
Hi, I am creating an vb application that compares two data's pasted in two mshflexgrid. The data's will be copied from the source to the flexgrid control using clipboard. I have coded all the needed things. I just want to remove the unwanted empty cells that are displayed in the … Software Development visual-basic | |
Hey, I made a small program for the k-clusters algorithm. In the current state though, I'm unable to erase the position of the centers from the previous itterations. If I use paintComponent(g) my jPanel will move down to the right and I have no idea why. (as shown here: http://tinypic.com/r/2eba0j8/6 … | |
Lately I have been using the program name to control the program execution. If the name has "random" in it then random. If it has "mix" in it then it plays / displays a mix of text and video - pictures - audio. The 3 program prompts are set based … Software Development audio visual-basic | |
I would like to see another example of a solution for Deitel's 8th edition 6.20 Software Development c++ |
The End.