43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for dnmoore

I need a little help converting my GUI panel into JButtons instead of text for some parts [code] //Davina Moore //TempConverterPanel //November 6, 2008 import java.awt.*; import java.awt.event.*; import javax.swing.*; public class TempConverterPanel extends JPanel { private JLabel input, results_f, results_c; private JButton output; private JTextField fahrenheit, celsius; public TempConverterPanel() …

Software Development gui java java-swing
Member Avatar for dnmoore
0
118
Member Avatar for Weebl4551

Hi. I just joined this forum because I really need some quick advice on a Blackjack game I'm working on. It's my first major endeavor, and I can't quite get it to work right. Here's the code. #blackjack.py from cards import * from graphics import * import random DIM = …

Software Development open-source python
Member Avatar for jlm699
0
186
Member Avatar for atman

Hey Guys., Im super desparate have 1 day to hand this in. Have to use loops only. quote: The use of any of the following C statements or functions is not permitted under any circumstances. break; continue; exit(); abort(); No global variables. When the program starts it will prompt the …

Software Development c
Member Avatar for Denniz
0
162
Member Avatar for litchi

Hello, I have just started using Delphi and ran into a small problem. It's a simple app, as I am only practicing. It has a Button and 2 Edit boxes. I want the user to enter some text to be saved (in a .txt file) in Edit1 and choose a …

Software Development delphi pascal
Member Avatar for litchi
0
185
Member Avatar for saurabhnovice

[code=csharp] using System; /// <summary> /// Summary description for Class1 /// </summary> interface I { void dis(); } class B:I { public virtual void dis() { Console.WriteLine("dis() in Base"); } } class D : B { public override void dis() { Console.WriteLine("dis() in Derived"); } } class c2 { public …

Software Development
Member Avatar for LizR
0
121
Member Avatar for kiddo39

Hi, I have 2 things I'd like help with: 1) is there a way to find the exact center of my screen? 2) a loop Here's what I need the loop for: [code] image = ImageGrab.grab((0,0,800,800)) box = (100,100,400,400) im = image.crop(box) im1 = im.save("screen.jpg") # at this point I …

Software Development python
Member Avatar for kiddo39
0
112
Member Avatar for clutchkiller

after you switch (variable) case 1: etc.... if the switch defaults, how do you return to repeat the switch case? do you just do a simple cin>>var and it will reset or you have to loop it? Sorry if question isnt clear

Software Development c++
Member Avatar for clutchkiller
0
83
Member Avatar for ambarisha.kn

Consider d_type=POINT_LONG in the following program. and data.Long=0xA; In the following program i am getting correct output in constDataArea[0],constDataArea[1],constDataArea[2], constDataArea[3] which is oxA, 0x0, 0x0, 0x0. But not able to write the same into ambi.dat file. Some junk value is inserting in the front. and writing 5 bytes instead of …

Software Development c file-system
Member Avatar for ambarisha.kn
0
164
Member Avatar for hinduengg

Please help me find the sine series . My program is: [code] #include<stdio.h> #include<conio.h> #include<math.h> float facto(int a); int main() { int n,g,k,y; y=1; float s=0.0; float f=0.0; float l =0.0; float x; int t=0; printf(" limit is \n"); scanf("%d",&n); printf(" no. is \n"); scanf("%d",&x); x=3.14*(x/180.0); while(y<(n+1)) { g=y; if(g%2==0) …

Software Development c
Member Avatar for hinduengg
0
143
Member Avatar for axn

>>> line = '2008-10-27 12:05:54........... >>> time = line.split(' ')[1].split('.')[0] >>> print time 12:05:54 i would like to add 45 or so minutes to the time i am parsing from a line i have tried print time.timedelta(minutes=45) Traceback (most recent call last): File "<pyshell#44>", line 1, in <module> print time.timedelta(minutes=45) …

Software Development python
Member Avatar for axn
0
106
Member Avatar for chris5126

Hi guys, i have a ksh script that gets some info on processes and puts it into a temp file: [code] /usr/ucb/ps -auxxx|awk '{print $3," "$4," "$2," "$1," "$11}'|grep -v 0.0|sed 1d > $TMP [/code] It gets the following data [code] 0.8 6.2158230724046144 9918 oracle 0.3 6.2158200964043168 15298 oracle 0.2 …

