199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 { … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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.. … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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)); … | |
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 … | |
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! | |
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` … | |
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 … | |
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 … | |
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 … | |
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 :""(( … | |
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..... | |
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() … | |
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 … | |
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 | |
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> … | |
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, … | |
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 … | |
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 … | |
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, … | |
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 … | |
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. ! | |
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> … | |
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: … | |
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 … | |
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 … | |
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 … |
The End.