132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for militant880

hi all! i'm having difficulties with arrays in java. i've got a few questions that i'm kind of stuck on and their really bugging me! i'm new to java so if anyone can help with the following questions, i'd REALY appreciate it!!!! 1) Write a loop that creates an integer …

Software Development java
Member Avatar for no1zson
0
166
Member Avatar for java_starter

I am having trouble calculating the discount rate in java, I have the formula and equation but cannot figure out, what the problem. and my program would compile and work but would display the wrong amt of discount. here the a part of the program.. [code] public void setDiscountRate(double discountRateBeforeTaxes) …

Software Development java
Member Avatar for jwenting
0
142
Member Avatar for claudiu_is

Hy, I have a JFrame main window and a Dialog window, how can i use the method [I]setPositionRelativeTo()[/I] so that my Dialog window positions centered on the main window ? Thanks

Software Development java
Member Avatar for claudiu_is
0
183
Member Avatar for wendy2learn

Hello everyone, I'm working on a school work to create a simple text-based dungeon game. In this game, a player goes from one room to another room. Each room may have an item to be taken. Commands used are like: go south, go north, take sword, drop sword, look (to …

Software Development c++
Member Avatar for ShawnCplus
0
657
Member Avatar for Narue

>How can i convert a number to binary in c++ If you stare at it really hard, things will start to blur and when you turn your head, it'll start to look like binary in your peripheral vision.

Software Development c++
Member Avatar for WaltP
0
255
Member Avatar for sakura_fujin

Hi. I'm new with Java's GUI Components and I'm having a hard time with my program design right now. My program deals with manipulating database elements (i.e. fields and records) and I'm stuck with asking the user to add a new record into the database. My program originally works in …

Software Development database-design gui java user-interface
Member Avatar for Ezzaral
0
149
Member Avatar for wmr30075

I have created and populated an Excel workbook with 3 worksheets. Sheet1 contains data; Sheet2 and Sheet3 are empty. I massage the data in Sheet1 and enter the output into Sheet2. I would now like to delete Sheet1 and close and save the Excel file. I am embarressed to say …

Software Development visual-basic
Member Avatar for binoj_daniel
0
113
Member Avatar for phieagles76

Hello, I'm working on a sudoku type game with 4x4 squares rather than the typical 9x9 and I have written code to generate a random number for each button when new game is clicked the problem is it will generate 1 to 4 boards and then it freezes up I'm …

Software Development vb.net
Member Avatar for phieagles76
0
126
Member Avatar for jacques95

Hello im trying to learn c++ but cant find a program to use. I dont really know what to write on so can anybody tell me? thanks :)

Software Development c c# c++
Member Avatar for jacques95
0
144
Member Avatar for Bennymin

I have data in a txt file named Test2.txt that looks like this. 1a,1b,1c,1d,1e 2a,2b,2c,2d,2e 3a,3b,3c,3d,3e 4a,4b,4c,4d,4e 5a,5b,5c,5d,5e I want to put this data into a 2D array so that `dataArray[0][0]` will hold 1a, `dataArray[0][1]` will hold 1b, `dataArray[1][0]` will hold 2a, etc. However, the problem is that I need …

Software Development c++
Member Avatar for Bennymin
0
137
Member Avatar for pointers

Hi all, I am new to C#(programming). Could you tell me a good link for C#. Could you please tell me the use of STATIC keyword use in C#. why static is used in the following line what are the advantages..? public static class myclass{ ..................... } Thanks and regards

Software Development
Member Avatar for pointers
0
101
Member Avatar for annagraphicart

I have output from my program. I need it to be sent directly to Notepad or any other word processor. How can I do that? it's really important--thanks.

Software Development c++
Member Avatar for Ancient Dragon
0
91
Member Avatar for sakura_fujin

******I need help with my project. Here's the specs********** CS123 MP2 Database Table 1. On Load of the program it will read all files and put its data to the memory. a. Data file - this must be in CVS (Comma Separated Values). The first line is a header that …

Software Development data-structure java java-swing
Member Avatar for sakura_fujin
0
196
Member Avatar for arkaprava

