43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for nickliutw

I'm practice to make a program that calculate total value of five products. I want the user can keep input the quantities of one of the five product without return the main menu. So I create a while loop to solve the problems. But the problem I have now, how …

Software Development java
Member Avatar for nickliutw
0
159
Member Avatar for carlitosway17

Hi I am supposed to modify class employee to implement interface Payable(another class) and declare method getPaymentAmount to invoke method earnings. Method getPaymentAmount would then be inherited by the subclasses in the Employee hierarchy. When getPaymentAmount is called for a particular subclass object, it polymorphically invokes the appropriate earnings method …

Software Development java
Member Avatar for carlitosway17
0
201
Member Avatar for thedalek

Everything about this code works fine, except the while loop won't end, even when the strings are perfectly matched. Help, please? [CODE]import java.util.Scanner; public class SecretPhrase { public static void main(String[] args) { System.out.println("Congratulations! You won! Thanks for playing!"); } } [/CODE]

Software Development java
Member Avatar for thedalek
0
159
Member Avatar for semccarthy

Hi, I'm currently designing a software application for teaching, it will have a large backend database, short animation videos(basic 2d of people talkin). I'm just looking for some advice in what is the best language to code this type of project in. I have done several projects in both java …

Software Development c++ java
Member Avatar for semccarthy
0
760
Member Avatar for sirlink99

