132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mohammad007

how to use button handler in java?

Software Development java
Member Avatar for javaAddict
0
100
Member Avatar for mehmood_ahmed

hi ... i am making a program which can handle bank acount system. In which User can MakeDeposite,WithDraw money and CheckRemainingBalance. when user MakeDeposite then a certain amount should be saved and as how much times user MakeDeposit, it should be added in balance amount and as how many times …

Software Development c++ file-system ios
Member Avatar for mehmood_ahmed
0
80
Member Avatar for Whilliam

Hello. I've been trying to solve this problem but I can't and my head hurts already. Please help me. [code=c] #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> #define max 12 #define num 30 #define nam 24 typedef struct { char name[nam]; int score; int rank; }CONTESTANT; typedef struct { CONTESTANT CA; int next; …

Software Development c storage
Member Avatar for Whilliam
0
403
Member Avatar for TigerGirl

How would you draw a expression tree that is (a-2/(5 * b) plus 3) * (2 * d)? I am really confused on the first parenthesis. Thank you for your help.

Software Development java
Member Avatar for TigerGirl
0
66
Member Avatar for terdie

I think my thread title is a bit incomplete. coz these are my questions.I need answers to these questions for the completion of my thesis. [B]I Know this is sort of a long message but im detailing the situation for better understanding of my questions.[/B] And because these thread is …

Software Development c# client-server dataset sql
Member Avatar for mangesh_dhole12
0
1K
Member Avatar for UKmason

This is what I have of my code so far but I cant get it to work right, Can someone help me fix this I need to make a float function that converts celsius to fahrenheit but im not totally sure how to do it I also need to make …

Software Development c++
Member Avatar for restrictment
0
134
Member Avatar for Sandar Khin

