132,726 Archived Topics
Remove Filter ![]() | |
Can some one suggest best way to calculate the huge matrix. Example: [CODE] const int NUMPAT = 1212; const int NUMIN = 6; const int NUMHID1= 13; const int NUMHID2 =15; const int NUMOUT = 12; #define rando() ((double)rand()/(RAND_MAX+1)) [/CODE] Below are----- [CODE] double Input[NUMPAT+1][NUMIN+1]; double Target[NUMPAT+1][NUMOUT+1]; double SumH1[NUMPAT+1][NUMHID1+1], WeightIH1[NUMIN+1][NUMHID1+1], … Software Development c++ matrix-multiplication | |
Hello, please can I have some clarification to check I am not doing something very stupid? It seems sensible with all that I have read, but I'm not confident. I suspect I have memory leaks and want to make sure some fundamentals are correct before I start looking deeper. My … Software Development c++ | |
I've tried but I don't understand how to use void, can someone please try to explain how it works in a simple way. [CODE] #include<iostream> #include<conio.h> #include<iomanip> using namespace std; float areacalc( float rad); float circumcalc( float rad); void output(float A, float C); void input ( void ); float radius; … | |
I have an array with 5 elements. With each fork, I want the next element to pass to it and then exit. Here's what I've got so far. Could someone please help? :) Here's what I get: child 0 k: test1 child 0 k: test2 child 0 k: test3 child … Software Development perl | |
Hi, Can anyone tell me why this program is skipping line 63? Thank you, lynnajoe [CODE]import java.util.Scanner; //Imported Scanner for input import java.util.Locale; //Imported Locale and NumberFormat import java.text.NumberFormat; /**Simple Payroll Program titled PayrollPartI & modified for PayrollPart II * * @author Lynn Ortiz *///May 22, 2011 //Description of program: … Software Development java | |
I have this file that contains an instance of some Machine object. When I compile the file I have, it says that the class uses a deprecated API, meaning the Machine object. I tried looking for it in [URL="http://download.oracle.com/javase/6/docs/api/"]this[/URL] link, but I find nothing. I was wondering if anyone who … Software Development api google-api java oracle | |
I plan to use the WebRequest class to POST some data to a form, specifically a message and a file. I don't know the first thing about websites so I was hoping someone could help me out. I know how the message data is supposed to be formatted and how … Software Development first-post | |
I'm a newbie at C++. I can't figure out why my program won't build. Could someone please help? I get the error [QUOTE]1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup 1>c:__namestuff__.exe : fatal error LNK1120: 1 unresolved externals[/QUOTE] [CODE]// File : name.cpp // Description: Does stuff with stock // Programmer: … | |
Do any of you know of a plugin for VS2010 that plays music? I'm kind of assuming plugins for VS are written in some kind of native code... Software Development c++ visual-studio | |
[CODE]Server::Server(boost::asio::io_service& io_service,std::string ip,short port,std::shared_ptr<ConnectionFactory> factory) : acceptor_(io_service, boost::asio::ip::tcp::endpoint(boost::asio::ip::address_v4::from_string(ip.data()), port)){ m_factory = factory; start_accept(); std::cout<<"Socket accepting connections..."<<std::endl; } Server::~Server() { } void Server::start_accept(){ boost::asio::io_service io_service; std::shared_ptr<Connection> conn = m_factory->create(io_service); acceptor_.async_accept(conn->socket(), boost::bind(&Server::handle_accept, this,conn, boost::asio::placeholders::error)); } void Server::handle_accept(std::shared_ptr<Connection> conn,const boost::system::error_code& error){ if (!error) { std::cout<<"on connected"<<std::endl; conn->OnConnected(); start_accept(); } } [/CODE] when i … Software Development c++ | |
hey, i'm supposed to prompt a user to enter 6 sets of numbers, find the difference of each set based on which number is greater(so that no negative number will be seen, enter the difference into the array, rearrange the array in ascending order and then print the array. the … Software Development c++ | |
i need help please i cant input the name of pet in 2nd to the 5th it wont me input the name and skip into age. i dont get any error i just dont get it why it skp the name. public class PetRecordTESTER { public static void main(String [] … Software Development java | |
Hi, I have a web application project which is done in VS2005.I am creating crystal report and i want to export it to pdf on a export button click. But an error is showing as 'Missing Parameter Value. The code i used is shown below:- protected void btnExport_Click(object sender, EventArgs … Software Development pdf | |
This is a program for recording sound from an Audio Input device. I have taken help from the MSDN website ..... ! I did as they had mentioned .... [CODE] //wave.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Runtime.InteropServices; namespace Record { public class wave { … Software Development assembly audio c# data-structure file-stream queue user-interface visual-studio | |
Hello All I have little confusion between Abstraction and encapsulation. Abstraction means Giving only essential things and hiding unnecessary details. Encapsulation means binding the data members and methods together in a capsule form to avoid accidental changes to data from external users. Now both uses hiding of data. What is … Software Development c++ | |
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" indent="no" encoding="ISO-8859-1"/> <xsl:param name="context"/> <xsl:param name="renderId"/> <xsl:param name="token"/> <xsl:include href="../../wcf/controls.xsl"/> <!-- buttons with spaces inbetween --> <xsl:template match="button[@hidden='true']"/> <xsl:template match="button"> <xsl:text> </xsl:text> <input type="submit" name="{@id}" id="{@id}" value="{@label}" onclick="iceSubmitPartial(form, this, event);return false;"/> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="tree-extras-top | tree-extras-bottom"> <tr> <td class="navText"> <xsl:apply-templates/> </td> … Software Development xml | |
ERROR IN ADD STATEMENT THIS IS MY CODE [CODE]Dim cb As New OleDb.OleDbCommandBuilder(da) Dim nr As DataRow nr = ds.Tables("a").NewRow() nr.Item(0) = TextBox1.Text nr.Item(1) = TextBox2.Text nr.Item(2) = TextBox3.Text ds.Tables("a").Rows.Add(nr) da.Update(ds, "a") MsgBox("Datarow added")[/CODE] Syntax error in INSERT INTO statement. System.Data.OleDb.OleDbException was unhandled ErrorCode=-2147217900 I have taken textbox3 as memo … Software Development vb.net | |
Hello, would like to ask about this problem im facing. [code] #include <cstdlib> #include <iostream> #include <fstream> #include <ios> #include <string> #include <string.h> #include <vector> #include <sstream> #include <algorithm> #define MAX_MSG 30 using namespace std; vector<UserInit> ReadUsersInitial() { fstream file ("Users_initial.txt"); FILE *file1 = fopen("Users_initial.txt", "r"); string tempFile; if (file.good()) … | |
I need to create a gui application.. When the user clicks the start button use a JFileChooser to allow them to pick a directory from the system and then run the recursive search of the file system from that directory and display the directory and each file in the JTextArea. … Software Development file-system gui java | |
I have the following code for adding information from and array to a listbox private void buttonAdd_Click(object sender, EventArgs e) { //add tracks to my tracks Add Tracks list box and tracks list box myTracksString[nextAvailbleRow, 0] = textBoxArtist.Text; myTracksString[nextAvailbleRow, 1] = textBoxSongName.Text; myTracksString[nextAvailbleRow, 2] = ((numericUpDownHours.Value * 3600) + (numericUpDownMinutes.Value … Software Development | |
Guys, i have [b]2 doubts[/b] [b]Doubt-1[/b] -------- [code]int* p[10];[/code] Does it mean that 1)I have an array of 10 pointers, that means, each of them is capable of holding an address OR 2)I have a single pointer that points to an array holding 10 integers I too, feel , the … Software Development c | |
I;m having a hell of a time this simple program im trying to create... any help would be great! most of it is right except can't get the formula to show up so theres an extra line of code in there because i dont know what to do this is … Software Development c++ | |
[CODE]template < class Object> void fix(queueType < Object> &q, int n) { -if (n>=1) -{ ---Object temp = q.front(); ---q.deleteQueue(); ---fix(q,n-1); ---q.addQueue(temp); -} }[/CODE] (a)what will the final state of queue q1 be after the statement fix(q1,2); is exexuted, if q1 has the values (1,2,3,4,5} my answer: {2,3,4,5,1} because q.addQueue … | |
I'm trying to get a players name from a file on their computer and then display that name onto a Label on my chat program. This Label is also used when sending messages to the server in order to display the persons name with their message. The problem I'm having … Software Development c++ | |
I've tried searching my problem with no success...Can anyone help me fetch a password from the jpasswordField, encrypt it , store it to the database then decrypt back for login validation Software Development encryption java | |
Hello I'm wondering when it is best to use reflection to call a method instead of defining and using an interface. I guess using the interface will be faster but what are the advantages of using reflection? The program I'm creating is a GUI which should support mutliple views ([URL="http://en.wikipedia.org/wiki/Model–view–controller"]Model … | |
Unable to cast object of type 'System.String' to type 'System.Windows.Forms.TextBox'. Software Development programming-construct vb.net | |
I have a form let's call it Form1 that calls another form(Form2) Form2 to has a bit a code that needs to load in the LOAD_EVENT and takes about 4 seconds. I have made a new form(frmProgress) that only has a progress bar. I want frmProgress to show up and … Software Development multithreading vb.net | |
Hey everyone, i have a project i'm doing for school and i need some help, i'm not a big VB fan (i'm more into java) and i have to make a calender with combo box, numericUpDown a clock and 3 numericUpDowns for hour min and seconds, i would appreciate any … Software Development vb.net | |
Hi i have c# code for to sort text file using quicksort algo, but the problem is that i can sort only upto 300MB , after that system get hang . i want to sort 1GB to 5GB text file. can anyone plz help me . here is the code … Software Development | |
I WAS WONDERING IF SOMEONE COULD HELP ME MOVE THE JTextField above all my buttons like a normal calculator. Also, after this I don't know how to connect the basic calculations to operation buttons. When the user clicks a button the text appears in the textfield but I don't know … Software Development java java-swing peer-to-peer user-interface | |
Got some problem... This code populates an 2d array and then adds it to an arraylist (all) It runs 3 times and each time the array place gets different values. But if you look in arraylist all, the arrays got same value because they point to each other. If I … Software Development java | |
![]() | I am just begining XNA and I am trying to do a 2D game but one of my pictures(Textures, Sprites, what-ever-you-call-it) won't load. I tried renaming it but still it doesn't recognize it. at first i thought it was hiding so I made the picture white (Because the background was … Software Development audio ![]() |
I have a database with a table called BREAKFASTMILK Inside the table I have Two Columns named MENU and FOOD ITEM when using this code if I change the index of one of comboboxes it will change the index of the other. I want to keep both independent but get … Software Development vb.net | |
i have a button and when it is clicked i want it to open a new form in netbeans. how do i do this...??? Software Development java java-netbeans | |
This is a conversion question that has me stumped. I need to convert an unsigned char to a signed float. Some examples: 0xFF becomes 1.0f 0x00 becomes -1.0f 0x80 becomes ~0.0f The only idea that I could come up with was a massive switch statement. But a switch statement will … Software Development c++ | |
Hey guys, I am making a Java program where it runs on a library. This library classifies my program as a script. So basically, I am scripting. Now I want to make various scripts, but I want them all to have the same layout so that I can have the … Software Development java | |
Hi, Gribouillis, helped me to understand how to invoke a function by btn click event handler, at my last post.Now I am trying to understand how I can handle an selected item event from a list box? lets say I have a list box like below and I want to … | |
Hello I am working in my study with xml file therefore I want to read an xml file with c++ to get the information such the coordinates of the points in order to use them later. I have written the following code, but [U][B]I have just taken only one value[/B][/U]. … Software Development c++ file-stream file-system xml | |
hey guys i have just started to learn java programming language ...i was wondering if i will be able run big java programs from command prompt...what the the advantages and disadvantages of using command prompt for running java programs...is using IDE like eclipse better than using command prompt?...if so in … | |
Right, I basically want to develop some desktop-based software in c# .net that will execute simple queries on an sql database. I currently deal with this problem in my job, but it's all web-based, and I wasn't responsible for setting up the database and data context - so as you … Software Development | |
Hi everyone. I started playing around with C# development. As my first project I decided to write a program that performs a simple backup of given folders. In essence it goes through files and folder in source directory and destination directory, and then: if the folder in destination directory doesn't … Software Development | |
Is there any way of getting input directly from keyboard without it getting written onto screen? I tried the standard O/I functions, but they don't help. I also looked into C libraries, but there wasn't and useful function (unless I missed some). I need only one one key from keyboard, … Software Development c | |
[CODE]void SortedNumberList::add(double number) { ListNode *nodePtr, *previousNodePtr; if (head == NULL || head->value >= number) { head = new ListNode(number, head); } else { previousNodePtr = head; nodePtr = head->next; while (nodePtr != NULL && nodePtr->value < number) { previousNodePtr = nodePtr; nodePtr = nodePtr->next; } previousNodePtr->next = new ListNode(number, … Software Development c++ | |
Hi to all, How can i connect VB.NET with oracle i am using following connecting string for connecting VB.NET with SQL Server [CODE]Public ConnectionString As String = "Data Source=%server%; Initial Catalog=Inventory; Integrated Security=SSPI; Trusted_Connection=True;"[/CODE] And Class for sql server [CODE]Imports System.Data.SqlClient[/CODE] What class should i use for oracle. | |
Hello everyone, I'm trying to declare a 2-dimension (A[][]) dynamic matrix but I'm having problems ... The A's elements need to be FLOAT. The size of lines and columns are both vectorX.size(). Could you help me please? One of error's message is: "cannot convert `double' to `float**' in initialization" [CODE] … Software Development c++ | |
My current work needs to do the development based on open soure software. There is a class defined as DirLocator.java The code is as follows [CODE]public final class DirLocator implements IResourceLocator { /** The folder relative to which resources are resolved. */ private File dir; /** * Initializes the locator … Software Development java | |
Hi there. I'm trying to write a program that will establish a DB of names and Ids. The thing is i don't want to scan the entered data to a temporary variable and then put it into the file, but to scan the user's input directly to the file itself. … Software Development c++ | |
I did some code to refresh my C. So many things have happened since 1987, but at least I started with ANSI instead of K&R. As I used the language so little, I think it is time to do some practise and even to learn some C++ to support my … Software Development c linked-list |
The End.