132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cdea06

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
Member Avatar for cdea06
0
86
Member Avatar for floatingshed

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: …

Software Development gui python
Member Avatar for floatingshed
0
147
Member Avatar for layneb131

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
Member Avatar for woooee
0
1K
Member Avatar for faithful4ever

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
Member Avatar for Ab000dy_85
0
223
Member Avatar for vimtojoe

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
Member Avatar for ihatehippies
0
207
Member Avatar for suneye

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
Member Avatar for suneye
0
246
Member Avatar for sahmeme

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
Member Avatar for harinath_2007
0
302
Member Avatar for TIM_M_91

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
Member Avatar for TIM_M_91
0
176
Member Avatar for wildplace

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 …

Software Development c c# c++
Member Avatar for mrnutty
0
5K
Member Avatar for Valiantangel

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
Member Avatar for hfx642
0
126
Member Avatar for Labdabeta

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++
Member Avatar for rubberman
0
151
Member Avatar for SumPersonGuy

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
Member Avatar for tungnk1993
0
158
Member Avatar for choosechrist

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
Member Avatar for kingsonprisonic
0
161
Member Avatar for aparichit4evr

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++
Member Avatar for tungnk1993
0
281
Member Avatar for senergy

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: …

Software Development c++ mysql
Member Avatar for senergy
0
111
Member Avatar for ilovejava

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
Member Avatar for rubberman
0
114
Member Avatar for Dhanesh10

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) …

Software Development java oracle
Member Avatar for database_nitesh
0
452
Member Avatar for daydie

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
Member Avatar for tungnk1993
0
159
Member Avatar for abelingaw

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
Member Avatar for abelingaw
0
154
Member Avatar for suneye

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++
Member Avatar for Ancient Dragon
0
153
Member Avatar for aishapot
Member Avatar for tungnk1993
0
108
Member Avatar for jackbauer24

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
Member Avatar for jackbauer24
0
172
Member Avatar for aliasadsahu

[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
Member Avatar for JamesCherrill
0
127
Member Avatar for capella2

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
Member Avatar for NormR1
0
278
Member Avatar for Ahmed2

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++
Member Avatar for deceptikon
0
620
Member Avatar for chieny

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] …

Software Development ide java
Member Avatar for NormR1
0
550
Member Avatar for Karlwakim

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
Member Avatar for jbennet
0
90
Member Avatar for ICTGUY

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++
Member Avatar for ICTGUY
0
321
Member Avatar for nered

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
Member Avatar for JamesCherrill
0
434
Member Avatar for justindill

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
Member Avatar for NormR1
0
896
Member Avatar for ali.jay110

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
Member Avatar for ali.jay110
0
341
Member Avatar for angryKitten

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
Member Avatar for JamesCherrill
0
137
Member Avatar for squinx22

hi! What is makefile? How does it work? Is it done in the terminal? I am using Unix OS

Software Development c++ unix
Member Avatar for palashjhabak
0
159
Member Avatar for Aviplo

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
Member Avatar for codeorder
0
107
Member Avatar for blackarchan

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
Member Avatar for blackarchan
0
164
Member Avatar for ryklon

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
Member Avatar for ryklon
0
1K
Member Avatar for v3ga

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 …

Software Development gui java
Member Avatar for v3ga
0
358
Member Avatar for picogenkaku

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++
Member Avatar for picogenkaku
0
241
Member Avatar for ShaRp codeR

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
Member Avatar for ShaRp codeR
0
387
Member Avatar for dilse4sk

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
Member Avatar for hericles
0
257
Member Avatar for The_Purple_Mask

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?

Software Development algorithm c++
Member Avatar for mike_2000_17
0
269
Member Avatar for gerchi152

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
Member Avatar for gerchi152
0
94
Member Avatar for mrmodest34

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 …

Software Development c c# c++
Member Avatar for mrmodest34
0
235
Member Avatar for Contagious98

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
Member Avatar for bwaha
0
283
Member Avatar for mags11

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
Member Avatar for mags11
0
2K
Member Avatar for long89

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
Member Avatar for long89
0
213
Member Avatar for Tobyjug2222

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
0
113
Member Avatar for sc0tty

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 …

Software Development python tkinter
Member Avatar for askandstudy
0
166
Member Avatar for shifat96

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 …

Software Development ide java
Member Avatar for shifat96
0
943
Member Avatar for zina_a

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
Member Avatar for zina_a
0
170

The End.