I want to upload an Image into a Jpanel .. Actually I want to do the following: 1.Thw User Clicks a jButton 2. A window will be opened by which he/she can choice a image 3. The selected image will be positioned into the Jframe provide me some tutorials or …

Software Development image java
Member Avatar for masijade
0
275
Member Avatar for toptier

I have an html form containing the usual text boxes and a checkbox. When submitted to the server the user receives both an email acknowledgement as well as an html "thank you" page, both delivered by a perl cgi script. Depending on whether the checkbox is checked or not on …

Software Development perl
Member Avatar for toptier
0
117
Member Avatar for Anupkumar

Hello, I have installed VB6 and SQL * plus (Oracle 8i). I want to connect VB6 and Oracle. That is, I want to preapare an application where in, if I enter a value in the text box, it should get appended in the table in SQL. I know how to …

Software Development oracle sql visual-basic
Member Avatar for debasisdas
0
288
Member Avatar for bakedsushi

I am making a simple payroll program that keeps track of my hours, jobs, descriptions, etc. It also keeps track of the checks I've gotten. I have three main tables: Hours consisting of date, time started, ended, total hours, customer, job, description, Payperiod number, I know this one could be …

Software Development sql visual-basic
Member Avatar for choudhuryshouvi
0
326
Member Avatar for jack223

Sorry~~, I don't know where to post this quetion. Can someboy help me with this question, plz.... Suppose someone designed a stack abstract data type in which the top function returned an access path (or pointer), rather than returning a copy of the top element. This is not true data …

Software Development c++
Member Avatar for vijayan121
0
192
Member Avatar for henry.nc

Hi all, This code block is making sure the user is entering the correct character, either y/n. char response; cout<<"\nDo you want to continue? (y/n): "; cin>>response; cout<<endl; while(response != 'y' || response != 'n') { if (response == 'y' || response == 'n') break; cout<<response<<" is an invalid input. …

Software Development c++ unix
Member Avatar for henry.nc
0
78
Member Avatar for nullified

Hi, I want to open a text file and read the data then sort it via date. i found some stuff already that helps but im new to this and if anyone point me in the right direction it would be very appreciated. this sample app here [URL="http://www.c-sharpcorner.com/UploadFile/mmehta/OpeningandViewingTextandImageFiles12082005060630AM/OpeningandViewingTextandImageFiles.aspx"]http://www.c-sharpcorner.com/UploadFile/mmehta/OpeningandViewingTextandImageFiles12082005060630AM/OpeningandViewingTextandImageFiles.aspx[/URL] opens the …

Software Development
Member Avatar for _r0ckbaer
0
332
Member Avatar for tralfas

I have ubuntu installed on my computer upstairs and gtkmm works just fine on it but i cant figure out how to get it to work on windows. I was wondering first if there was a clearer tutorial than then the one on the gtkmm site. I downloaded [URL="http://gladewin32.sourceforge.net/"]Glade/Gtk+ for …

Software Development c++ ubuntu
Member Avatar for Salem
0
193
Member Avatar for teppuus

Hello, I am having problem with my do...while loop. It asks for student identifier twice before proceeding. I tried moving the "do" after the program prompts the user for his choice of id, but I couldn't get the loop to terminate after that. Any tips will be appreciated. Thank you! …

Software Development c++
Member Avatar for Salem
0
132
Member Avatar for Drew06

I can't seem to figure out the syntax error on this one, it says the error is at the end of the input.... #include <stdio.h> #include <math.h> int determine(int); void main(void) { int num1, even, odd; printf("Enter a number: "); scanf("%d", &num1); printf("The number is: %d", determine(num1)); scanf("%d", &num1); getchar(); …

Software Development c
Member Avatar for Drew06
0
76
Member Avatar for kpssivam

Hello all, how to remove a selected row in Java swing(JTable). If any one knows this please help me...

Software Development java java-swing
Member Avatar for jwenting
0
63
Member Avatar for teppuus

Ok, I know you aren't suppose to (or can't) do comparions on arrays such as, if (x < y), when both x and y are single dimensional arrays. But what about if you have a string and want to compare one element in that string. For example, I am trying …