I am having some trouble with the coding for the api. games4j.com has all of the codes and files, but when I insert the api codes into my doe I get an error. Please help me. I am getting the error with these two lines [CODE]loggedIn = Highscore.isLoggedIn(applet);[/CODE] and [CODE]Highscore.save(applet, …

Software Development api java
Member Avatar for sirlink99
0
191
Member Avatar for Mr.BunyRabit

Hey there, i would like to find out how many records have been modified by my quarry. I tried a few things, but none would work. this is my code [CODE] SqlConnection conn = new SqlConnection(); conn.ConnectionString = "server=.\\SQL2008;database=Studentsdb1;Persist Security Info=True;user id=sa;password=1945"; SqlCommand cmd = new SqlCommand(); cmd.CommandType = CommandType.Text; …

Software Development
Member Avatar for Mr.BunyRabit
0
108
Member Avatar for jamesrobb

Hi, When I try and populate a listview with data from an array with 3 entries I find that the data goes into the wrong columns. The array consists of the following. ?ID {Length=3} (0): "T123456789" (1): "001" (2): "Smith" My list view has columns : ID, Location, Name. My …

Software Development listview vb.net
Member Avatar for jamesrobb
0
149
Member Avatar for gedas

hey, i have a for loop that is infinite, it runs till i terminate the program. inside of the loop there is a value(lets call it X) that keeps on changing all the time till i terminate the program. when the program is executed i want to store the first …

Software Development java
Member Avatar for gedas
0
100
Member Avatar for geoamins2

I have a database designed and implemented using ms sql server 2005. initially, the user has entered the pictures with a very big size because there was not restriction. now when the user is opening the crystal report so it takes alot of time and some time memory full problem …

Software Development image sql vb.net
Member Avatar for CodeWord
0
4K
Member Avatar for kmose

[CODE] namespace CallbackTest { public class Test: System.Web.UI.WebControls.WebParts.WebPart, ICallbackEventHandler { private string callbackData; private Label callbackLabel; protected override void Render(System.Web.UI.HtmlTextWriter writer) { this.callbackLabel.RenderControl(writer); } protected override void OnLoad(EventArgs e) { base.OnLoad(e); callbackLabel = new Label(); callbackLabel.Text = "no callback occurred yet"; callbackLabel.Attributes.Add("onmouseover", "alert('mouseover'); serverRequest('" + callbackLabel.ClientID + "', '');"); callbackLabel.ID …

Software Development asp asp.net
Member Avatar for kmose
0
132
Member Avatar for TimBob12

Hi there, I am fairly new to C++ and wanted to have a go at coding my own function with parameters. However some of the parameters are arrays and I get strange errors occur. I will comment my code with a couple of other questions as well. I am writing …

Software Development c++
Member Avatar for TimBob12
0
202
Member Avatar for Farhad.idrees

private void btnCencelProducts_Click(object sender, EventArgs e) { for (int i = 0; i < lbFinalList.Items.Count; i++) { if (lbFinalList.GetSelected(i)) { lbFinalList.Items.Remove(lbFinalList.Items[i]); } } } thats code of my button i have list box where i want to removie multible item.. when i chose more than one item so only 2 …

Software Development
Member Avatar for ddanbe
0
201
Member Avatar for george61

This is a program for getting the sum of prime numbers of given range. The problem is that it would take hours if the limit is about 1000000. I've read about the sieve of Eratosten but having difficulties with implementing it. Could someone help to make this piece of code …

Software Development c
Member Avatar for WaltP
0
332
Member Avatar for Prosper92

So I've been giving a number of assignments to do but I'm stuck on one in particular now. I've to create a 2D array ([5][2]) and then say how many times ou of the 5 rows that the first row was bigger than the second. I imagined I would need …

Software Development java
Member Avatar for Taywin
0
1K
Member Avatar for tukky

I have a project which is 98% complete. Its basically a Shop(till) interface. I have a form that has tabs the first being the main till, second shows a listview with everything in stock and the quantity of items in stock. Im stuck on one part of the program where …

Software Development listview user-interface vb.net
Member Avatar for codeorder
0
414
Member Avatar for neosonic

Hi I'm currently using vb6 and ms access for my database. So far the application runs good, but the rumor (or fact) that access are not powerful enough with multiple access and also it has low data limitation (around 2 Gb), it scares me. I don't want my clients to …

Software Development microsoft-access oracle visual-basic
Member Avatar for reygcalantaol
0
836
Member Avatar for sj5536

hi, thankx for solving all my previous thread right now my problem is that i have to get width and height of pdf file

Software Development java pdf
Member Avatar for peter_budo
0
227
Member Avatar for Progr4mmer

how can i get java to enter/type text into a textbox for me once i select it(click inside it) so the cursor is there. Also how would i get it to send the enter key or other "non-text" keys.

Software Development java
Member Avatar for mKorbel
0
177
Member Avatar for livingsword

hi, im a beginner. i hav an assignment on Pascal's triangle. i saw some post over the topic but couldnt get it to work with my code. heres what i have done so far.... [code=c] #include<stdio.h> #include<conio.h> void main() { int a[10][10]; int i,j,c,n; clrscr(); printf("Enter how many lines do …

Software Development c first-post pascal
Member Avatar for vipinkumar512
0
746
Member Avatar for Ole Raptor

Hello, I am having an issue with my legacy app saving files to Windows 7 machines. My first thought was that I would just run the program as administrator but that helped none. I have attempted saving this image to the temp folder and to appdata but neither seems to …

Software Development visual-basic
Member Avatar for AndreRet
0
160
Member Avatar for valter

Hi, I am trying to combine two arrays to a multidim one. I have two int arrays stat[] and indexes[]. So the first looks like this 34,56,78,etc holding hundreds of numbers. The second looks like this 0,1,2,3,4,5 etc. I want to end with a multidim array like this 34,0 56,1 …

Software Development
Member Avatar for Momerath
0
2K
Member Avatar for honey61399

I am new in vb.net please help. [CODE]Public Class Form1 Private Sub RichTextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles RichTextBox1.KeyPress RichTextBox1.Text = " Not available " RichTextBox1.Select(RichTextBox1.Text.Length, 0) End Sub End Class[/CODE] I want this code to pass not available like" Not available Not available Not available " …

Software Development vb.net
Member Avatar for Pgmer
0
192
Member Avatar for rjbrjb777

hello, what book will you suggest me to read if i want to learn gui using c language.?

Software Development c gui
Member Avatar for rjbrjb777
0
96
Member Avatar for dspjm

the same as tiltle. is that exit() just end the function and abort() end the program?

Software Development c++
Member Avatar for dspjm
0
1K
Member Avatar for leiger

Hey everyone, Usually when I create a Java application I will use the built-in Preferences class to save user preferences. I believe this saves user information to the registry on Windows, and to other locations on Linux / Mac OS X. When I need to store a serialised object, I'm …

Software Development os-x session xml
Member Avatar for leiger
0
187
Member Avatar for WildBamaBoy

Just as the title says, how can I detect double clicking in a ListView? I'm trying to emulate browsing through a directory with windows explorer.

Software Development listview
Member Avatar for WildBamaBoy
0
109
Member Avatar for ntrncx

i write a program that goes as follows a part of it is: [CODE]#include <iostream> using namespace std; const int size=8; const int plus[]={1,2,3,4,5,6,7}; const int minus[]={-1,-2,-3,-4,-5,-6,-7}; int vertical(int[][size],int&,int&); int horizontal(int[][size],int&,int&); int diagonal(); int main() { int board[size][size]={}; int accesibilityboard[size][size]={}; int currentrow=3; int currentcolumn=4; int counter=0; } int diagonal() { …

Software Development c++
Member Avatar for ntrncx
0
109
Member Avatar for 24x24

Ok, I have three main tasks. One: I need to create a 2 dimensional array that is 8x8 and consists of randomly generated numbers that range from 0-3. I'm assuming the Math.random will be used inside of a for loop with a limit set for length(8) and range(0-3) somehow? Two: …

Software Development java matrix-multiplication
Member Avatar for 24x24
0
257
Member Avatar for Karkalash

Hiya I'm relatively new to data structures and using push_back. I'm trying to build a small dictionary program that assumes that there is no words (and definitions) in the dictionary when you first launch it. What I then need to do is ask for a word then definition to start …

Software Development c++
Member Avatar for VernonDozier
0
222
Member Avatar for Incubator

How can i read some number from a text file and then go back to read some other information? All i know, is read it from the beginning to the end, but even when i check something for ex if(fgetc(in)!=...) goes forward one character, and all this messes up my …

Software Development c
Member Avatar for WaltP
0
151
Member Avatar for blahbla

hi i have a lab to do and i'm stuck on how to start a method i have 10 coins and i want to write a method that tells me the fewest amount of coins needed to add up to 100 - 1 dollar coins are randomly generated - values …

Software Development java
Member Avatar for blahbla
0
431
Member Avatar for Usmaan

Hi guys, Sorry the title is vague. Couldn't come up with one. Ok so I have a int variable which is, let's say, of the value 5. Now I want to create a string which contains underscores, so: "_____" the amount of underscores is the same value of the integer. …

Software Development
Member Avatar for Momerath
0
119
Member Avatar for toolmanx

I was trying to send mouse positions to my status bar in a larger program. I could not get them to write more than one position to the status bar, then it stops changing. To test why, I wrote a small window using one "Do Paint" function first. I still …

Software Development c++
Member Avatar for zeeshanciit
0
541
Member Avatar for fsl4faisal

i want to implement multicast using python can anyone tell me how can i get information on socket programming in python?

Software Development python socket-programming
Member Avatar for woooee
0
166
Member Avatar for bibiki

Hello people. I have the following class. [CODE] public class Model{ private Kutia[][] c; public Model(Kutia[][] x){ c = touch(x); } public void touch(Kutia[][] k){ for(int i = 0; i < 8; i++){ for(int j = 0; j < 8; j++){ if(k[i][j].occupied()){ touchHorizontal(k, i, j); touchVertical(k, i, j); } } …

Software Development java
Member Avatar for bibiki
0
200
Member Avatar for zachattack05

If I start a new thread, and that thread executes a method that is contained in a referenced dll, how do they signal each other? Would this be considered a cross-process EventWaitHandle? It doesn't seem like it would be considering that the thread is started in the same process. I …

Software Development
Member Avatar for zachattack05
0
139
Member Avatar for stan2000

I'm trying to write a program which allows a person to enter the number of days they have worked. Their hypothetical salary is 0.01$ per day and doubles everyday (0.02$ on the 2nd and 0.04$ on the 3rd day etc...). For each day, the day number, pay for the day, …

Software Development c c# c++
Member Avatar for Arbus
0
154
Member Avatar for bettybarnes

my deletecommand delete all my rows whenever i delete a row..but when i view it again the other rows still there and the i deleted is actually deleted.. here's my code for da.deletecommand [CODE] da.DeleteCommand = New SqlCommand("Delete from Admission_Record WHERE Patient_ID = @Patient_ID", cs) da.DeleteCommand.Parameters.Add("@Patient_ID", SqlDbType.VarChar).Value = ds.Tables(0).Rows(bs.Position)(0) cs.Open() …

Software Development vb.net
Member Avatar for bettybarnes
0
113
Member Avatar for joeywheels

I'm having difficulty figuring out how to append two user inputs into a list as a tuple. I would also like to call the list and enumerate the list (e.g., 0. dog_name:dog_breed). I'm not sure how to call display or if it is even written properly. Here's what I have …

Software Development python
Member Avatar for woooee
0
153
Member Avatar for bettybarnes

hi everyone i got this error Cannot insert explicit value for identity column in table 'Patients' when IDENTITY_INSERT is set to OFF. i set identity to Yes in sql server 2005..whenever i run my code i get this error message here's part of my code [CODE]Private Function GenerateCaseNumber() As String …

Software Development vb.net
0
75
Member Avatar for james6754

Hi. Implicit: the compiler does the work for you Explicit: you have to specify what you would like the compiler to do. are the above statements true? I have just read on MSDN that an abstract method is implicity virtual. One is not implemented and one is, so is this …

Software Development
Member Avatar for ddanbe
0
137
Member Avatar for hughesadam_87

I have a series of data files with large headers. Here is an example: [COLOR="red"]SpectraSuite Data File ++++++++++++++++++++++++++++++++++++ Date: Fri Feb 25 13:43:55 EST 2011 User: group Dark Spectrum Present: No Reference Spectrum Present: No Number of Sampled Component Spectra: 1 Spectrometers: USB2E7196 Integration Time (usec): 11000 (USB2E7196) Spectra Averaged: …

Software Development python
Member Avatar for hughesadam_87
0
151
Member Avatar for jacksantho

Hi, Please see the below one : [CODE]#!c:/perl/bin/perl use CGI qw(:all); print "Content-type:text/html\n\n"; print <<EndOfHTML; <html><head><title>Print Environment</title></head> <body> <FORM action="sample.cgi" method="POST"> First Name: <input type="text" name="first_name"> <br> Last Name: <input type="text" name="last_name"> <input type="submit" value="Submit"> </FORM></body> EndOfHTML[/CODE] From this, i don't know to proceed. There are two text box with …

Software Development display html-css perl
Member Avatar for d5e5
0
2K
Member Avatar for Morten Brendefu

A "normal" Delphi snippet: [CODE]Procedure help_me1(Sender: TObject); BEGIN {100 lines of code} END; Procedure help_me2(Sender: TObject); BEGIN {100 lines of copy and paste code} END;[/CODE] [COLOR="Green"]How can I make this so that I end up with ONE procedure with 100 lines of code?[/COLOR] [CODE]Procedure much_reuseable_code(choice:BYTE); BEGIN {100 lines of code} …

Software Development delphi pascal
Member Avatar for Morten Brendefu
0
204
Member Avatar for ram619

Here the val should print the max number but its printing some address. When i tried to print while in loop, it printed the largest number but in the next line it again printed the address. please tell me whats wrong. Thanks [code=c]#include<stdio.h> #include<conio.h> int main() { int arr[5][5]={ 2,4,8,11,15, …

Software Development c
Member Avatar for ram619
0
126
Member Avatar for tcl76

hi, i found a module called xlwt ([url]http://www.python-excel.org/[/url]) that can write to Excel. i want the code to read from a file (robert.txt) and then write to excel in a column. however, it seems that the output from this code is that it only writes to one cell in the …

Software Development microsoft-office python
Member Avatar for tcl76
0
2K
Member Avatar for Progr4mmer

i have a game in eclipse that when i used to run would open up and work but i made a couple changes to it and now it just runs for a couple seconds(doesnt open up any windows) and then it says terminated down by the console in eclipse?

Software Development gaming ide java
Member Avatar for Progr4mmer
0
133
Member Avatar for razree

Hello I'm new to this forum and quite new to visual basic. I started editing an existing code (basicaly to learn vb) without any real previou experience. Well let's get to the point; I have a form that gathers data from db ordering by user ID (on click count). I …

Software Development vb.net visual-basic
Member Avatar for razree
0
322
Member Avatar for cross258

i posted my program below. i aim making a decrypting file for rot13. or rotation 13 so im using the memory address to change the capital and small 'A' to 'M' into 'N' to 'Z' and vice versa by using their memory location. but i don't know how to put …

Software Development c++
Member Avatar for cross258
0
464
Member Avatar for lkrvk

guys i have a serious problem my cmd is not under my control as a virus has taken the power. now i want to format my entire drives completely with some .bat file. i am unable to do it with windows disk coz the virus is very talented to come …

Member Avatar for lkrvk
0
245

The End.