132,726 Archived Topics
Remove Filter ![]() | |
I'm trying to improve the validity checks in my program, but no matter what I do, I can't seem to come up with one that catches the following: 1) If you input "enter" "enter" the program reads it as a valid anagram. 2) if you input all number "33467" "22113" … Software Development c | |
I have a wx Gui that gathers all the necessary info and starts an external command line app. Whilst it is running my gui freezes as you'd expect so I've been experimenting with putting the external app in a thread of its own. My original code ends with the line: … | |
So im trying to create a times table: Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print and how high the table should go. The output should look something like this: Which multiplication table would you … Software Development python | |
I have an array of structures: [CODE]typedef struct { char name[20]; int ID; int status; } seat;[/CODE] Then, basically, I'm trying to print out the list of empty seats in a reservation system. [CODE]void listEmpty(seat plane[MAXCAP]) { int i; for(i = 0; i < MAXCAP; i++) { if(plane[i].status == 1) … Software Development c | |
Trying to help my brother who has just started learning Python at school. He's not the brightest so any help is appreciated. I consider this quite hard for someone who has barely started, although he has missed a few lessons through illness. Solution is welcome but please try to explain … Software Development python | |
hello, i am using the item selection changed property inorder to control the items in listview,when the user selects first any item every thing goes well but when he changes selection it gives this exception : System.ArgumentOutOfRangeException was unhandled Message=InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index … Software Development listview | |
the error goes like this: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order (custNo, dateOrder, totalPayable) VALUES ('', '2012/Feb/19 16:09:02', '0' at line 1 // HELP T_T. this project is to … Software Development java java-swing | |
Hi there guys can someone explain to me how I can increment a value within a field in my database each time I execute my query?. As I cannot seem to find a way to do this. Below is my structure for reading + writting to my database if you … Software Development gui java microsoft-access sql | |
let say, i have a House object; House* someHouses = new House[100]; -----fucntion call... may or may not add stuff to someHouses ------ now, i want to get to the last position that haven't used yet. i tried to check NULL, and 0, both doesn't work. how can i check … | |
Suppose that the tuition for a university is $ 10,000 this year and increases 5% every year. Write a program that uses a loop to compute the tuition in ten years. Write another program that computes the total cost of four years worth of tuition starting 18years from now. I … Software Development java ![]() | |
Is this a viable BIGENDIAN test: [CODE]int tmpvaluethatwillneverreallybeused=1; bool bigendian=(*(char*)(&tmpvaluethatwillneverreallybeused)==1); void myFunction() { if (bigendian) { //do big endian specific code } else { //do little-endian specific code } }[/CODE] Software Development c++ | |
Basically, the assignment is to create a huge integer class by using a singly linked list, wherein each element of the linked list holds one digit of the number of the huge int. I only have to do addition and multiplication, and addition works. Multiplication *should* work, as far as … Software Development c++ linked-list | |
Hi, I did checkout many solutions on daniweb but couldn't get anything positive. i am new to vb.my idea to is to cycle through the cell values of particular column in a datagridview. and if duplicates are found, display them in a message box. Dim wacko As String wacko = … Software Development vb.net | |
Hello friends...I'm having confusion about binary operator overloading in the following program. The question goes like this. Qn. Create a class time with two member variables as hours and minutes of integer type,write default,parameterized and copy constructor. Overload necessary operators to compute T3=5+T1+T2, where T1,T2 and T3 are time objects. … Software Development c++ | |
Hello, about 3 months ago I made simple chat using MySQL++ which is working fine, login function: [url]http://pastebin.com/Mdup4zi6[/url] but today I'm creating Control Panel, I've copied and changed this function a little bit, but i'm getting 0 results (if I copy syntax to navicat I'll get password so...) login function: … | |
I have a question why is important to supress warnings in java, i notice my professor do that all the time [CODE] @SuppressWarnings("unchecked") [/CODE] Software Development java | |
Here is my java connectivity code to Oracle [CODE]public class OracleConnectivity { public Connection con; public Connection getConnection () { try { Class.forName("oracle.jdbc.driver.OracleDriver"); con=DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:dhanesh","dhanesh","root"); Statement s=con.createStatement(); s.executeUpdate("insert into test (num,txt) values (2,'hi')"); s.close(); con.close(); } catch(Exception e) { System.out.println("Connection failed"); e.printStackTrace(); } return con; } public static void main(String[] args) … | |
hey guys, im wondering if its possible to ping a website while logged into the website so you can ping a certain page which you couldn't if you was not logged in. Any 1 shed any light on this please? I seen CMD ping through VB but that doesn't have … Software Development vb.net | |
I'm having problem trying to find out what is wrong with a code. Here's what it is supposed to do. 1. The messagebox should only appear if a record already exist in the database 2. If there is no record of the same information, then it would save the new … Software Development visual-basic | |
Hello, I am trying to read data from a file and make each saved item in the file an option on the combobox so that the user can select whatever he wants .The problem is in adding items to combobox not in reading from file .can anybody help me plz … Software Development c++ | |
Does anyone know how to update multiple images? Software Development image mssql vb.net visual-basic | |
Here is my code:- [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package wrie.and.read; /** * * @author Administrator */ import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.*; import javax.swing.*; public class WrieAndRead { JFrame frame; JTextField field; /** … Software Development java java-swing | |
[CODE]class Animal { private String type; Animal theAnimal = null; // Declare a variable of type Animal public Animal(String aType) { type = new String(aType); } public String toString() { return "This is a " + type; } } class Dog extends Animal{ private String name; // Name of a … Software Development java | |
I have been working on this topic for three days. I can not seem to solve the problem. I need to generate tree when the user enter binary with the corresponding variable the tree should be generated recursive until a certain condition is met. This topic is new to me. … Software Development java | |
Hi guys, the title says it all, I have produced list of numbers from a c++ program into an excel file, and I want to make a CDF graph out of it. What I know is that I need to find numbers greater than zero, then number greater than one … Software Development c++ | |
DEPOSIT and WITHDRAWAL ERROR MESSAGE: Input Amount:Exception in thread "main" java.lang.NullPointerException at Soft_eng.ATM.main(ATM.java:226) there is a logic error or whatever error in deposit and withdrawal. :( there is a little problem in new account. when the system reaches 11 records it cause to force shutdown of this atm system. [CODE] … | |
Hello everybody, I am still learning c++,I already know about objects, classes, pointers and i can use them. I wanna move to game development, but should I go further in console apps before moving to game dev ? Please help me because i am 14 years old and i would … Software Development c++ career engineering | |
hi.. this is part of an assignment.. but any help will be greatly appreciated F(0) = 0 where F(z) is a linear polynomial of order n with complex coefficients F(z) = A(n)Z^n + A(n-1)Z^n-1 + ... + A(1) Z + A(0) = 0 this hasent formatted very well.. it's A(subscript … Software Development c++ | |
Hi, So i got pretty far whit Java i covered basic operation, GUI w/e MVC design etc. It been a fun year learning Java. Now i want to make an application for communication between two points similar to a TFTP Server/Client. So this is how i visioned this to go: … Software Development client-server gui java | |
If I close off the for loop it works but I need to get the output to show as a dialog box as well. I need the output to show inside a dialog box: Output should include count of numbers entered the sum of the numbers the average of the … Software Development java java-swing | |
Hi There is something about this code that does not seem right has anyone got any ideas? It does not matter what it does. I mean from a constructor/inheritance point of view. Some of the points I made were one constructor was passing a null value, which in turn was … Software Development java web-design | |
Hi, I'm trying to learn some Java for fun and got a question about comparing integers. If I wish to compare int a to int b and check for equality that's pretty straightforward and easy, but if I want a method to return equal for different values I get a … Software Development java | |
hi! What is makefile? How does it work? Is it done in the terminal? I am using Unix OS | |
When i'm working on my project,many times it show the message something like this "...out of memory" so can any one help me what should i do? Should I compress my project and make it smaller in size? I'm just a beginner. Every comment appreciated. Software Development vb.net | |
Oke so i want to make a script that automaticaly install some apps adds some lines to some files replace some lines from files For the install i use apt-get -y install packagename For adding line im using : [CODE]sudo sh -c 'echo "#Name" >> /etc/apt/sources.list' sudo sh -c 'echo … Software Development shell-scripting | |
Hi! I'm having a bad time on learning how to store and retrieve image files on MS Access. This is some sort of uploading profile picture thing in my software. The open file dialog stuff and the storing of image file in the MS Access Database are taken care of … Software Development file-system image microsoft-access vb.net | |
![]() | My objective is to implement a GUI calculator in java. I am thinking of passing the expression entered by the user to bc and then get output from terminal and print to user. My question is [LIST=1] [*]How to execute a terminal command from java so that i can pass … ![]() |
Good day to everyone. I have this trouble of stopping the timer at a specific time, say I have to stop the timer at 1:30. When I try to run it, it doesn't stop. Please help. Here's my C++ code. [CODE] #include <iostream> #include <time.h> using namespace std; void wait … Software Development c++ | |
Hello, I would like to know any information about "UML Diagram Generator" from the code or if there is any good software which can enable me to make quick UML Diagrams from the code for my University Assignments. I have been looking for one but did not find anything good. … Software Development ide java java-netbeans | |
hi every 1 i am trying to make a search form . i want to display the data saved in sql server in a grid view upon hiting the search button . below is the code which i am using but i am getting an error > Conversion failed when … Software Development open-source sql vb.net | |
I am using a priority_queue-s for implementing A* and Dijkstra's algorithm. Is there a point writing my own heap for time optimization? How faster would it be? I read in wikipedia that Fibonacci heap will be the best. Do you agree? | |
I have 3 columns in my database (book title, book author, date added). for example Karen Harper has 5 books in my database and Lisa Jackson has 3. I will enter the date added in a textbox (for example 01-15-2011 since all was added on that date) and once I … Software Development vb.net | |
Greetings, this is my first post here but I will try to do it correctly. I know this specific question is a common one, but I am not looking for someone to do it for me, I just need someone to help me out a little. I understand the basics … | |
Can somebody tell me what I could do with this matter? I am using vb.net 2008 and just installed crystal report x. I tried opening my project in Vb.net and the problem is I could not see the Crystal reports icon. I wanted to add a new form via Add … Software Development vb.net | |
I am trying to get the program's decimal to output in two decimal places after the decimal. Please advise. [CODE] // MilesPerGallon.java // Program designed by XY import javax.swing.JOptionPane; // Needed for JOptionPane. import java.text.DecimalFormat; // Keeping proper decimal format. public class MilesPerGallon { public static void main(String args[]) { … Software Development java java-swing mathematics | |
I don't know how to write code to exit for this program.someone please help me :( [CODE] import java.awt.*; import javax.swing.*; import java.awt.event.*; public class Panel extends JPanel implements ActionListener{ private JTextField height, weight, answer; private JButton calc, clear, exit; public Panel(){ this.setLayout(new GridLayout(2,1)); JPanel topPanel = new JPanel(); topPanel.add(new … Software Development gui java java-swing | |
Hi, this is regarding a program I was working on, and codeorder managed to help me out, big time! Although One problem remains, I don't know how to make the streaks not duplicate. (If you don't understand, please review : [url]http://bit.ly/Av6Xeb[/url] ) [CODE] Private rnd As New Random '// DECLARED … Software Development vb.net | |
Hello, I am learning python and am having trouble getting this program to work correctly. [CODE]from Tkinter import* import time import tkMessageBox import random def Questions(): number1 = random.randrange(1,25,1) number2 = random.randrange(1,50,2) answer = number1 + number2 prompt = ("Add " + str(number1) + " and " + str(number2)) label1 … | |
Hello, I have a Computer Science project for school. I am done writing the full code but I am missing one of the requirements. Some of the text have to be aligned to the right. Here's an excerpt from my code which I want to change the alignment: [CODE] System.out.print … | |
hi, I have to make an application in java to access the switch of the my company and show his details(host name,IP adress,MAC adress,time fonctionnemnt...),also if any one tell me how can I make it,some samples in java abouth that would be helpful. Software Development java |
The End.