Software Development c++
Member Avatar for teppuus
0
111
Member Avatar for kclif9

[B]I am tring to print a list in vb 5 does anyone have a code for it using printer.print[/B] Thanks

Software Development printer visual-basic
Member Avatar for choudhuryshouvi
0
93
Member Avatar for JoBe

Hello ladies and gents, It's been ages since I posted here, have been doing some coding on and of and I was wondering about the following, beneath is a test I made in trying to use the new operator in combination with a string, first a string literal, second time …

Software Development c++
Member Avatar for JoBe
0
4K
Member Avatar for Nokuphila

I need help, im creating a job scheduler which must show the accurate date and time of completion for every order placed .My problem starts when i have to get the date of the last order placed fom the database and i must use the same date to subtact the …

Software Development vb.net
Member Avatar for Nokuphila
0
91
Member Avatar for jobs

[code=python] s1 ='999' s2 = '99.99' mypat = re.compile('(^([0-9]+[.]+[0-9]+)|([0-9])$)') rate= mypat.search(s1) print rate.group() >>> print rate.groups() ('9', None, '9') >>> rate=mypat.search(s2) >>> print rate.group() 99.99 [/code] I need to get price = float(rate.group()). Price=999 or Price=99.99. I think there is a problem when s1='999', when I do this: [code=python] >>> …

Software Development python regex
Member Avatar for ghostdog74
0
108
Member Avatar for axn

i know how to create a dictionary but how do i search for a pattern in a file and then create a dictionary based on the search

Software Development python
Member Avatar for ghostdog74
0
119
Member Avatar for Sudarshan_Kanna

[B]input xml file[/B] <ARS> <tag1>one</tag1> <tag2>two</tag2> <tag3>three<AltError Code=123 Description=456789/></tag3> <tag4>four</tag4> <ARS> <ARS> <tag1>ABCD</tag1> <tag2>ABCD</tag2> <tag3>ddsdsds<AltError Code=123 Description=456789/></tag3> <tag4>EFGH<AltError Code=abc Description=defg/></tag4> <ARS> Expected Output: tag1|tag2|tag3|tag4|code|Description one|two|three|four|123|456789 ABCD|ABCD|ddsdsds|123|456789 ABCD|ABCD|ddsdsds|abc|defg The script should read this file and create a pipe delimited file. Each ARS tag record in the XML file should create one …

Software Development shell-scripting xml
Member Avatar for ghostdog74
0
151
Member Avatar for jhen

we have a project in C# we dont know the other codes of C# pls help us

Software Development
Member Avatar for Ramy Mahrous
0
93
Member Avatar for NicAuf

Ok so my first thread got deleted, due to spam. However, I still need help with my program. So here's my program description. [B]Electronic submission: You are to electronically submit your assignment through Moodle at clasess.cs.siue.edu. Objectives: Loops and decisions. Problem Description Write a program to simulate a game of …

Software Development c++
Member Avatar for teppuus
0
120
Member Avatar for The Midnighter

Okay, so I'm trying to write my own little version of Tic-Tac-Toe - and YES, I did use the search function and I saw the billions of threads involving Tictac toe. HOWEVER, I am not looking for code written for me already, I don't want to be lazy I want …

Software Development c++
Member Avatar for hollystyles
0
111
Member Avatar for winky

Hey guys, First time poster here.:) Just started my C++ career and am working with pointers/arrays at them moment. I was wondering why I cannot take a user input ('n') to create the size of the array "y". Can anyone show me why this syntax is wrong? Thanks for the …

Software Development c++ career
Member Avatar for hinduengg
0
268
Member Avatar for locsin

Greetings! I want to change the button message in visual basic 6.0. It is possible to edit the button message. Like vbokonly button display "OK", i want to reply this "OK" with my own word. Anybody have idea to replace it. Thankyou in advance

Software Development visual-basic
Member Avatar for debasisdas
0
73
Member Avatar for royaloba

hello every one.. good day... first i was able find the solution in this site on how to open the textfile and save it to the database, i'm using mysql as my database...thanks to sir "jomet" ;) . now what i want to do is, i want to open a …

