199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for TheWind147

Below is a merge sort function provided by my instructor, my task is to create a program that asks the user to input numbers in random and choose which type of sorting algorithm he wants to use to be able to sort the numbers, I managed to finish quick sort …

Member Avatar for TheWind147
0
333
Member Avatar for bsabowala

Okai so I have a jfilechooser : JFileChooser chooser = new JFileChooser(); int returnName = chooser.showOpenDialog(null); if (returnName == JFileChooser.APPROVE_OPTION) { f = chooser.getSelectedFile(); if (f != null) { // Make sure the user didn't choose a directory. path = f.getAbsolutePath();//get the absolute path to selected file //below line to …

Member Avatar for Patil Raj
0
164
Member Avatar for Goldfinch

Hi, I'm testing a script and I ran into a persistent error. The output of the program should be: 123 132 312 321 231 213 However, I just get a stack overflow error. I'm a bit lost as to what isn't running correctly. CODE: import java.util.Arrays; public class RecursionTest { …

Member Avatar for stultuske
0
148
Member Avatar for lisa92222

Hello, I need to install the module pycrypto to run a program but ive been stuck for about 2 hours trying to figure out where to put it exactly. Ive tried in the folder where my program is, also in the usr/lib/python2.6/ using python setup.py install (i actually did build …

Member Avatar for TrustyTony
0
191
Member Avatar for fahadyousaf

Please any one help in this problem, stuck in this. i want difference of login time and log out time, get time from machine in this way 090010 (hour, minute,second), i want to separate time with "-" and insert in database. e.g. login time from machine = 091043 , save …

0
80
Member Avatar for Verygoodguy

I have a table that stores last name, middle name and first name. I insert values in these columns using a stored procedure. But for those whose names doesn’t have middle name like Marry Jones, Laite Manuel, etc, when I click into insert button, the stored procedure reports an error …

Member Avatar for himanshu.1691
0
149
Member Avatar for shah1509

I've got an application that reads all the files and sub folders within the built assembly directory and display it using a datagridview. But I when try to run the application in my network drive to try scanning the files within that drive, it gives out the exception "Access to …

Member Avatar for BobS0327
0
543
Member Avatar for erikdeboy

I got to this far. done with converting and everything. Now down to the other step. I want to calculate the total payments for all the employee has the same years of experiences. FOr example: 5 guys with 10 year experiences, get pay at 90k/year. I want to show all …

Member Avatar for thines01
0
794
Member Avatar for xtinab

Hello all, I'm having trouble writing a recursive algorithm to traverse a Huffman tree to encode a message. I'm sure you all know what they are. Here's my algorithm: string HuffmanCode(const char& symbol, const TreeNode<SymbolPriority>* huffman, string &code) { //Base case: you are in a leaf; if the leaf contains …

Member Avatar for histrungalot
0
1K
Member Avatar for swissknife007

I am working on a project with my friend where we have to update existing version of a game which uses SDL 1.2 to use SDL 2.0 header files and functions. I would like to know what is the standard procedure we follow while updating already existing source code to …

Member Avatar for Ancient Dragon
0
164
Member Avatar for codechrysalis

Alright so Im making this sports application where whenever the user clicks on a radio button with a designated sport a message apporiate to that sport will come up . I also want to have a 'different' picture show up for each different click of a corresponding sport . Would …

Member Avatar for codechrysalis
0
886
Member Avatar for BDove

I've been trying this for 1 year now and can't seem to find anything useful (yeah, I know I suck). I've made a C++ application with WinAPI which allows me to read and write raw disk bytes with CreateFile(). However, now I need to do it with assembly so the …

Member Avatar for BDove
0
267
Member Avatar for klemme

Hi all, I have a a fact box on a site. Inside it I have listed questions in li elements: ` <li class="fakta_li"><p>Question 1?</p></li> <div class="svar">ANSWER 1</div> <li class="fakta_li"><p>Question 2?</p></li> <div class="svar">ANSWER 2</div> <li class="fakta_li"><p>Question 3?</p></li> <div class="svar">ANSWER 3</div> <li class="fakta_li"><p>Question 4?</p></li> <div class="svar">ANSWER 4</div> <li class="fakta_li"><p>Question 5?</p></li> <div class="svar">ANSWER …

Member Avatar for Airshow
0
935
Member Avatar for YodaMerlin

This might be a very simple answer but it's been stumping me. I need to load an xml file so Ican parse in in javascript. But the file is located on a different server entirely. Can I download it to disc with javascript, so I can load it later? Thanks …

Member Avatar for emclondon
0
198
Member Avatar for poolet

Ok . I am writing a game that generate random 6 array numbers from 1 to 10 the program MUST be using by srand(time(NULL or 0)); Now, I want, because it's a little bit of difficult to generate series per second something that the program will generating the numbers auto.. …

Member Avatar for poolet
0
229
Member Avatar for baz007

Hello everyone, i have got a question regarding radio button when i send the form with the submit button i want it to display the First name Last Name and also a text in the if statement. I think the submit function only works for the first last and email …

Member Avatar for emclondon
0
171
Member Avatar for motrcolt

Alright so my task was to make a program in C++ that when entering a year would output the date easter landed on and this is what we were given a=year MOD 19 b=year/100 c=year MOD 100 d=b/4 e=b MOD 4 f=(b+8)/25 g=(b-f+1)/3 h=(19a+b-d-g+15) MOD 30 i=c/4 k=c MOD 4 …

Member Avatar for zeroliken
0
612
Member Avatar for ashboi

C++float assigned to unsigned long y I have to write separate C++ expression for: 1) extract the 8-bit exponent field to the low order bits of y, and subtract the 127 bias. 2) isolate the mantissa field in the lower order bits of y, and insert the implicit leading 1. …

Member Avatar for histrungalot
0
89
Member Avatar for roscoNI

I am trying to create a website where a user can enter a start location and an end location into textbox's and the distance between the two location shall be output into another textbox (This is done using a google API). On my webpage I have set up several instances …

0
128
Member Avatar for C0ding

Hello everyone, I've been working with some python scripts for few days now, what editor i've been using? the answer is Notepad, but then i move to Notepad++ which is the one i use to edit batch files php files, and many other programming files formats, but just now i'ma …

Member Avatar for C0ding
0
417
Member Avatar for jacob21

Hi, I am working on video player module. I am trying to add dynamic video links & description.Its working fine. the problem is when i am playing a video,video list become readonly. Need suggestion <!doctype html> <html> <head> <title>Video Player Application</title> <link rel="shortcut icon" href="/media/favicon.png"> <!-- standalone page styling. can …

Member Avatar for veedeoo
0
230
Member Avatar for major_lost

I used an older version of VB (4.0) to create a program and now want to re-create it with VB.net. A line in my program used the " ; " character to force printing to wrap I can't do this with VB.net using the 'PrintLine' function. What function allows me …

Member Avatar for major_lost
0
152
Member Avatar for Tuz

when i compile my programm the output is : Note: C:\Users\Owner\Desktop\New folder (2)\Animate.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Can some one help me please? Thanks

Member Avatar for Ludachrispeed
0
210
Member Avatar for nuclear

It seems that i dont fully comprehend how rotation works. So leys say i have a cube and i do this: x = 90.0f; rotatef(x, 1.0f, 0.0f, 0.0f); Notice that my code here may be not all correct, its like that just to symbolize what i mean. So by doing …

Member Avatar for nuclear
0
4K
Member Avatar for Torf

Hello, I think it's safe to say that I am totally off here. I need some help. > The program should include two classes Book and Author. > A Book should contain a title, an ISBN and publication year. An Author should contain a name and a sorted linked list …

Member Avatar for NormR1
0
112
Member Avatar for aquaben

Hey As my title sais having issues getting characters (like names and such ) in my code. I can only get numbers Any help would be appreaciated print ("Program 2: Using Inputs") #prints the title print ("Author: Benoit Labelle") #prints the author's name print ("ID: 3065521") #prints the authors id …

Member Avatar for woooee
0
106
Member Avatar for apals

Hello, i am working on a section of a project, that uses large number of sum methods. These sum methods are applied on a Datatable To test the best method, i use the following **Datatable structure** Class ParseLog { public DataTable PGLStat_Table = new DataTable(); public LogParser() { PGLStat_Table.Columns.Add("type", typeof(string)); …

Member Avatar for thines01
0
354
Member Avatar for mbarandao

Hello, I have a strange occurence when trying to execute the following sql: if($select_232 == 'Member Credit' && $paymenttype == 'Visa' || $paymenttype == 'Cash' || $paymenttype == 'Check' || $paymenttype == 'Master Card' || $paymenttype == 'Discover' || $paymenttype == 'Amex' || $paymenttype == 'Other') { $result = mysql_query("UPDATE …

Member Avatar for mbarandao
0
176
Member Avatar for Yarra

Hi I understand the usage of interfaces meaning they are meant to reduce coupling and make coding more effecient. Btu could one explaing how to use it and in what situations regarding in what part of the program do you use it at? Thank s in advance!

Member Avatar for elijahStar
0
131
Member Avatar for vizz

CREATE TABLE IF NOT EXISTS `users` ( `ID` mediumint(9) NOT NULL AUTO_INCREMENT, `username` varchar(60) DEFAULT NULL, `password` varchar(60) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; CREATE TABLE IF NOT EXISTS `chatmessage` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `from` varchar(250) NOT NULL, `to` varchar(250) NOT NULL, `message` …

Member Avatar for vizz
0
298
Member Avatar for pulse0

I want the user to type in his a user name and depending if it is taken on not i want the code to tell if it is available or not without submitting. You guys must have noticed how google populates the search results without even submitting your query, i …

Member Avatar for pulse0
0
108
Member Avatar for rmash

The code is not all written yet, i only covered so far the following parts: 1- add a book to the library. 2- display the books. 3- remove a book. 4- repeat the previous functions as many times as needed. 5- exit the program. Need help in constructing Classes for …

Member Avatar for elijahStar
0
2K
Member Avatar for dare599z

Hey, I'm pulling data from a table, and storing it into a DataRow. Per [MSDN](http://msdn.microsoft.com/en-us/library/system.data.datarow(v=vs.110).aspx) , I should be able to get an item from the row simply by `dRow.Item("time")`, but I only get the option of using ItemsArray. Is there any specific reason this would happen? Thanks. Link to …

Member Avatar for dare599z
0
165
Member Avatar for Enjaz

Assalam Alaikum Could any one help pleeeeeeas This is a JAVA code written using Array data structure ! I have to convert it using a binary tree data structure ! I really face difficulty in doing that !!! I mean, I don't know where to start in the process :""(( …

Member Avatar for Enjaz
0
164
Member Avatar for jayadan

hi guys i need to increase the size of the font in between eg: 83.507 is my text and i need to increase the size of 50 only and all other remains the same help me guys.....

Member Avatar for NormR1
0
220
Member Avatar for zhouy

Dear All, I have a small probelm with updating my database. Here are my codes ~~~ vb Module AphidSimVar Dim myCon As SqlCeConnection = New SqlCeConnection("Data Source=|DataDirectory|\AphidModel.sdf") Dim myCmd As SqlCeCommand Dim myAdap As SqlCeDataAdapter Dim myDataSet As DataSet Dim myTable As DataTable Dim myBuilder As SqlCeCommandBuilder Public Sub ShowData() …

0
95
Member Avatar for charlie.beat

Hello Everyone, everything has been going good with the whole JAVA learning process until today. I have been working on Inheritance and have not been able to complete this project. My problem is coming from the test class, I simply do not know how to set it up to output …

Member Avatar for charlie.beat
0
175
Member Avatar for london-G

Hi everyone, I am reading text from a text file and outputing it in a textArea on Netbeans. I am using file not found exception, however I want to have an error message that pops up. Any ideas? Thanks

Member Avatar for elijahStar
0
100
Member Avatar for Caveman280

Hey, Im stuck because i am using multiple versions of Javascript, so only the coverflow is working. Please can someone help? Heres my code [CODE]<!DOCTYPE html> <html> <head> <title>Sir Harry Smith's School Report</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="style2.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="includes/scripts/jquery-1.2.62.min.js"></script> <script type="text/javascript" src="includes/scripts/jquery-ui-personalized-1.5.22.packed.js"></script> <script type="text/javascript" src="includes/scripts/sprinkle.js"></script> …

Member Avatar for Caveman280
0
230
Member Avatar for emaleroland

I was asked to look at some code written in ColdFusion which I've had very little exposure to and haven't seen since the 90s and some of it is not clear and I'm sure it's basic. I got past one error because of a typo in a variable name. Now, …

Member Avatar for arrgh
0
273
Member Avatar for alanso

C++ Write a program TWO (2) groups of students at a private college university are enrolled in certain special courses during the special semester. The courses are taught by different lecturers. At the end of the semester, both groups are given the same tests for the same courses, and their …

Member Avatar for alanso
0
121
Member Avatar for maxinville

Pls can anyone help me with a code that will help me get values in a main class from another class... I have two classes, one is user class that has the main method and the other which is process class. I am having a jtextfield and a jbutton in …

Member Avatar for maxinville
0
359
Member Avatar for paoi00

hello again :D i want to update my database if an enrollee have balance or dont have.. if they have balance , the record of payment of student will be updated.. here's my code : Dim cn As OleDbConnection If TextBox1.Text = "" Then MsgBox("Enter a Student Number! ", MsgBoxStyle.Information, …

Member Avatar for paoi00
0
197
Member Avatar for blackmagic01021

I have two class. One class is for JAVA text area another class has a object. I want to print in the textarea from another class. The class with the text area. public class LabelStatus extends JPanel { /** * */ private static final long serialVersionUID = 1L; final static …

Member Avatar for blackmagic01021
0
1K
Member Avatar for paoi00

i saw this [article ](http://www.daniweb.com/software-development/vbnet/threads/399212/printing-from-list-view) that shows printing of listview using printdocument.. it helps me but then i want to place my list view on the middle of the page.. i want to know how to place it.. can you please help me? thank youu. !

Member Avatar for paoi00
0
90
Member Avatar for vt123

I am trying to merge 2 xml files in to one. They simply need to one another. Any help would be appreciated. [CODE] File 1: <?xml version="1.0" encoding="ISO-8859-1"?> <catalog> <data> <title>Title1</title> <description>Description1</description> </data> <data> <title>Title2</title> <description>Description2</description> </data> </catalog> File 2: <?xml version="1.0" encoding="ISO-8859-1"?> <catalog> <data> <title>Title3</title> <description>Description1</description> </data> <data> <title>Title4</title> …

Member Avatar for fikreyes
0
99
Member Avatar for benjamin tan

Hi all pros, can anybody teach me write this programme in c++??? Problem Statement Write a simple Mathematics quiz application which has six selections as below: 1) To register number of participants and name 2) To set level of difficulty (level: Beginner or Advanced) 3) To start the quiz (default: …

Member Avatar for asha11
0
459
Member Avatar for BenzZz

Hi, As the title states, within my files require_once is not working as intended. I have a file where a user enters booking details and at the top it requires once the file to create the database and insert initial data into it. The problem is it seems to be …

Member Avatar for broj1
0
144
Member Avatar for FelineHazard

Hi guys, I'm learning C++ from a book and I have a question about defining unary operators: In the book I'm working with there's an example, where they define a class called point, and define ++ operator for point *as friend*. here's the example: ~~~ c class point { int …

Member Avatar for FelineHazard
0
216
Member Avatar for tabbyheart

We just read about Functions and Arrays, and I'm still a little confused on those as well as passing a function by reference and calling it. I've been trying to get help from my online teacher, but he's not entirely helpful on the things that I don't completely understand, and …

Member Avatar for deceptikon
0
167

The End.