Software Development oracle shell-scripting
Member Avatar for JeoSaurus
0
184
Member Avatar for tyserman5674

Hi All, I am sure having problems with reading from a sequential file. I created a .txt file and placed it several places within the vb.net file folder for the program that I am writing. The problem is that when I try and run the program I get the message …

Software Development file-system vb.net
Member Avatar for tyserman5674
0
161
Member Avatar for localp

i need to write a c++ function that could read in the values of a text file, but in the text file we need to eliminate duplicate values; for example we may have values like ;;;; this is a text file, and it contains the above students, there first name …

Software Development c++ file-system
Member Avatar for iamthwee
0
145
Member Avatar for saurabhnovice

I have just started learning C#. Please help me out...

Software Development
Member Avatar for LizR
0
129
Member Avatar for q8_dreamy

Hiiiiiiiiiiiiiiiii :) I want to create crystal report filtered with specific values Iam creating the report with wizard... if i filter just one filed then every thing goes fine, put if i filter more than one filed i got the following error when run: Error in File C:\Users\kisruser\AppData\Local\Temp\test {8D5AD4DD-CCD0-451E-BF1F-7E3E31F22880}.rpt: Error …

Software Development vb.net
Member Avatar for q8_dreamy
0
116
Member Avatar for schmidty169

This is for a school project: write a GUI application that will generate multiple 3 digit numbers and count how many times each 3 digit number appears. To make the program more useful, provide the following: A label that displays the 10 most common 3 digit numbers and the number …

Software Development gui
Member Avatar for LizR
0
109
Member Avatar for grisha83

Hello, I am working on small program that reads in a string consisting of minimum two words and a space between them. My dilemma is that i keep getting an error message. Can anyone twlm me what it is that i a ding wrong? here is my code: [CODE] #include …

Software Development c++
Member Avatar for vmanes
0
96
Member Avatar for dinilkarun

Hi All, I am using the following code to populate a tree control. The dictionary currently I am using is ‘dictFolders’ and its structure is defined below. lstFolders=[] lstFolders = ["A","B","C","D"] dictFolders={} dictFolders = {"A":["Obj1","Obj2","Obj3","Obj4","Obj5","Obj6","Obj7","Obj8","Obj9"], "B":["Doc1","Doc2","Doc3","Doc4","Doc5","Doc6","Doc7","Doc8","Doc9"], "C":["Link1","Link2","Link3","Link4","Link5","Link6"], "D":["Obj1","Obj2","Obj3","Obj4","Obj5","Obj6","Obj7"]} # Setting the root node text to the Action ID entered self.treeAction.SetItemText(self.treeAction.GetRootItem(),”Parent …

Software Development python
Member Avatar for dinilkarun
0
105
Member Avatar for atman

Hey Guys! I have a weired one here, it must be a post-test loop, and here is how result has to look like: Enter the Section Code: 0 Invalid value entered. Must be 1 to 4, please re-enter: 1 Enter the Student's ID: 456789 Enter mark#1: 10 Enter mark#2: -20 …

Software Development c
Member Avatar for bionicseraph
0
151
Member Avatar for MJFiggs

I'm trying to make this program work like a game of BlackJack. However, the program will not listen to me when I try to end the loop. does anyone have any sugestions on how to fix this program? [code] #include <iostream> #include <ctime> using namespace std; double card = 0; …

Software Development c c# c++
Member Avatar for MJFiggs
0
487
Member Avatar for serkan sendur

what are available database management systems to use with c applications?

Software Development c
Member Avatar for ArkM
0
72
Member Avatar for espSquall

My procedure works perfectly when there is another instance of my program running but otherwise it gets stuck in a constant loop. I've tryed all sorts and came here as a last resort. There's not really much else I can say so here's my code: [code] {*Finds and ends previous …

Software Development pascal
Member Avatar for espSquall
0
104
Member Avatar for xenocide001

hi there i'm new here i hope you can help me through this homework i've read like 14 pages of topics about seekg and fstream.. and well.. they didn't solve my problem. my homework it's about creating a text file from "b to z" without the vocals, then reopen the …

