132,726 Archived Topics
Remove Filter ![]() | |
How do i write a python code so that my list of numbers can be updated within an elif cause? I start off with an empty an empty list then from there i have to ask the user how many new scores they want to add to the list then … Software Development python | |
I need help with my java code for the game hangman... we are using eclipse to write the game and using three main files to start...hangman.java hangmanlexicon.java and hangmancanvas.java. the first part of the assignment, is to create a ConsoleProgram for the game and this is what i have so … Software Development java | |
Always use scanf() and printf(). They are much, much faster than cin and cout. Also use stl algorithms, like sort, reverse and find, especialy if they are member functions of a container class you use. | |
how can i change the value of data in crystal report base on the selected item in listview? i am using mysql and visual studio 2012 Software Development listview mysql vb.net visual-studio | |
We have started Object Oriented Programming in C++. And it has been four weeks. We were taught about Constructors, copy constructors, operators overloading functions, binary/unary and ofcourse, basics about classes. I need to get a project approved by teacher. She still has to teach us Inheritance. So we still know … Software Development c++ | |
So i have this assignment, > Create a quiz game that displays, in turn five questions about any topic of your choice. All five questions should have the same three possible multiple-choice answers. For example, you might ask trivia question about Australia states for which the correct response is Victoria, … Software Development apple java java-swing | |
Dear friends: I check the value range of double and long double with vs2010, but it gives me the same value. could you please tell me how to use the long double format in vs2010. Regards Software Development c++ | |
Hello guys, I have a program created that opens a program and execute it as well. For example: filename = raw_input('Input a valid NAPS filename -> ') execfile(filename) I put my file helloworld.naps (my file extension) And it execute smoothly. Now my question is, how to verify the user input … Software Development python | |
Hi, I'm trying to insert a search function into my program. I used 2 classes class PatientInfo{ private void BAddActionPerformed(java.awt.event.ActionEvent evt) { PatientAddress pInfo = new PatientAddress(); lName = txtLastName.getText(); pInfo.getLName(lName); txtLastName.setEditable(false); } private void BSearchActionPerformed(java.awt.event.ActionEvent evt) { PatientAddress pInfo = new PatientAddress(); lName = txtSearchName.getText(); pInfo.searchInfo(lName); txtLastName.setText(pInfo.lastName); } } … Software Development java | |
I am new to Java, and I have been trying to get an assignment coded and keep gettin java.lang.NullPointerException in Main Class.java:39. Ok, no prob. Unfortunately I can't quite get this fixed. Any suggestions? I'm using Eclipse Juno. Also, any suggestions on any books, sites, etc that review java in … Software Development java java-swing | |
hi, i wanted to know how to i test a metho as below int32[] AT; int32AB,ab; int32[] at; public void A() { AT = at; AB = ab; return; } is this correct public void SetStaticTest1() { Int32[] AT ; Int32[] at = {1,2,3,4,5}; Int32 AB ; Int32 ab = … Software Development c# | |
I am trying to develop a method that can find common elements in a simple array with a linear run time O(n + m). This is an old school problem, i.e., no hashsets, hashtables, arraylists. Here is what I have so far. import java.util.*; import java.util.Arrays; public class CommonElements3 { … Software Development algorithm data-structure java | |
// i dont know where i am getting wrong..the answer is contniously zero...plz help me #include<iostream> #include<cstdlib> using namespace std; int rand_val() { return rand()%1000000+10000; } int main() { int i,j; int salary_vec[100]={}; for( i=0;i<100;i++) { salary_vec[j]=rand_val(); } double tax_vec[100]={}; for( j=0;j<100;j++) { if(salary_vec[i]>=70000) { tax_vec[j]=salary_vec[i]*(10/100); } else if((salary_vec[i]>=50000)&&(salary_vec[i]<70000)) { … Software Development c++ | |
pls could anyone help me with my final project..im begging u guyz ..tnx en advan pls help me to Design a program for examination such as Prelim, Midterm, Pre-Final and Final. Requirements: 1. Main Form shall contain the following menu: Types of Exam, Examinee Registration, Exam Result, Help and Exit … Software Development database-design vb.net | |
Hello everyone, I'm new here, and reletively terrible at coding, so I was hoping I could get some assistance with a program I've been working on. My assignment is to create a Frame that allows the user to choose where to paint a circle using a horizontal and vertical scroll … Software Development java java-swing oracle user-interface | |
Hai friends,I was developing a code for linked list operations. But while doing deletion, if we give a position except 1, the particular node will be deleted. But if i give position as 1, the node will not be deleted. Please help. I'm posting the code below #include <iostream.h> #include … Software Development c++ linked-list | |
The question asks: Write and compile a C++ program that simulates the arrivals of airplanes at Regina airport. An airplane is represented using a C++ struct. Each plane belongs to an airline, such as United, and records the city from which it is arriving, for example Chicago. The airport is … | |
i have a combobox that have items form database. the problem is when i selected an item from that combobox it disappeared but still in the choices. i want the combobox.selecteditem should be appearing if i selected it. here's my code : Dim strsql = "select * from DesignationEveryDept where … Software Development vb.net | |
I'm creating a simple module that have a cin and cout functions. This will accept the user input and display it afterwards. Just like this: text = napster.comein("Enter a number: ") napster.getout(text) I have a problem in the function code because I'm an amateur in python programming. This is my … Software Development python | |
Hi can someone please help me how to update after inserting ? In this code I am going to insert a transaction that borrow books in library system BUT In every borrow of books I need to lessen the quantity of the book.. I have an error in this code.. … Software Development vb.net | |
You are working as a software developer in a company named Blue Moons, Inc. Your team has been assigned the task of developing software that would assist the users to store and retrieve personal information. According to the requirement specifications, the software should provide the functionality to store contact details … Software Development | |
Would anyone know what this kind of syntax means. Its in reference to a library I want to include in my c++ applicaiton. It takes this form. Where can I read up about this. I've tried a google search but I'm not sure what to search on. #include <name/name.p> //what … Software Development c++ | |
expandable JPanel while adding items Hi, I have a JFrame and I added JPanel inside it However, I designed in a way, I can add JButton to that panel it is used as a bookshelf for example btn 1 btn2 btn3 so each time i add, it goes three columns … Software Development java | |
Hi All, Quick one, I am calling a web service that returns a dataset but the company doesn't know what structure is in the dataset anymore as the original programmer has left. The webservice code calls a stored procedure that they can't access. Is there anyway to call the webservice … Software Development data-structure dataset vb.net | |
I have a program that has the user input a resistance value, then the program checks to see if it is a valid resistance value, and then prints the min and max, based off a valid tolerance value. Here is my code: Resistor.h #ifndef Resistor_H #define Resistor_H #include <cmath> #include … | |
Hi there! I am new to daniweb.com and C++ CLI. I am trying to make a program that will tell the user the text for the ListItem number they type in. The ListItem information is stored in a text file with my custom file formatting, which is: <~ListItem 1> text.... … | |
I got a textbox which holds a persons address For example Streetname / house number / box number They are seperated by a space I want them to go into their own textboxes TxtStreet, TxtHousNr, TxtBoxNr I am pretty sure its best done with indexof But i cannot get it … Software Development vb.net | |
Hello all, I am a beginner at Java and taking a class which is moving at a fast pace. So I have this Animal class and Fox class that must access the AnimalColor class through an API. Originally the AnimalColor object in the Animal class was public(accessible by all) but … | |
Hi friends, I'm developing an application for HR. I have two tables so far.One is tblDetails and the other is Academic. I have created a relationship (ID to AcademicID), I have been able to pull data to a form by this SELECT statement: sqlSearch = "SELECT tblDetails.ID, tblDetails.FirstName, tblDetails.Surname, Academic.AcademicID, … Software Development vb.net visual-basic | |
Hi, I am a beginner and new here. I have a question which might be very easy for you all so thought of asking a good solution. I need to read an integer from console into an array in c++ , can any one please help! for example: I want … Software Development c++ | |
my text box have multi lines i want to count those lines and show it in form caption. spoz i have 12 lines in text1.text i want show it like this Sockz-12 Software Development visual-basic | |
Hello everyone, i am developing a Library system, where user can borrow books and return them. i have a table in my DB called "borrowed books" it contains list of information about the borrowed book and the borrower, when the user returns the book the system should remove the record … Software Development vb.net | |
i have a data gridview with 4 columns namely name age address and attendance. my problem is this ,using a button how i change the attendance in all to "OUT"? help me please Software Development vb.net | |
need some help guys im trying to put a hyphen between a number for the telephone number but i want to use the keypress or textchanged i already done it using the button so im trying to use the textbox rightnow but after the hyphen is been inserted to a … Software Development vb.net | |
I know that its very simple to save an image source in a MySQL database but my problem is that how can I save an image source and add it to my project's resources so that I can call it easier even if I transfer my Application to other PC, … Software Development image mysql vb.net visual-studio | |
import java.util.*; public class GenericDemo4 { public static void main(String r[]) { Set s1 = new HashSet(); s1.add(0); s1.add("1"); dostuff(s1); } static void dostuff(Set<Number> s) { do2(s); Iterator i = s.iterator(); while(i.hasNext()) System.out.println(i.next() + " "); Object [] oa = s.toArray(); for(int x = 0; x<oa.length; x++) System.out.println(oa[x] + " … Software Development java | |
Please help me debug about datetimepicker. I think, the code is written correctly but its not. The program kee[s prompting **ORA-01858: a non-numeric character was found where a numeric was expected** Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim cmd As New OleDb.OleDbCommand 'cnn.ConnectionString = … Software Development open-source oracle vb.net visual-basic | |
hi im new to programing and im trying to make a program that would calculate the tax on a given price but that would accept the tax rate as either an integer or a double but i get this error Index (zero based) must be greater than or equal to … Software Development | |
hello can any one give a easiest and understandble link or video tutorial for cursor implementation of linked list very hard to understand please suggest a good link and understandable Software Development c linked-list | |
please give me a good link for polynomial manipulation of linked list Software Development c linked-list | |
class Sample1 { Sample1() {System.out.println("Sample1 const"); } void doStuff(){System.out.println("sample1 dostuff"); } } class Sample2 extends Sample1 { Sample2() {System.out.println("Sample2 const"); } } public class Sample3 extends Sample2 { Sample3() {System.out.println("Sample3 const"); } public static void main(String r[]) { new Sample3().go(); } void go() { super.doStuff(); } } The output is: … | |
hi all, been tryin to find wat is wrong with this code. It works for sometime then starts repeating the same value continuossssssly. any help will be appreciated. thanks /* THIS PROGRAM IS TO RUN A SIMULATION PROGRAM OF ARRIVAL AND SERVICE TIMES OF AN AUTO-REPAIR WORKSHOP * servTime = … Software Development java | |
Hii need help for writing user input in a file. The following code is writing only the last word in a file. For example if user type "hello world", it will save only "world" in the file. I want to write the whole sentence in the file. for i in … Software Development file-system python | |
Hello every one and thank you all for your sweet replies. I am making a project in VB.NET, after the completion of project, is it possible to install it in anyone's computer? I mean to say, the project which I have made in VB.NET 2008, can be only run through … Software Development vb.net visual-studio | |
I searched and found a lot of codes and I made a code for myself for transfering file through ftp protocole but I got some errors there that I dont know:-s this is my code : Dim FTPRequest As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create("ftp://ftp.microsoft.com/Softlib/" & "README.TXT"), System.Net.FtpWebRequest) FTPRequest.Credentials = New System.Net.NetworkCredential("", "") … Software Development file-stream file-system vb.net | |
Hey All, I created a calculator with an online tutorial, but it is very basic. I wanted to include keyboard functionality. For example i currently am unable to use my key board to do "6 + 9". I need the "6" to be stored when the "+" on the keyboard … Software Development | |
Hi, i want to call frame B from Frame A private void BFrameBActionPerformed(java.awt.event.ActionEvent evt) { Frame B = new Frame B.setVisible(true); } NOTE :calling JframeB is trigerred by a jButton but when I do this FrameA overlays my Frame B. can someone help me with this? Software Development java | |
A corporation has six divisions, each responsible for sales to different geographic locations. Design a DivSales class that keeps sales data for a division, with the following members: • An array with four elements for holding four quarters of sales figures for the division • A private static variable for … Software Development c++ | |
hi.. i want to know the the syntax of for loop that can circulate betweent "0" to "63" with step "8" that mean if value of "i" become 60 it will not move to 68 it should be go back to zero after 63 and the value of "i" should … Software Development |
The End.