132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for andersonelnino

1)DEFINITION OF DATA REQUIREMENTS Produce an itemised consigment note for each customer including -dimension,weight and price per parcel. -total weight and price consigment -number of parcels RESIDENT DATA -up to 2kg-£7.50 -up to 4kg-£8.00 -up to 10kg-£8.55 -up to 12kg-£9.10 -up to 14kg-£9.70 -up to 16kg-£10.35 -for each extra 2kg,up …

Software Development java java-swing user-interface
Member Avatar for NormR1
0
215
Member Avatar for sathya88

[code] public class exception4{ public static void method(){ try{ exception4.method2(); throw new Exception("method throw"); } catch(Exception e) { System.out.println("method Exception caught"+ e); //throw e; } } public static void method2(){ try{ throw new Exception("method2 throw"); } catch(Exception e) { System.out.println("method2 Exception caught"+ e); e.printStackTrace(); [COLOR="Red"][B]//throw e; [/B][/COLOR] [COLOR="Green"][U]if include this …

Software Development java
Member Avatar for JeffGrigg
0
259
Member Avatar for J-Dub

I need to know how I can set up a action listener for an array of buttons. I am trying to make a tic tac toe game. I am new to programming. I have seen someone on here ask a similar question but I could not grasp what they where …

Software Development gui java java-swing
Member Avatar for mKorbel
0
4K
Member Avatar for akasekaihime

I have created my own payslip but then when I compiled it, they said that there are no more errors but I cannot view my output on the applet viewer............ is there something wrong with my code or is the viewer at fault here?? here is my code............ [CODE]import javax.swing.*; …

Software Development java java-swing
Member Avatar for akasekaihime
0
321
Member Avatar for Prankmore

[CODE]# include<stdio.h> # include<string.h> int main(int argc, char **argv){ char phone[16]; int num = 0; int count = 0; printf("Enter a phone number: "); count = scanf ( "%s%n", phone, num ); memmove(phone + 3, phone + 2, 10); memset(phone + 3, '-', 1); memmove(phone + 7, phone + 6, …

Software Development c motherboards-cpu-ram
Member Avatar for Prankmore
0
188
Member Avatar for coroll

Hi!, I get InvalidCastException. It says "Unable to cast object of type 'HD.MainMenu' to type 'HD.NewBookEntry'" and points to this statment "mpg=(NewBookEntry)fm" Plz help me to solve this. My code is: [CODE] FormCollection fms=Application.OpenForms; foreach(Form fm in fms) { mpg=(NewBookEntry)fm; } mpg.Dispose(); [/CODE]

Software Development
Member Avatar for coroll
0
113
Member Avatar for dennysimon

hi all in form1 I place 3 button and 1 datagridview ,btn refresh,btnload , btnnew and Datagridview dgv1 1. I change the value of a cells in datagridview (right after Form1 is loaded),and then click btnrefresh 2. I click btnnew to clear the dgv1 3. I click btnload to re …

Software Development dataset
Member Avatar for dennysimon
0
266
Member Avatar for dennysimon

hello all how to express parameter with decimal (which has 2 scale) //---------------------------- mysqlda.UpdateCommand.Parameters.Add("@Name", MySqlDbType.VarChar,40, "Name"); mysqlda.UpdateCommand.Parameters.Add("@Kode", MySqlDbType.VarChar, 8, "Kode"); mysqlda.UpdateCommand.Parameters.Add("@Price", MySqlDbType.Decimal ,10,2, "Price"); //---------------------------- line 3 give me error thanks denny

Software Development
Member Avatar for dennysimon
0
2K
Member Avatar for dre-logics

I want any amount ending in 98 cents. Three examples: 5 euros x 1.25 euros then the result is [COLOR="red"]6.25[/COLOR] euros, the program change this to [COLOR="Green"]6.95 [/COLOR] 4 euros + 2 euros then the result is [COLOR="red"]6.00[/COLOR] euros, the program change this to [COLOR="green"]6.95[/COLOR] User type to [COLOR="red"]6.70[/COLOR]then the …

Software Development vb.net
Member Avatar for Mitja Bonca
0
122
Member Avatar for shivya jain

[CODE] pvt sub timer1_tick(.....................................................) dim n as login form n.show() timer1.enable=false end sub [/CODE] Is there need to set keyword before login form? i m using this code but login form is not showing at runtime. please help me to run this code

Software Development vb.net
Member Avatar for shivya jain
0
88
Member Avatar for VNexus

Hi Everyone, Most recently, I've been working on a small project to sort through multiple text files which have all the same strings. Basically, I am looking to sort through and create a text delimited file for future use. The below script is what I have come up with so …

Software Development vb.net
Member Avatar for VNexus
0
181
Member Avatar for DarkPheonix

[B]Could u tell me why the following problem is coming on running the program where im getting the out twice each time wen i shd get it only once , wen im entering a input im getting the menu twice[/B] [CODE]import java.io.*; class Television{ private String MANUFACTURER; private int SCREEN_SIZE; …

Software Development java
Member Avatar for FireBlah
0
323
Member Avatar for Domtheripper

I am new to C# and have encountered a problem with the following if statement... [CODE]measurement = GetRandomInt(0, 2); measurement2 = GetRandomInt(0, 2); if ((measurement == 1) || (measurement2 == 1)) q3correct = 1; else q3correct = 0;[/CODE] The statement works around 80% of the time and i have checked …

Software Development
Member Avatar for Domtheripper
0
125
Member Avatar for mrcpp

I want to create my own widget toolkit, and I know it's possible without external tools(QT was written in C++, and so was wxWidgets). But I don't know how to do it, and I couldn't find anything in Google. So how exactly do I create GUIs in C++ that way? …

Software Development c++ gui qt
Member Avatar for Ancient Dragon
0
418
Member Avatar for techie929

Hi, I am trying to print the values in enum. Here is the code: [CODE] #include<stdio.h> int main(int argc , char* argv[]) { char played[] = "This old man, he played "; int i=0; enum days{one,two,three,four,five,six,seven,eight,nine,ten}; enum days d; for(i=0;i<10;i++) { printf("%s %s\n ",played,d); } return 0; } [/CODE] Can …

Software Development c
Member Avatar for Narue
0
119
Member Avatar for rayvarde

plzz help me how can i do the 3 sorting in 1 program user input using bufferedReader plzzz... bubble sort slection sort insertion sort

Software Development java
Member Avatar for rayvarde
0
92
Member Avatar for empror9

hello, i'm trying to write two classes (vehicle and driver) first i want to create the class vehicle and it's attrbutes, but there is a problem when i compile the code. please see all my code [CODE]#include<iostream> #include<vector> using namespace std; // // Vehicle: Vehicle number, type, capacity, driver assigned …

Software Development c++
Member Avatar for mike_2000_17
0
195
Member Avatar for javinpaul

Just wondering is there any way to modify Classpath in your program and force them to include a new directory in classpath ??

Software Development java
Member Avatar for JeffGrigg
0
231
Member Avatar for thecrossibear

so i need to have a script that takes input from a command and parses it for some info im still pretty new to perl, but from what i understand, to do something like that youd have something like: [CODE] while ($line = <STDIN>) { blah blah blah } [/CODE] …

Software Development perl
Member Avatar for thecrossibear
0
161
Member Avatar for Gazzmonkey

Hi all, I got a problem with part of my application, it's an exception I've never seen before. Overload resolution failed because no accessible 'New' can be called without a narrowing conversion: 'Public Sub New(original As System.Drawing.Image)': Argument matching parameter 'original' narrows from 'Object' to 'System.Drawing.Image'. 'Public Sub New(stream As …

Software Development dataset open-source vb.net
Member Avatar for Gazzmonkey
0
2K
Member Avatar for sarathsshanker

im not able to figure out the meaning of this piece of code: [code] public int void countTokens(String s) { StringTokenizer st= new StringTokenizer(); return st.countTokens(); } [/code]

Software Development java
Member Avatar for stultuske
0
381
Member Avatar for theCompiler

how do i determine the winner in a game rock paper scissor ? i have 10 rounds and the one who has 7wins shall be declared as the winner but how am i supposed to do that ? great help is highly appeciated :)

Software Development c
Member Avatar for WaltP
0
125
Member Avatar for 2Dcube

Hello, I have to make a small game in C++ as a school project. Now, although I've made many 2D games before I'm very new to C++, and I ran into a few problems. One: I need dynamic key input. I now use getch() and it makes the program wait …

Software Development c++
Member Avatar for WaltP
0
2K
Member Avatar for Mast3r67

Ok, so this is how things stand now. I've read few books about C++ console programming, C++ console game programming, I'm doing C++ on school and I can say I'm pretty good at it. Now, I'd like to move on the next step, to program in C++ with graphics, sound, …

Software Development c c# c++ opengl
Member Avatar for mike_2000_17
0
184
Member Avatar for adem87

this a serarcing button for list on the data table but give an error please find this this work in c# with access [code] DataTable tablo = new DataTable(); tablo.Columns.Add("no"); tablo.Columns.Add("urun"); tablo.Columns.Add("model"); tablo.Columns.Add("adet"); tablo.Columns.Add("boyut"); tablo.Columns.Add("aciklama"); try { DataRow satir; satir = tablo.NewRow(); while (oku.Read()) { // here satir[0] = oku[0]; …

Software Development
Member Avatar for cudahead
0
136
Member Avatar for EddyWally

Hi there. I'm writing a simple system to order certain data. Now this is the deal: I have a bunch of files with the following filename structures (stored as strings): 0000[i]_FILENAME.EXT i represents a random number. Now I want to scan whether the file has that structure, and if it …

Software Development c data-structure
Member Avatar for EddyWally
0
170
Member Avatar for goluman

I am a beginner in openCV and C++ as well.I am stuck in a particular place while trying to implement face recognition in open cv. I have the stored training images in a folder called data the images of first person is stored like 1_john1.pgm 2nd image of first person …

Software Development algorithm c++ image
Member Avatar for goluman
0
1K
Member Avatar for jimFan

Dear all, I experienced an unexpected error when using getline() to get input from a file like this: a.out < inputFile Part of the code is shown below [CODE] ........ while (true) { cout << "Enter a command: "; getline(cin, input); cout << input << endl; } ......... [/CODE] The …

Software Development c++
Member Avatar for p9v9n261
0
461
Member Avatar for TrustyTony

Inspired by Computer Science forum post, I did this code. I prepared it Shedskin compatible, and it runs quite nicely indeed. Even interpreted the algorithm is faster than full sort. Here interpreted test for the module, shedskinning this test would show better time for sort solution. Python version has benefit …

Software Development algorithm python
Member Avatar for TrustyTony
0
372
Member Avatar for ClimaxBeetle

[CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim ds As New DataSet Dim da As New OleDbDataAdapter Dim cb As New OleDb.OleDbCommandBuilder(da) Dim cn As New OleDbConnection Dim cmd As OleDbCommand Dim sql As String 'sql = "INSERT INTO Employees(GivenName, LastName, Gender, JobPosition, Month, …

Member Avatar for adam_k
0
326
Member Avatar for Mahkoe

I've been coding in c++ for a while now, and I use string variables quite a lot. One day, I stumbled upon a char* which can also be used to "store" a string of characters, and it's been bothering me ever since that I don't really know what a string …

Software Development c++
Member Avatar for Mahkoe
0
183
Member Avatar for gunjannigam

I want to have two textfields which will have the following validations 1) Both should be Integers 2) The value in one textfield should be a integer multiple of other I have used two JFormattedTextFields to this. This is what i have done till now [CODE] NumberFormat updateFormat,sampleFormat; updateFormat = …

Software Development java java-swing
Member Avatar for mKorbel
0
277
Member Avatar for shibunath

set path=%path%;C:\python27 where does this code go? please explain in detail?

Software Development python
Member Avatar for Purkinje
0
2K
Member Avatar for arlir

Hi guys, A good day to you all! I am trying to bulid a simple data base but two errors at compile time apparently are holding me back from running my program. I have tried to figure them out but my efforts are are proving worthless and that's why am …

Software Development c data-structure
Member Avatar for muktigeek
0
234
Member Avatar for techlawsam

Hi Im a beginner in programming C# while watching this tutorial on C# (writing a console application) the guy skipped over a couple segments in between parts of code. Where he was doing "if" statements of " if (input3 == "n" (vertical lines here) input3 == "n"). Im wondering how …

Software Development c# visual-studio
Member Avatar for techlawsam
0
2K
Member Avatar for Xufyan

here why should we have to write [B]c=1[/B] ?? i couldn't understand the logic of writing c=1 :s... please just explain the logic [CODE]void main(void) { int a,b,c=1; a=5; for ( b=a; b>0; b--) { c*=b; } printf ("The Factorial of %d is %d\n",a,c); getch(); }[/CODE]

Software Development c c# c++
Member Avatar for muktigeek
0
652
Member Avatar for VIPERHlr

Hi, I desperately need help for my java assignment. I am required to make an encryption/decryption program using netbeans. It basically takes the users message and encrypts it into characters and vice versa for decryption. My teacher say it has something to do with using arrays. There are 2 main …

Software Development encryption java java-netbeans
Member Avatar for peter_budo
0
137
Member Avatar for creative_m

I want to define a vector of TextBox (or any compnents) in VC++ project (windows form). I wrote : [code] std:vector <TextBox^> txt_box; // //then I push the elements back in the vector using txt_box.push_back (textbox1) // //... // for all the text_boxs in my form [/code] but this code …

Software Development c++
Member Avatar for Ancient Dragon
0
292
Member Avatar for noobprogrammer

Hi everyone, i was given a book.xml file which contains all the title,author of the books. Here's how it looks like. <?xml version="1.0" ?> <Books> <Item> <BookID>A001</BookID> <Title>A Tale of Two Cities</Title> <Author>Charles Dickens</Author> <Language>English</Language> <Year>1859</Year> <Quantity>5</Quantity> </Item> <Item> <BookID>A002</BookID> <Title>The Lord of the Rings</Title> <Author>J. R. R. Tolkien</Author> <Language>English</Language> …

Software Development python xml
Member Avatar for Gribouillis
0
150
Member Avatar for scrivomcdivo

Hey folks. I hope you can all help me. Basically, I'm designing a small GUI Windows program that allow staff at a cinema to reserve seats for customers. There will be a total of 60 seats in the cinema. I have two classes in my program:- 1.) MainForm.vb - used …

Software Development gui vb.net
Member Avatar for lolafuertes
0
207
Member Avatar for aiwasen

The problem is this. I try to enter the limit of at least 34 fibonacci numbers but the limit display the limit of 89. [CODE]#include <iostream> using namespace std; int main() { int x=0,y=1; int num; cout<<"Enter number:"; cin>>num; cout<<x<<" "<<y; while(y<=num) { x= x + y; y= y + …

Software Development c++
Member Avatar for HASHMI007
0
186
Member Avatar for Daita

what does using namespace std; actually mean? ...

Software Development c++
Member Avatar for HASHMI007
0
101
Member Avatar for tammy12w

help im new to this.... why are get method useful?? for example why write this: [CODE]public class name { private String yourname; public void setname(String Fname){ yourname= Fname; } public String getname(){ return yourname; } public void sayying(){ System.out.printf("hello %s", getname()); } }[/CODE] when this also does the same thing …

Software Development java
Member Avatar for stultuske
0
121
Member Avatar for hanky

Hi, Please let me know how to resize an Image with form resize event. Also I will have to limit the size so that the image size is not larger than the scrreen width and so small so that the text in the Image is illegible. Also, please let me …

Software Development image visual-basic
Member Avatar for Awon02
0
255
Member Avatar for DragonSlayerX

[CODE]from gasp import * begin_graphics() Circle((200, 200), 60) Line((100, 400), (580, 200)) Box((400, 350), 120, 100) update_when('key_pressed') end_graphics() [/CODE]

Software Development python
Member Avatar for DragonSlayerX
0
104
Member Avatar for fashxfreak

[B]Hi, i just want to know that from where i can download "VISUAL STUDIO 2005" free...[/B]

Software Development c visual-studio
Member Avatar for Ancient Dragon
0
108
Member Avatar for Kerlix

I've found a simple timer program and it seems to work (for the most part). The problem is that certain cout functions aren't showing up. The timer originally didn't include milliseconds in the code, so I added them myself (which could be the problem) based on the code for the …

Software Development c++ perl
Member Avatar for Kerlix
0
291
Member Avatar for laguardian

So I'm creating a program that calculates the “Sum of Powers” after the user inputs two integers N and M. The sum of powers is computed as N^M+ N^(M-1)+ N^(M-2)….+N^0. But I don't know how to finish it. I'm kinda confused using return method, loops, etc. Here's what I have …

Software Development java
Member Avatar for Slimmy
0
2K
Member Avatar for abc88

i have a list of datarows. each row is having mutiple columns like userid,date,flag,etc. i want to sort the based on date. how can i do that ? [CODE] Dim listOfRows As New List(Of DataRow)() For value As Integer = c To count - 1 r = tableToRead.Rows(value) listOfRows.Add(r) [/CODE] …

Software Development vb.net
Member Avatar for kvprajapati
0
3K
Member Avatar for VernonDozier

As far as I can tell, this is safe. It prints "Should Get Here" and nothing else, as expected and desired. In real life, CantGetHere is a function that actually IS called and does some arithmetic. To avoid a seg fault in line 14, I have a NULL pointer check …

Software Development c
Member Avatar for VernonDozier
0
182

The End.