132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Haranadh

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
Member Avatar for mike_2000_17
0
312
Member Avatar for IMJS

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++
Member Avatar for mrnutty
0
187
Member Avatar for FoxInBoots

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; …

Software Development c++ ios
Member Avatar for FoxInBoots
0
164
Member Avatar for ajmcello

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
Member Avatar for d5e5
0
150
Member Avatar for lynnajoe

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
Member Avatar for JamesCherrill
0
131
Member Avatar for bibiki

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
Member Avatar for bibiki
0
151
Member Avatar for pseudorandom21

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
Member Avatar for papanyquiL
0
150
Member Avatar for dan2011

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: …

Software Development c++ ios
Member Avatar for predator78
0
86
Member Avatar for pseudorandom21

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
Member Avatar for pseudorandom21
0
103
Member Avatar for MixedCoder

[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++
Member Avatar for lcordero
0
552
Member Avatar for DarkPyros

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++
Member Avatar for DarkPyros
0
184
Member Avatar for lovelyrose26

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
Member Avatar for NormR1
0
91
Member Avatar for ranj_s20

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
Member Avatar for ranj_s20
0
141
Member Avatar for apanimesh061

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 { …

Member Avatar for apanimesh061
0
737
Member Avatar for yashsaxena

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++
Member Avatar for yashsaxena
0
4K
Member Avatar for jeraldmuthu

<?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
0
103
Member Avatar for pallabiboro

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
Member Avatar for pallabiboro
0
82
Member Avatar for watery87

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()) …

Software Development algorithm c++ ios
Member Avatar for drkybelk
0
126
Member Avatar for Kprosser1029

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
Member Avatar for JamesCherrill
0
101
Member Avatar for CJP3

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
Member Avatar for abelLazm
0
1K
Member Avatar for tubby123

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
Member Avatar for ravenous
0
208
Member Avatar for dgreene1210

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++
Member Avatar for dgreene1210
0
265
Member Avatar for annitaz

[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 …

Software Development c++ queue
Member Avatar for annitaz
0
199
Member Avatar for Ertzel

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++
Member Avatar for Ertzel
0
207
Member Avatar for dywlkr365

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
Member Avatar for jwenting
0
221
Member Avatar for Japus

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 …

Software Development gui java
Member Avatar for jwenting
0
627
Member Avatar for ayagi

Unable to cast object of type 'System.String' to type 'System.Windows.Forms.TextBox'.

Software Development programming-construct vb.net
Member Avatar for ayagi
0
320
Member Avatar for ninjatalon

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
Member Avatar for codeorder
0
3K
Member Avatar for pxndx

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
Member Avatar for pxndx
0
154
Member Avatar for ninjatalon

I have to make a lot of retangular boxes to make my program neat but i'm having a problem of adding boxes. I tried using the draw event in the tab page but everytime i scroll it will draw the lines again and messes up everything. Also when making a …

Software Development vb.net
Member Avatar for ninjatalon
0
166
Member Avatar for virendra_sharma

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
Member Avatar for pseudorandom21
0
1K
Member Avatar for monsterbb1

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 …

Member Avatar for NormR1
0
260
Member Avatar for cannadawoot

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
Member Avatar for cannadawoot
0
192
Member Avatar for majorawsome

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
Member Avatar for majorawsome
0
152
Member Avatar for ninjatalon

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
Member Avatar for ninjatalon
0
98
Member Avatar for tasu

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
Member Avatar for StormHawk
0
80
Member Avatar for Labdabeta

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++
Member Avatar for ddanbe
0
351
Member Avatar for becool007

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
Member Avatar for NormR1
0
111
Member Avatar for Behseini

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 …

Software Development python tkinter
Member Avatar for Lardmeister
0
9K
Member Avatar for snipermann

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
Member Avatar for ravenous
0
318
Member Avatar for aloyssia

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 …

Software Development ide java
Member Avatar for NormR1
0
188
Member Avatar for DanMcNulty

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
Member Avatar for jfarrugia
0
251
Member Avatar for psuplat

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
Member Avatar for BitBlt
0
1K
Member Avatar for Purlox

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
Member Avatar for WaltP
0
139
Member Avatar for NoUserNameHere

[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++
Member Avatar for prvnkmr194
0
132
Member Avatar for Naveed_786

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.

Software Development oracle vb.net
Member Avatar for Naveed_786
0
86
Member Avatar for sadsdw

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++
Member Avatar for sadsdw
0
109
Member Avatar for winecoding

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
Member Avatar for winecoding
0
8K
Member Avatar for shilosimi

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++
Member Avatar for Narue
0
239
Member Avatar for TrustyTony

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
Member Avatar for Narue
0
1K

The End.