132,726 Archived Topics
Remove Filter ![]() | |
I have a class Matrix2D where the matrix is defined as vector<double> elements. I'm trying to use the function Gauss() to perform gaussian elimination on a matrix a [CODE]bool Gauss(Matrix2D& a) { [INDENT][/INDENT]//Gaussian elimination routine }[/CODE] The function itselt works perfectly and if I view the matrix a just before … | |
I am writing a supplemental program for the software that came with a programmable robot. The DLL structure has about 6 DLLs that I can reference, with another set that I need to load at runtime. The ones I need to load at runtime have a class inside them that … Software Development assembly | |
Hello, I have a layout and i have to paste information on that layout, in that lay i have Columns H, P i have a formula in column P like this [CODE] =IF(ISERROR(P3/H3),0,P3/H3) [/CODE] but when i insert the information obtained in VBN to EXCEL worksheet it pastes the information … Software Development microsoft-office vb.net | |
Hi, I am trying to use regex to validate an input from JOptionpane i want to allow the user entering ONLY digits, letters and exclametion marks. This is my line of code where i would like to put teh regex. [B]Code[/B] String message = JOptionPane.showInputDialog(null, "Enter a Message: "); Steganography.hide(message, … | |
hi, I would like to save a .bmp image using showSaveDialog and i cannot figure out what to use.. Below i have the code of open. [B]Code[/B] [CODE]protected void Open(JFileChooser chooser, JLabel lblPicture) { // TODO Auto-generated method stub if (chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) { File fileChoosed = chooser.getSelectedFile(); try { … | |
Hi there! I'm writing a program which has lots of vectors in it...I've named these vectors sequentially - ie vector1, vector2, vector3 etc. What I was wondering is, is there a way of displaying the contents of these vectors without manually writing cout << vector1[0] etc? I know this doesn't … Software Development c++ | |
Okay, so I have said code: [code] #include <iostream> #include <cstdlib> using std::cout; using std::cin; using std::endl; int main() { char input[8]; int counter = 0; int newletter; do { cout << "Please enter a 7 letter word to encrypt:\n>"; cin >> input; if(input[8] != '\0') { input[8] = '\0'; … Software Development c++ | |
Hello, I have a program connecting with a database.. so when add record in it, i want to validate for the duplication of ID in database.. here's my code for add button: [code]Private Sub cmdAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdAdd.Click dSet.Tables(0).PrimaryKey = New DataColumn() {dSet.Tables(0).Columns("WatchID")} 'The … Software Development vb.net | |
I have a ListView in my application with four columns. I want to edit two of them, one is text field and other one is date field. The other two should not be edited. And I want to write code in EditToolStripMenuItemClick event, or any other event (possibly). Can it … Software Development listview | |
Although I have received some advice and code snippets, I think that I should present a broader view of what I am trying to do and the trouble I am having. I have built a test fixture that has an internal microcontroller which directs traffic in and out of the … Software Development data-structure hard-drive | |
i'm writing a small desktop application to store details entered in to a swing ui.this application saves, edits and deletes the records.every thing is working fine but when writing searching functionality when i search the records i'm able to fill the searched record in to the text fields successfully.but if … Software Development java java-swing | |
Hey guys, I am writing a C++ program with the help of dynamic allocation of a character array. The size of the array depends on the size of file read. However, when I checked the size of allocated array, it is always 4! So, is there any limit on this … | |
any one here can help me to make access database and connect it to a visual basic 2010 program and update and retrive information from it please help me if you can Software Development vb.net visual-basic | |
i forgot to put DO in my program. since i was instructed to use DO-WHILE LOOP. i still have the same output if i use this code. But better to have the DO inserted. output: 0 0 2 0 2 4 0 2 4 6 0 2 4 6 8 … Software Development c++ | |
In My source code folder near they are lot of TMP file(temporary file Creating) so how to stop that all Software Development visual-basic | |
i am a freshman IT student and im making a citizen records database for my thesis... i would like to ask help from you guys with my codings, ms access relationships and errors. errors: empty row cannot be inserted. access relationships: how do i make a one-to-many relationship with enforce … Software Development visual-basic | |
Dear People, I want to use the ListView with larger images. For this I use the ImageList with images of 120x80 pixels. Now for each ListItem I have two images. With a timer I want to alternate the imahes like: [CODE] Private Sub Timer1_Timer() Dim i As Integer For i … Software Development listview social-media visual-basic | |
hi all... i want to upload a file using ftp path1 = "D:\Python\test" host = sys.argv[1] def main(): try: f = ftplib.FTP(host) except (socket.error ,socket.gaierror),e: logging.info("Error: cannot reach '%s',%s" % (host,e)) return logging.info("***connected to host '%s'***" % host) try: f.login(user="root",passwd="aims") except ftplib.error_perm: logging.info("Error :cannot login ") f.quit() return logging.info("***logged in … Software Development python | |
Hello, I wrote a program by RMI, when I compile it by the cmd, the client class dosn"t compiled, it"s arrive to the lookup and stop. this is part of my code: Client Class: (the lookup doesn"t succeeded, when i compile it, print demo 1 , demo 2 and demo … Software Development client-server java | |
hi, could anyone please point me towards a good link or post a code that helps explain how these could be implemented? thanks a lot Software Development c++ | |
The code for this is: [CODE=VB.NET]'IMAGE HANDLING Dim bytes() As Byte = DS.Tables("Location").Rows(0).Item(4) Dim ProductImage As Image = Image.FromStream(New System.IO.MemoryStream(bytes)) pic_ProductImageDisplay.Image = ProductImage pic_ProductImageDisplay.Load()[/CODE] The error occurs line 3 stating "ArgumentException was unhandled: Parameter is not valid." Any idea on a solution to this problem? ![]() | |
hi i have a datagrid view that is filled with fields from a database. until filling this datagridview it is alright. in this form i have a button delete and a textbox. when i press this button it takes the number in the field which will be the primary key … Software Development | |
i need to make a program that would display the figure as shown below. using a DO-WHILE structure and a method to implement the task. a C++ program. output: 0 0 2 0 2 4 0 2 4 6 0 2 4 6 8 0 2 4 6 8 10 … Software Development c++ | |
I can't work out why when i try to print the list(listProb....s) it prints the empty list, i'm not setting them to the empty list after this code or anything, and when i print the normDistProb's on their own it prints fine): [CODE]for i in range(0,12): listProbFog.append(normDistProb(dayValues[i], fogAve[i], fogVar[i])) listProbSnow.append(normDistPr...ob(dayValues[i], … Software Development python | |
After searching around for along time... I've found nothing. I need to be able to grab an image from an imagelist. I tried searching through the properties and methods, but found nothing that looked like it would help. [CODE] begin PicArray[WhichCol, WhichRow].Picture := {Image from imagelist} end; until Imageindex[WhichCol, WhichRow] … | |
Hello experts, I am trying to extract data from XML file using XSLT. I am trying to code a general XSLT code that can handle similar XML files that may differ a bit from each other. the XML code I am working on can have the following 4 scenarios for … Software Development xml | |
Hello All Thanks for such a informative web site. I'm a newbie to python and using python 2.6 for few weeks with no problem. I love notepad++ and trying to hook it up with python2.6 as explain in here but I can't. In notepadd++ at Run menu I get to … Software Development python | |
I want to draw an image at X Y position when the user click the mouse so I'm using an InternalFrame with layout set to NULL , inside a JFrame with Layout free - using netbeans here is the image class [CODE=java] package myPak_1; import java.awt.*; import java.awt.image.*; import java.io.*; … Software Development gui java java-netbeans java-swing oracle | |
Hi Everyone, I am used the datagrid in my application. I found problem when setting the allready checked checkbox set to false. I Tried to set the values to cloumn=0,false but its never checked false,Here is my code [CODE]if (Convert.ToBoolean (dtgqueselect[2, e.RowIndex].Value) == true || Convert.ToBoolean ( dtgqueselect[2, e.RowIndex].Value) == … Software Development | |
I've got a simple mail utility that is supposed to send an email through an Exchange 2007 server (which is installed on Windows Server 2008 R2 64bit) and it won't work, giving the following error message at the commandline: "Mailbox unavailable. The server response was: 5.7.1 Unable to relay". I've … Software Development windows-server | |
I need help i am not sure if i am on the right track. i have to write a program to calculate the night of nights someone has to stay and what size bed they want. than i have to give a total of cost plus 6% sales tax. her … Software Development c++ | |
Have a table in column a i have a list of part numbers p101, p101, p102, p102, p102, p103, p104 etc part no alternative p101 a178 p101 a196 p101 a192 p102 a135 p103 a165 p103 a145 p104 a179 i need to have it like this but i cant work out … Software Development | |
This is an answer to a question in C++ area. [url]http://www.daniweb.com/software-development/cpp/threads/355232[/url] It should be ready to be modified to code in C++, C#, or Java, because VB.Net is fully OOP. Even though it can be used for vectors, you may still want to modify it to a Vector Class. Software Development vb.net | |
I have a problem on programming, its not really my assignment, but my friends... i just thought i can resolve this at C, because i got some backgrounds on it.. but i can't do it my compiler is dev c++ the code must be on C++ not C can i … Software Development c++ matrix-multiplication | |
I am developing a system reminder application where the date n time are inserted along with a message in the database.when the datetime from the database matches with the current system datetime,it should display an alertbox. I am inserting date and time with datetimepicker. i will be able to get … Software Development | |
recently i understood at last how can i store more values in an int with bytwise operators, also, i have read that #define directives are evil for a number of reasons. one of them: [CODE] #define SEVEN 2 + 5 int result = SEVEN * 5; cout << result; // … Software Development c++ | |
PLease can someone help? I need to create a program that reads a list of units and names "eg ounce,gram,28" then asks for a user input, and then converts and displays the result. So far all i have been able to do is get it to read the first line, … | |
I am quite new to Python programming, just started about a week ago, and was just designing a simple menu for a simple guessing game. I have browsed Google and other websites trying to find snippets of code that may help me but my searches haven't turned up anything. I've … Software Development python web-design | |
SELECT * FROM salesdetail where date<'"+DateTime.Now.Subtract(365).ToString() Q)How to compare whether current date and date stored in salesdetail database table has difference of 365 days. Please reply urgently. Software Development | |
Okay so I got the original working and is fairly simple. Only problem is I can't figure out how to set it up to scroll one color section after the other. Like this pseudo code would be: [CODE]if (color1 >= 255) { color2++; } if (color2 >= 255) { color3++; … Software Development | |
Hey this is from my c++ assignment at Uni. I'm fairly new to programming so i need some help. The program has separate functions after the main() which i have to call everytime i need to use them. So I've sorted an array using a fuction with an algorithm of … | |
Hi, I'm making a program that finds the number of days between two dates (so far you can only put in 1 date because my code is incomplete). The code is incomplete right now but my problem is that the problem is that my code doesn't return a needed value. … Software Development c++ | |
I am working on a application for which i need to connect it to a database. I have chosen postgreSQL. But i cannot connect it to java. Can somebody help. I tried this [url]http://www.faqs.org/docs/ppbook/x20856.htm[/url] but i don't know how to set classpath.I am currently working with windows xp. Software Development java postgresql | |
Hi all I'm designing a multithreaded application which has long running threads. I need to check some condititons in the main thread, interrupt the threads and end the program if the conditions are true. But i'm not sure if this is the correct/safest way. Here's my pseudo: [CODE]main() { boost::thread … Software Development c++ multithreading | |
I'm supposed to make a program using getchar() to input the operation entered, then return the result of the operation after extracting the operands and the operator and calculating the result. if you enter 15 + 30 the result should be 45 or 15+30=45 Also using user-defined functions to do … Software Development c | |
if items are added into an arraylist would another arraylist be required for grouping items or would a hashmap or something else be required i.e. title, firstname, last name etc saved indvidually but therefore grouped to equal person 1 and so on ? the reason for grouping is to edit … Software Development java | |
currently i am taking a java class, and out professor is introducing it with the language processing so we get the idea of how things work. he moentioned that processing comes from java, so that's the reason i posted it here. i made a really simple game somewhat of a … Software Development java | |
hello am making a library program that add, delete and shows record. i am done with it. but now i have a logical problem. the id i input for a book it can be taken by other books. i need to restrict ID for one book which cannot be used … Software Development c++ | |
Create a console-based application that computes the price of a desk and whose main() method calls four other methods a method to accept the number of drawers in the desk an input from the keyboard. this method returns the number of drawers to the main method a method to accept … | |
Okay so I've been trying for a few days now and just can not seem to figure this algorithm out. Right now I'm trying it with a while loop but still not working. Basically here is my snippet. It's on a timer for 10ms. [CODE]void colorScrollRotation(object sender, EventArgs e) { … Software Development algorithm |
The End.