132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rony

Hiya, I am using following Java file which creates a GUI, in the input field if i put any character why dont I see the JOptionPane.showMessageDialog pop up window as mentioned in the code? Any clues? Thx Rony //import statements import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import java.text.DecimalFormat; …

Software Development gui java java-swing
Member Avatar for javaAddict
0
759
Member Avatar for blknmld69

I would like to know how to take a selected Item string ("Allen Hall: $1,500 per semester") from one combobox and another selected Item string ("7 meals per week: $650 per semester") from another combobox and have the output to be ($2,150) the total of the two strings added together?

Software Development java
Member Avatar for javaAddict
0
107
Member Avatar for pinkannu

Hi, The following part of code is failling at first free call (Line no.26) giving above error.I don't know what to do.Please reply urgently. [code] int main() { val1 Valstruct; int i; Valstruct.ch = (char **)malloc(2 * sizeof(char *)); for(i=0 ; i<2 ; i++) { Valstruct.ch[i] = (char *)malloc(10 * …

Software Development c
Member Avatar for pinkannu
0
130
Member Avatar for problematic:)

hi, ahm. well can someone help me in my project, it is a reservation system in a church, the problem is, I have to reserve the date that my client wants. I don't know what application I should use. At first, I use the calendar contol 6.0 but I don't …

Software Development visual-basic
Member Avatar for AndreRet
0
381
Member Avatar for soteri0s

Hello everyone, I know this question has been asked before but it is possible to write a keylogger in java? Before assumptions are made I'm not trying to hack anyone or do anything illegal. I simply have a team project in my data structures class and I am an aspiring …

Software Development java
Member Avatar for peter_budo
0
239
Member Avatar for muze

hello guys....I have a program which is a GUI. - When I [B]RUN[/B] the program and do some testing; it is good and nothing happens. - But on the same [B]RUN[/B], when I do some testing, it crashes. Every time I run the program, I find the same results. So …

Software Development c++ gui
Member Avatar for muze
0
86
Member Avatar for serph09