Software Development visual-basic
Member Avatar for christophertheo
0
203
Member Avatar for mattarov

OK, as you can probably tell from my code, I am trying to design a program that will keep requesting a password until the right password is entered (using a Do While Loop with char instead of int). this is my code: (this is one of my first solo pieces …

Software Development c++
Member Avatar for Salem
0
83
Member Avatar for vimalfor5

:) hi all. Please help me .... Currently im working wid a bank project in .net....... !!! so please reply me wid .. the basic thing that are needed for developing a project like that. please reply me .... !!! give me sugestions ... regarding the different acount types how …

Software Development c++
Member Avatar for vimalfor5
0
177
Member Avatar for vimalfor5

:) hi all, please help me... perhps im using djgpp for my cpp projects ... i cannt able to use the dos.h functions such as the delay(); if anybdy knw about how to use it please reply me ...!!!

Software Development c++
Member Avatar for vimalfor5
0
119
Member Avatar for BABSYOMMY

I need to a have a CHAT WINDOW in my business website. Please how can I achieve this?

Software Development java
Member Avatar for ~s.o.s~
0
112
Member Avatar for onsir

hi all, how to detect program is running in my computer. etc: i have open my program application name is myProgApp, in computer jhon, so if i open again the program that in computer jhon will show message 'file already open' . thanks, for your help.

Software Development java
Member Avatar for ~s.o.s~
0
200
Member Avatar for alsoumhi

How are you guys, I need your help in java could someone know how to change from character to string what I mean is that let's say I have a variable x with char type and it has a value a. so how I can change that value (a) from …

Software Development java
Member Avatar for eranga262154
0
188
Member Avatar for faranak

hi i have created one UI application using c#. i want to use PageDown Keys for navigate between rows, but when i press PageDown keys datagridview select last row. How can i do this? thanks in advance my code: private void dataGridView1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.PageDown) …

Software Development
Member Avatar for JerryShaw
0
224
Member Avatar for ziz_300

in the function "deal", I want to call the function "add", but it doesn't work .... any suggestions? [code] #include "DeckOfCards.h" int DeckOfCards::deal() { int y,z; int y1,y2; char x1,x2; char cards[13]={'A','2','3','4','5','6','7','8','9','0','J','Q','K'}; char deck [260] ; for (int i=0; i< 260; i++) deck[i] = cards [i % 13]; y = …

Software Development c++
Member Avatar for WaltP
0
88
Member Avatar for ixenocidei

hi, 've been working on a game that worked over the internet using Sockets, but the program doesn't seem to work with Servers behind routers, is there any way around this? I tried using the router's IP with port forwarding but it didn't quite work. Any tips are appreciated.

Software Development java
Member Avatar for ixenocidei
0
78
Member Avatar for Duki

Could somone give me a hint as to why my division by 0 check doesn't work? [code]istream & operator >> ( istream & is , Rational & r ) { char x ; is >> r.num >> x >> r.den ; if ( r.den == '0' ) { cout << …

Software Development c++
Member Avatar for Duki
0
149
Member Avatar for annagraphicart

Okay, So i'm close to finishing up my program. I just need a few more things. By the way, all of you are AMAZINGLY great. I appreciate all the help. Alright... My program outputs Names, their Bowling scores, and How many points they have received (the points still need to …

Software Development c++ printer
Member Avatar for Dave Sinkula
0
106
Member Avatar for curt22

How do I get the text out of a listview in report style into an array? I want it to be something like this: [[item1],[subitem1]],[[item1],[subitem1]],[[item1],[subitem1]], Here is some of my code: [CODE] hWndListView = CreateWindowEx( 0L, WC_LISTVIEW, "", WS_VISIBLE | WS_CHILD | LVS_REPORT, 0, 21, 340, 190, hWnd, (HMENU) ID_LISTVIEW, …

Software Development c++ listview
Member Avatar for curt22
0
112
Member Avatar for annagraphicart

Can I get my output in my program to be sent to another program like Wordpad or Microsoft word?

Software Development c++
Member Avatar for annagraphicart
0
137

The End.