Software Development c++ file-system ios
Member Avatar for vmanes
0
131
Member Avatar for AKJo

An application from Delphi 1 (16 bit) has been transfered into Delphi 2007. The Delphi 1 program has created files with the following type definition: [code=delphi] type codePost = record code : integer; {code 3 figures} value : longint; {value 6 figures} data : string; {Data max 30 chrs} date …

Software Development delphi pascal
Member Avatar for AKJo
0
155
Member Avatar for AKJo

Hi, Sometimes I get some red lines in the D2007 editor, under parts of the source code. See attached image. What do they mean and what action should I take?

Software Development pascal
Member Avatar for AKJo
0
97
Member Avatar for newbie5150

hi everyone, im having problems with my loop in my assignment im working on. im not tryin to get the code from you guys. but would like some pointers on what im doing wrong. im tryin to figure out why my "else" code wont work? i've tried to look for …

Software Development c++
Member Avatar for mrboolf
0
144
Member Avatar for poilkjmnb

Hello Friends, i want the value of 17732 shr 8 Thanks,

Software Development pascal
Member Avatar for LizR
0
110
Member Avatar for bryan110

Hi Everyone, I am looking for Secure Ftp ActiveX component in Vb6 to use it in a command line program. Please , if anybody have an idea how to get it free or how to create it. Thanks, Bryan.

Software Development visual-basic
Member Avatar for khalidmehmoodaw
0
135
Member Avatar for aclogics

I would like to create an application that would, after manipulating a text file, log on to a private FTP site and PUT that text file onto the server, and then logout. I have the code to manipulate my text file and make it ready for sending and I have …

Software Development visual-basic
Member Avatar for khalidmehmoodaw
0
114
Member Avatar for Easter Bunny

ok, i have to get two mysql tables to work as one. one is called sale_mast_data and the other is called sale_mast_data_h. they both have the same columns. the only difference is that the one with the "_h" has the history of previous shift sales. the two tables both contain …

Software Development java
Member Avatar for Easter Bunny
0
110
Member Avatar for afg_91320

int numberArray [9][11]; write a statement that assigns 145 to the first colum of the first row of this array. write a statement that assigns 18 to the last col of the last row of this array this is what i have [code] numberArrray [1][1] = 148; numberArray [9][11] = …

Software Development c++
Member Avatar for skatamatic
0
105
Member Avatar for blackrobe

Hi all, I'm required to implement a method for a "[B]TernarySearchTree[/B]" object/class. Basically, a Ternary search tree is just like a binary tree except it has three children instead of two. Ternary Search Tree could only manipulate it's root. Now the method should create and return an alphabetically sorted list …

Software Development python
Member Avatar for danny'sweb
0
111
Member Avatar for kiwihaha

i wanna put all my variable initialization at a header file.. but after i put in a header file name, "variable.h" i #include "variable.h" in main. but it still cant reconize the variable. what can i do? + extern infront all the variable in header file?

Software Development c++
Member Avatar for Ancient Dragon
0
271
Member Avatar for DeadJustice

I pretty much got my assignment working except for one part, I need to reverse the output if the user enters "-r" in the command line. Can anyone help me with this? EDIT: By reverse I mean list the last child first down to the original process. [code] int j …

Software Development c
Member Avatar for DeadJustice
0
89
Member Avatar for inumbris

The following code, excerpted from a much larger program, triggers a C++ compile time error as shown in the leading comments. [Re-]declaring variable 'w' to be a 'const char *' will fix the problem, but I don't know exactly why. I would greatly appreciate it if somebody could elucidate the …

Software Development c++
Member Avatar for Lerner
0
142
Member Avatar for kbjr14

hi, everyone, i am working on writing a program that can calculate the extrema of a polynomial function. i've got everything i need except the last step of the process. i need to be able to solve a polynomial equation for f(x)=0. please help.

Software Development python
Member Avatar for jlm699
0
115
Member Avatar for DeadJustice

I seem to be able to load the files in my program. Then I can loop through the lines one time, but if I try a second loop to load the strings into an array that one won't work. Here's my code. I thank you for any help in advance. …

Software Development file-system java
Member Avatar for DeadJustice
0
106
Member Avatar for kotkata

