132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
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 | |
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++ | |
>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++ | |
![]() | 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 |
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 | |
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 | |
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 :) | |
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++ | |
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 | |
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++ | |
![]() | ******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 ![]() |
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 … | |
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 | |
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 | |
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 | |
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++ | |
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. … | |
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 | |
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 … | |
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++ | |
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 | |
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 | |
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++ | |
[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 | |
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++ | |
[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] >>> … | |
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 | |
[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 | |
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++ | |
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++ | |
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 … | |
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 | |
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 | |
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++ | |
:) 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++ | |
:) 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++ | |
I need to a have a CHAT WINDOW in my business website. Please how can I achieve this? Software Development java | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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 … | |
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, … | |
Can I get my output in my program to be sent to another program like Wordpad or Microsoft word? Software Development c++ |
The End.