I have a program. Here import java.awt.*; import java.awt.event.*; import javax.swing.*; class MarqueeTest { public static void main(String[] args) { MyFrame frame = new MyFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); } } class MyFrame extends JFrame implements ActionListener { private ActionListener listener; private Timer t1; public MyFrame() { Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); setSize(d.width,d.height); …

Software Development java java-swing
Member Avatar for Sandar Khin
0
176
Member Avatar for prelyptica

I an trying to write a few java classes, which I wrote successfully, but when I am tryin to test it I get some weird errors and I cant figure out why, so i'd be very grateful for your expertise. The code for the GCD class is: [code] public class …

Software Development java
Member Avatar for thines01
0
195
Member Avatar for pokerDemon

Ok so heres my story. Ive done basic programming before with serverside javascript which is not really used but effective when creating small backend databases and its kinda like vb script, so im familiar with basic concepts like funtions, arrays etc Ive been reading some books on C++ and ive …

Software Development c++ gui postgresql window-manager
Member Avatar for jbennet
0
110
Member Avatar for restrictment

Hey, I am just learning functions. I was wondering if you could tell me why this piece of code is not implementing the 'values' function. [code] #include <iostream> #include <windows.h> #include <string> #include <iomanip> void values(float value1[11]); using namespace std; float value1[11], value2[11]; int main() { cout << setiosflags(ios::fixed) << …

Software Development c++ ios
Member Avatar for restrictment
0
126
Member Avatar for UKmason

This is what I have already but I dont know if I am meeting the specs for my assingment... anyone have any input of what I should do? Assignment is Write a program that will ask the user for a temperature in Centigrade (Celsius) and convert it to the Fahrenheit …

Software Development c++
Member Avatar for BeyondTheEye
0
440
Member Avatar for ryno365

Hey DW. Working on a nice poker application and need some help. Right now I'm trying to go through two arraylists, one of chars and one of sorted ints (representing the suites, and numbers of the cards) and delete duplicating numbs (and the char/suite counterpart in the other array). In …

Software Development java
Member Avatar for ryno365
0
100
Member Avatar for shroomiin

hello everyone, i am trying to write a code that displays a table with 75 years. each year has to display the world population and the projected population for the following years after that by multiplying the current population by the yearly growth (1.17) but i am running into some …

Software Development java
Member Avatar for Ezzaral
0
133
Member Avatar for neithan

I want to finaly learn what's up with pointers and arrays, so i made up this program: [CODE]#include <stdio.h> int main() { int cantidad_frases = 0; printf("Cuantas frases quieres escribir?: "); scanf("%d", &cantidad_frases); char *frases[cantidad_frases]; for(unsigned i = 0; i < cantidad_frases; i++) { [B]for(; *frases[i]; frases[i]++)[/B] { *frases[i] = …

Software Development c
Member Avatar for neithan
0
163
Member Avatar for kenmeck03

Write a function called NumDistinctDict that takes a single parameter alist that determines the number of distinct values in alist. For example, the list [1,2,4,2,7] contains 3 unique values (namely 1,2,4 and 7).

Software Development python
Member Avatar for vegaseat
0
114
Member Avatar for Zaffron

So I want to make a class based RPG, as a project to help me understand how classes work. Unfortunately, I didn't get far. The below code is intended to make an instance of a character and have info in it like name, health, gold, exp, and the like. I …

Software Development python
Member Avatar for vegaseat
0
75
Member Avatar for restrictment

Just testing out arrays on this one. MY project is to create a thermometer that converts Celsius to Fahrenheit or vice-versa. [code] #include <iostream> #include <windows.h> #include <string> #include <iomanip> using namespace std; int main() { cout << setiosflags(ios::fixed) << setprecision(2) << ios::showpoint; float value1[11], value2[11]; char gauge1, gauge2, gauge; …

Software Development c++ ios
Member Avatar for restrictment
0
212
Member Avatar for lewashby

How do you know when to use a function by wraping the content between parentheses "function(x) or through dot notation x.function() ? thanks.

Software Development python
Member Avatar for masterofpuppets
0
161
Member Avatar for gcardonav

Afternoon: I am trying to create a loop to give me a series of random numbers. I need the random numbers to be between 100 and 999, this is necessary so I can divide the numbers by 1000 and then use this numbers for another program. My problem is that …

Software Development c++
Member Avatar for mrnutty
0
162
Member Avatar for Carrots

Hi there, I was hoping for some advice on how best to solve my problem. I'm creating a .csv file to store objects in, but the datamembers which are strings, require the ability to have commas within the strings. I have found out that I therefore need to enclose the …

Software Development c++
Member Avatar for Carrots
0
5K
Member Avatar for henks83

I have no idea how to do this. Please help. This week's lab is to design a hangman game. Your program should be able to open a text file which contains a list of words (one word on each line of the text file) and read the words into a …

Software Development puzzle python
Member Avatar for masterofpuppets
0
957
Member Avatar for neithan

I'm learning C, but a friend of mine asked for help with this code. I have debugged it with C::B and actually it crashes when getting out of the switch and starting to print out the menu again, after selection the first option (1. Polinomio) I 'watched' the polinomio pointer …

Software Development c++
Member Avatar for Dave Sinkula
0
128
Member Avatar for slim2hott

Im creating a calculator in a dialog box I have created all my headers and resource files with all my buttons and edits ready. This is a part of my .rc file: [CODE]EDITTEXT IDC_NUMBER,3,7,100,14,ES_NUMBER EDITTEXT IDC_NUMBER2,130,7,100,14,ES_NUMBER[/CODE] I have made these so the user can input integers and then use them …

Software Development c++
Member Avatar for slim2hott
0
199
Member Avatar for dima shawahneh

hello every one i m trying to minimize the form size but less than what it allows for me if i do like this .. it is okey this.Size = new Size(124, 36); but less than these values for the width and length it won't work.. i need to make …

Software Development
Member Avatar for sharensla
0
134
Member Avatar for bunkus

Hi, I tried the following code to capture the contents of the foreground window to an avi-file. It works under Python 2.6 and OpenCV2.0 though it only takes about 210 shots and then crashes. I think it might be a memory problem. Any ideas? You need to resize the window …

Software Development file-stream python video
Member Avatar for bunkus
0
833
Member Avatar for Maheen Khalid

HEy, I am new to C# and dont know much about it. I am facing a problem while running my code in Visual Studio 2008. The problem is that the screen disappears immediately when the program ends. please help me. Thanks in advance.

Software Development asp.net c c# c++ visual-studio
Member Avatar for thines01
0
116
Member Avatar for kent01981

VC++ access MySQL query problem Hi guys, Could you help me out with ------------ string str1 res=stmt->executeQuery("select * from test2 where english='str1'"); ------------ anyone can tell me where is wrong with this query code?below is the error msg I got: 1>.\temp6.cpp(48) : error C2146: syntax error : missing ')' before …

Software Development c++ mysql
Member Avatar for kent01981
0
297
Member Avatar for sawiyan

Hay i am new to the developnment currently i am working on datagrid i just want to know how to select a row on a datagrid using check boxes

Software Development c c# c++
Member Avatar for babbu
0
107
Member Avatar for junglee

i`m making Quiz program which asking State and you answer capital. here is code import java.util.*; import java.awt.*; import java.applet.Applet; import java.awt.event.*; import java.io.*; import java.util.Random; public class Quiz extends Applet { private String textfile = null; private TextPanel text_p = null; private Vector question = new Vector(); private Vector …

Software Development java
Member Avatar for quuba
0
299
Member Avatar for wangatang126

i need some help on this. I have the array numbers stored already but the array dosent display on the screen. Why? here is the code [CODE] # include <stdio.h> # include "simpio.h" # include "genlib.h" # include "strlib.h" # include <math.h> # define size 3 main() { int intArray[size][size]; …

Software Development c c# c++
Member Avatar for wangatang126
0
91
Member Avatar for wangatang126

Yeah i made a totally new program. However it still doesnt work. The error message says that it is an invaled conversion from int to int*. Here is the code. Please fix it and help repost it. [CODE]# include <stdio.h> # include "simpio.h" # include "genlib.h" # define SIZE 500 …

Software Development c c# c++
Member Avatar for wangatang126
0
136
Member Avatar for gcardonav

Hi: I posted yesterday about setting my loop to get random number between the values I desire. Now I got a bit of misunderstanding with my arrays. In the program now I am trying to calculate the average sum of the amount of numbers I get each series. My problem …

Software Development c++
Member Avatar for Ancient Dragon
0
186
Member Avatar for katwalatapan

Hello, Could anyone please explain a reason why data could not be received from a POSIX message queue using mq_receive(), called from a different file. Following is my code for a test that i'm running to try and transfer data from one file to another. main.c [code=c] #include "recfun.h" int …

Software Development c queue
0
127
Member Avatar for chaybird001

[CODE][/CODE]part 1 find the most efficient way of making change for any amount of money up to $200.00. the most efficient way means the fewer pieces of currency. the following are the values of monies to use. $ 100.00 $1.00 $ 50.00 $.50 $20.00 $.25 $10.00 $.10 $5.00 $.05 $2.00 …

Software Development c++
Member Avatar for Ancient Dragon
0
156
Member Avatar for YingKang

the program draws lines, but every time I draw a new line, the previous one disappears. How can I let it show all the lines drawn? I know my problem is in the array, but how to fix it? thanks for help [code] import javax.swing.JPanel; import java.awt.*; import java.awt.event.*; import …

Software Development java java-swing
Member Avatar for YingKang
0
825
Member Avatar for whiteyoh

Hi all, On compiling, i get no errors at all, the data is taken, but when checking the database, a record is made, but it is NULL. What have i missed? [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. …

Software Development java
Member Avatar for Ezzaral
0
163
Member Avatar for miskeen

Hi guys, Can I enable/disable an #ifdef based on a specific condition? Let's say that I've a loop [CODE]#define MYCONDITION 1 // code here for (int i=0; i<5; ++i) { printf("Hello #%d", i); #if MYCONDITION printf("I wanna be reached only if i == 3, is that possible?"); #endif }[/CODE] Is …

Software Development c++
Member Avatar for miskeen
0
107
Member Avatar for suchita

i want to know the program how to insert at the beginning of a circular linked list in C.

Software Development c linked-list
Member Avatar for subhashkataria2
0
110
Member Avatar for janinesamson

Hey, Is there an easy way with a TListView in report mode, to store a unique integer with each row? I've tried using the ".Data" property, but seem to end up with corruption quite often. I'm trying to do this because I want to associate each row with a primary …

Software Development pascal
Member Avatar for cao
0
177
Member Avatar for cole davidson

Hey! I just started learning C++ last month, so I am not that good yet. I am trying to write functions to compute the total surface area, lateral surface area, and volume of a right-circular cylinder. So I wrote the code, and it makes perfect sense to me. When I …

Software Development c++ visual-studio
Member Avatar for cole davidson
0
2K
Member Avatar for docdoc

My laptop doesn't have a parallel port so I purchased a USB to parallel convertor. I wrote a program which sends data to the parallel port to turn on some LEDS and it works ok on a PC with a built in parallel port but it wont work on my …

Software Development delphi laptop pascal
Member Avatar for azze
0
178
Member Avatar for kilermage

I run the program, from what I see the game runs fine. Then when I click on the object that suppose to send a dialogue, it disconnects me and throws this error in the run.batch window. [CODE]Exception in thread "main" java.lang.NullPointerException at NPCDialogue.UpdateNPCChat(NPCDialogue.java:18) at client.process(client.java:8471) at PlayerHandler.process(PlayerHandler.java:137) at server.main(server.java:55)[/CODE] Here …

Software Development client-server java
Member Avatar for ejosiah
0
155
Member Avatar for caprio.nups

this code is not working as per its expected output.please tell me the errors and how to rectify them. [CODE] #include<iostream.h> #include<stdlib.h> #include<conio.h> int* getwaitingtime(int* proc,int* arr,int* bur,int noofproc) { int i,j,c[10],t,p,m,s[10],out[10],f,l; int *wait; for(i=0;i<noofproc;i++) { if((arr[0]!=0)||(arr[i]>arr[i+1])||(arr[i]==arr[i+1])||(bur[i]<0)||(bur[i]==0)||(bur[i]>10)) { return NULL; } } for(i=0;i<noofproc;i++) { c[i]=arr[i]+bur[i]; } for(i=1;i<noofproc;i++) { for(j=1;j<noofproc;j++) { …

Software Development c++
Member Avatar for caprio.nups
0
122
Member Avatar for karthik.c

hi guys im tryin to do a java client / c++ server socket program .in the java client program i serialize the object and pass them over socket to c++ server.now when im gettin them in c++,im not able to deserialize it properly as i tried for binary serialization since …

Software Development client-server ios java
Member Avatar for ejosiah
0
603
Member Avatar for whiteyoh

Hi all, this is a bit of a follow on from a previous post, but slightly different so thought a new post would be best. i want to pass my scanner variables into an object. the following is the last scanner (Added as example), followed by the creation of a …

Software Development java
Member Avatar for whiteyoh
0
119
Member Avatar for crashovercool

hi guys.. i need help in creating a 'c' program. i ve written the quest below.. pls take time to see the quest n answer it..thanks in advance you must provide a sentence as the arguments. The first word of this sentence is to be treated as a key word, …

Software Development c
Member Avatar for ithelp
0
109
Member Avatar for AutoPython

I can't find a compiler to compile version 3 Python scripts to .exe. All the compilers I see are all for Python 2.

Software Development python
Member Avatar for vegaseat
0
189
Member Avatar for whiteyoh

Hi all, I have a constructor with 2 numbers both set as longs however in my driver class, it is showing as an error, even after casting the already longs to a long again. This is constructor [code]public Personal(String forename, String surname, long dob, String add1, String add2, String county, …

Software Development java
Member Avatar for whiteyoh
0
105
Member Avatar for tomtetlaw

I tried to make a leet speak converter, but it outputs characters that I don't even tell it to.. This is what I mean: (Test run) Enter something to convert to L337 5P34K: Hi, how are you? L337 5P34K equivilent: hi,@H0w 4R3 Y0u? I don't know why it's got the …

Software Development python
Member Avatar for willygstyle
0
534
Member Avatar for calcucool

i need to write a method that in my program student object for the student class that validates it's own data. background on student class: it's a program that ask for a name of a student and 3 test scores and print the highest , the lowest and the average. …

Software Development java
Member Avatar for javaAddict
0
106

The End.