This is my relatively simple code. Its just part of a memory matching game. I've looked but I cannot figure out why it won't switch the values in each of the array indexes. I would appreciate anyone helping me out here with this. ** Turns out the problem is that …

Software Development c++
Member Avatar for Lerner
0
97
Member Avatar for soultrav

I am building an xml parser in java which will handle a catalog with some books (that have price and usefulness) and I want to implement an [B]optimum[/B] algorithm that selects the books from the catalog which have the maximum usefulness while staying within the budget. Example: [code] <catalog cash=”100”> …

Software Development algorithm java xml
Member Avatar for dickersonka
0
102
Member Avatar for DemonGal711

Okay, I figured out the larger problem that I've been having with my program, now all I need is it to get out of the loop and finish the program. Well, it won't break out for some reason. Anyone see why? [code]row = col = 4; z = 0; do …

Software Development c++
Member Avatar for DemonGal711
0
123
Member Avatar for acoxia

Ended up solving it don't know how delete post however [code] include <iostream> using namespace std; /* * linkedlist.h * linkedlist */ struct node { int data; node * next; }; class linkedlist { node * hd; public: linkedlist(){ hd = NULL; } void add_to_end(int data) { //find end of …

Software Development c++
0
85
Member Avatar for M00nDancer

Well, I bumped into an interesting C++ problem last night while I was aimlessly surfing the Internet, and, of course, it caught my attention. It said something like this: "From a file it's read a text that contains a phrase, on a line. The program rearranges the letters in each …

Software Development c++
Member Avatar for M00nDancer
0
148
Member Avatar for ChroNoS

is it possible to insert a character say " " (space) after every 2 characters in a string? using this doesnt seem to work : [CODE] Dim s As String s = "010001000100" s = Mid(s, 1, 2) & " " & Mid(s, 4) MsgBox s [/CODE] it adds space …

Software Development visual-basic
Member Avatar for ChroNoS
0
119
Member Avatar for dinilkarun

Hi all, How can I split a Progress Bar(wx guage) into two parts?. I want the first part to function normally and in the second part I want to display the percentage. I have attached a snap shot of what I am trying to achieve. Is this possible? Any help …

Software Development python
Member Avatar for dinilkarun
0
248
Member Avatar for lllllIllIlllI

Hi Guys, I was wondering if there was any way in which you can change the opacity of a window in wxPython. I would like to create a window that is mostly see through but so far i have found no way to do that. My program is a simple …

Software Development python
Member Avatar for lllllIllIlllI
0
94
Member Avatar for DemonGal711

My assignment is to take in values that will create a maze, and then let the user traverse the maze by use of a stack to store values. I thought I had it down to it working, but now it isn't doing what it should and then it stops after …

Software Development c++
Member Avatar for DemonGal711
0
101
Member Avatar for LincolnGurl

Hi All, Having already developed fixed-type binary tree classes in the past, I am reasonably familiar with the process of serialization and the graph topology of tree structures in general. However, I am currently attempting to implement a generalized C++ tree template and have absolutely no idea as to which …

Software Development c++
Member Avatar for LincolnGurl
0
121
Member Avatar for phalaris_trip

I'm new to java (like a few weeks new), but coming from a C++ background.. This is going to sound retarded, but... can someone explain to me how I can make a BigInteger object to make it have the same value as another BigInteger object? That is they have to …

Software Development java
Member Avatar for destin
0
1K
Member Avatar for smile4evr

hw to add multiple conditions in a single update statement?? my project goes code like this... [code] If release.Enabled = True And nonosc.Enabled = True Then Dim rst12 As New Recordset Dim sql12 As String sql12 = "update Passport_Release_Information_N set Ename2='" & taker.Text & "' ,Any_ID1='" & takerid.Text & "' …

Software Development visual-basic
Member Avatar for AUGXIS
0
175
Member Avatar for BestJewSinceJC

I saw someone, I think it was s.o.s, recommend the use of BigDecimal to someone else. So out of curiosity, and having heard of BigDecimal before, I looked at the Javadoc to see how large the values it could hold were and how it held them. From the doc: "Immutable, …

Software Development java
Member Avatar for jbennet
0
165

The End.