I have these three classes: Student.java [CODE]public class Student { private int grade; private String name; public Student(String n, int g) { grade = g; name = n; } public int getGrade() { return grade; } public String getName() { return name; } }[/CODE] GradeBook.java [CODE]public class GradeBook { private …

Software Development java
Member Avatar for ~s.o.s~
0
126
Member Avatar for abelingaw

Ok here's what i want to do. I woul like to disable the toolbar and menubar in my main form depending on the usertype that was logged in. My dbase field is UserType and record type can only be User and Admin (Depends on the registration). When a user log …

Member Avatar for AndreRet
0
523
Member Avatar for oneml

Hi I am trying to create a program in java which will scan for words within a text file. The program will scan the list containing a bunch of words in every line some words may be repeated. The program should scan the text file when I input a word …

Software Development file-system java printer
Member Avatar for ~s.o.s~
0
176
Member Avatar for flide

Hello friends, I designed few classes to simulate any DFA and it runs fine, now I want to do the same for a NDFA. The major problem that arises with it is the possibility of transiting to multiple states on a single input and epsilon-transitions. for an overview i am …

Software Development c++
0
278
Member Avatar for sri.k

Hi all, This is sri. I've done some program to read xml elements in java.But i didnt get them in a structured way like root element and its name and child elements and their names.I am getting end tag names after tag value also.so pls help me in getting elements …

Software Development java regex xml
Member Avatar for sri.k
0
182
Member Avatar for bhagawatshinde

Hi I am using vb.net 2008 and sql server 2005 in that one form contains the richtextbox from that richtextbox i am saving the questions in database now i want to change each questions font and size. can anybody help me!

Software Development sql vb.net
Member Avatar for bhagawatshinde
0
130
Member Avatar for tachyonshower

hi, i was just wondering if someone could point me in the right direction on how i would go about writing up code for displaying a plane-collection of harmonic oscillators. i would like to display them as oscillating spheres. i have code written up for graphing 1-d coupled oscillators and …

Software Development python
Member Avatar for tachyonshower
0
324
Member Avatar for Codeslinger

PLEASE MODIFY MY CODE TO COMPUTE FOR THE AVERAGE OF FIRST GRADING, SECOND GRADING, THIRD GRADING AND FOURTH GRADING PERIOD, THE FORMULA IS THIS AVERAGE COMPUTATION First Grading Period: Average = Sum of grades / Number of subjects Second Grading to Fourth Grading Period: Average = (30% of the Average …

Software Development java
Member Avatar for apines
0
205
Member Avatar for longlongsilver

I have to use the function [I]ask_number()[/I] so that is ask the player for a guess with a call to [I]ask_number()[/I] here is my code but it automatically guess the number and i dont know if i did it right [CODE]import random print "\tWelcome to guess my number!" print "nI'm …

Software Development python
Member Avatar for longlongsilver
0
923
Member Avatar for rinjin07

UGHHH I have a research assignment on this subject and I can not for the life of me find any reputable sources that mention this at all. If anyone knows of any academic sources that even mention non-english programming briefly or even discuss programming being mainly in english I would …

Software Development
Member Avatar for darkbreaker
0
105
Member Avatar for jasleen12345

[CODE]#include<iostream> #include<string> using namespace std; class string { char *a; int b; public: string() {a=0; b=0;} string(char *c) { b= strlen(c); a= new char[b+1]; //b+1 because one char extra for space strcpy(a,c); } friend void show(string s); friend string operator+(string &s1, string &s2); }; string operator+( string &s1, string &s2) …

Software Development c++
Member Avatar for wickedflo
0
132
Member Avatar for mike_2000_17

Hey y'all, I was just curious about which idiom you prefer or use very often.. and why? Please vote on the poll! I understand that there are a lot of choices but you can vote for multiples, but try to pick only the ones you think are the best, or …

Software Development c++ web-design
Member Avatar for mrnutty
0
212
Member Avatar for muncher10

I need it to read all three of the numbers and up them back least to greatest. As of right now all it prints is 0.0 for all 3 and true. How do I get it to not print true and 0.0 and print the acual numbers. [CODE]public class Floating …

Software Development java
Member Avatar for theonly
0
83
Member Avatar for z00t

[COLOR="Red"][U]PYTHON:[/U][/COLOR] I have no idea where to start this, but i need to write code that takes a list of real numbers as input and returns the average of the numbers in the list. any input as to how i would go about starting this code would be much appreciated.

Software Development python
Member Avatar for richieking
0
121
Member Avatar for Asset

How would I write a code to read in this book.txt [CODE]title*Programming PHP author*Lerdorf, Tatroe and MacIntyre publisher*O'Reilly Media description*3 This book covers the PHP programming language. It assumes the reader has some programming experience. It covers connecting to Oracle and MySQL databases. title*Core PHP Programming author*Atkinson publisher*Pearson Education description*3 …

Software Development json oracle python
Member Avatar for Asset
0
345
Member Avatar for andrewjad

here's my code: [CODE=C++] #include <iostream> using namespace std; void func(int num) { num = num + 1; cout << num; } int main() { int num2 = 5; cout << num2; func(num2); cout << num2; func(num2); cout << endl << endl; system("PAUSE"); }[/CODE] when the program runs, it yields …

Software Development c++
Member Avatar for andrewjad
0
210
Member Avatar for manutd4life

Hello, am working on a program like a database Here's the code: [code=c++]#include <cstdlib> #include <iostream> using namespace std; void addclient(void); void choice (void); typedef struct client{ int number; char name[35]; char gender[8]; char address[50]; char phoneno[15]; char mobileno[10]; struct client *next; } client; client *firstnode,*currentnode,*newnode; int clientid = 0; …

Software Development c++
Member Avatar for manutd4life
0
116
Member Avatar for dinners

Hi there, I am very new to C++ and I want to create an array of variable length. I tried this: [CODE] int corners; cout << "Please enter the number of corners: "; cin >> corners; int x[corners];[/CODE] but it came up with errors: error C2057: expected constant expression error …

Software Development c++
Member Avatar for dinners
0
163
Member Avatar for kuchi

We have a module called "cart.items" and imported this in another PY code to use classes. I did import classed under cart.items like ("from cart.ltems import Items") and used Items class in my code. When I run my PY code in UNIX box, I get that problem. What I ve …

Software Development python unix
Member Avatar for richieking
0
565
Member Avatar for rlhh

Deck.h [CODE]#ifndef DECK_H #define DECK_H class Deck { public: struct card{int symbol; int value;}; card card_list[52]; void generate_deck(); void main(); private: static int const diamond = 1; static int const club = 2; static int const heart = 3; static int const spade = 4; }; #endif [/CODE] Deck.cpp [CODE] …

Software Development c++ microsoft-access
Member Avatar for rlhh
0
192
Member Avatar for Seapoe

Hello, I have implemented different sorting algorithms (bubble sort, merge sort, heap sort, etc...) and want to calculate the running time for each one on different sets of data. I'm using Visual Studiois but am familiar with Dev C++ and Xcode on Mac. I used C++. Is there some special …

Software Development c++
Member Avatar for UberJoker
0
3K
Member Avatar for Xcelled194

OK, this one has me baffled. I'm trying to teach myself more about recursive functions, so I'm making a prgoram to figure out the Knights Tour ([url]http://en.wikipedia.org/wiki/Knight's_tour[/url]). It went well until I tried to run it. It stops randomly between 2,000 and 3,000 iterations with a Stack Overflow Error, yet …

Software Development vb.net
Member Avatar for Xcelled194
0
216
Member Avatar for Thropian

I'm making a little game and I can't get button bindings to work. Here is what I have so far [CODE]def forward(event): print "up" frame.bind("<Up>",forward)[/CODE] but pressing the up arrow does nothing...is there something I missed?

Software Development python tkinter
Member Avatar for TrustyTony
0
149
Member Avatar for glenc70

ok i can easily make a server and client sockets in python because of the very easy library it comes with but is there a easy library as easy for c++ as the library that c++ comes with seems very confusing to me thanks in advance

Software Development c++ client-server
Member Avatar for SgtMe
0
106
Member Avatar for denmarkstan

please i need help here. let someone help me to debug this i attach the project bon compressed folder: [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { //static …

Software Development open-source
Member Avatar for Medalgod
0
2K
Member Avatar for incubus9x9

So my teacher gets mad at me when I ask questions so I'm coming here for your help cause you guys a life savers :) OK So what I understand about this project is we have a file with numbers and we have to make an array to read it. …

Software Development gui java
Member Avatar for kramerd
0
198
Member Avatar for convoluted

Hello all. I'm trying to get a video feed in a wxPython GUI (under MS Windows) and thought about using OpenCV. There is a short tutorial on how to achieve this at this page: [url]http://opencv.willowgarage.com/wiki/wxpython[/url] (updated late 2009). The problem I'm having is trying to load the libraries to get …

Software Development gui python
Member Avatar for convoluted
0
380
Member Avatar for jiraiya

Hi everyone, I'd like to write a small application to basically read in some text from a file, display it in a GUI (I've done this using a textpane), and then change the font color of certain words if they exist in the text (say from the default color to …

Software Development gui java
Member Avatar for Ezzaral
0
103
Member Avatar for lagvino_els

I'm coding about AA Tree and having some troubles of function: DeleteNode. Please help me how to coding about deleting a node in AA Tree! Thanks for your care!

Software Development c++
Member Avatar for Narue
0
104
Member Avatar for precila

**Write a algorithm to accept 5 number and sort it in the ascending order using selection sort** #include<iostream.h> #include<conio.h> class selectionsort { Int a[100], n, i, j, temp, loc, min ; public: void in( ) ; void out( ) ; selectionsort( ) { Min = a[0] ; } }; void …

Software Development algorithm c++
Member Avatar for geojia
0
194
Member Avatar for prashant_

Perl/apache if we run the Perl script on apache for display the result of Linux command it is not able to execute the Linux command and not display it into the browser. eg. We want to display the result of "ping" command but not able to identify what is the …

Software Development apache perl
Member Avatar for mitchems
0
141
Member Avatar for CharlieHolt

I'm having a bit of trouble understanding DataAdapters and I was hoping for a quick bit of help. At runtime, I'd like Form1 to open a DisplayForm for each row in the database and have each of those DisplayForms be bound to the database and fully editable (there are 3 …

Software Development
Member Avatar for Mitja Bonca
0
146
Member Avatar for sneek

Hi, I read the Python/C-API and they say I should not use PyArg_Parse() anymore but use PyArg_ParseTuple(). My problem is that I retrieve an PyObject * out of PyDict_GetItem(...) so this is a single object and not a tuple. PyArgs_Parse() is the only API-Function to get a C-"string" out of …

Software Development api python
Member Avatar for Gribouillis
0
2K
Member Avatar for digitaldan

Hello All, I wrote the following code to access a file, assign pointers to the contents of the file, display the file as a matrix, read the last line as a separate matrix, then I am supposed to perform matrix multiplication on the two aforementioned matricies. I have the first …

Software Development c matrix-multiplication
Member Avatar for digitaldan
0
193
Member Avatar for aaronmk2

I am writing a program using vector and am wondering if my destructor is correct, or do I need to add another line. The clear, clears all the elements in the vector, but do I need to add another line to delete the vector, and if I do what line …

Software Development c++
Member Avatar for arkoenig
0
108
Member Avatar for xxunknown321

I believe the error has something to do with my mergeArray function. Its a modified version of the insertNode function. i tried to make it so that i can loop through and insert an entire array of elements into a linkedList. My program compiles without error but gives me a …

Software Development c c# c++ linked-list
Member Avatar for xxunknown321
0
174
Member Avatar for intes77

sub class [CODE] public class Exer2 { public void setLength(int x) { this.listLength=x; } public int getLength() { return this.listLength; } int listLength=getLength(); int list[]=new int[listLength]; public void display() { System.out.println("The array length is: "+list.length+" "); } } [/CODE] main class [CODE] import java.util.*; public class Output { static Exer2 …

Software Development java
Member Avatar for intes77
0
152
Member Avatar for mpassaglia

Hello all, I keep getting a segmentation fault when I run this compiled program. [CODE] #include <string.h> #include <stdio.h> #include <stdlib.h> #include "person.h" /* write a struct to the file */ void WritePersonFixedLength(struct person * input, FILE * target) { //use fprintf to write input->firstname '%-20s' fprintf(target, "%-20s", input->firstname); //use …

Software Development c
Member Avatar for mpassaglia
0
2K
Member Avatar for frogboy77

Can anyone tell me if it is possible to set a value in an array to infinity and if so how to go about it? Thanks.

Software Development c++
Member Avatar for frogboy77
0
75
Member Avatar for natha_peepli

i just learned how to get input from keyboard...' [CODE] import java.io.*; class Fish{ public static void main(String[] args) { BufferedReader Keey = new BufferedReader(new InputStreamReader(System.in)); System.out.println(Keey.readLine()); } } [/CODE] But whenver i compile it..its shows me the follwing exception.. C:\Program Files\Java\jdk1.6.0_22\bin>javac Fish.java Fish.java:7: unreported exception java.io.IOException; must be caught …

Software Development java
Member Avatar for apines
0
196
Member Avatar for LoneStarMark

Hello All, Newbie C/C++ programmer (veteran VB) here with a problem I cannot get past: I am attempting to run/modify code created in Borland C++ v.6. When I try to run the code in the IDE I consistently get an EAccessViolaton with the line of code in the title highlighted. …

Software Development c++ ide
Member Avatar for LoneStarMark
0
134
Member Avatar for choosenalpha

Hi All, I am getting the following error below when running my CGI script. I have went through the code but can't seem to sift where exactly it is saying on each of the respective lines. For the error on line 65 is it because I have a localized variable …

Software Development perl
Member Avatar for choosenalpha
0
1K
Member Avatar for vanalex

Hello! I've written a class called Date: [CODE] class Date { private: int day, month, year; public: Date(); Date(const char *d); //other methods... }; [/CODE] I want to write a constructor that'll take as a parameter (as you can see) a c-string. That string will look like: "12022010". The first …

Software Development c++
Member Avatar for vanalex
0
184
Member Avatar for Quazy

Hello I have a datagridview, and I would like to run some queries (fill queries). when I run a fill query, my dataggridview show only one row, depending on the query parameter. How can I run a query multiple times, without removing the previous rows? I am using the: [CODE] …

Software Development dataset vb.net
Member Avatar for Quazy
0
108

The End.