43,549 Solved Topics
Remove Filter ![]() | |
I need to use document.write() in XSL. Will it work ? Please help Software Development xml | |
I wrote a very simple vector class to call level 1 BLAS through MKL, [CODE] #include<mkl.h> #include<stdexcept> #ifndef _x_matrix #define _x_matrix class xVec{ private: double *v; int n; public: xVec():n(0),v(0){} xVec(int a):n(a),v(new double[n]){} xVec(int a, double c){ n=a; v=new double[n]; for(int i=0; i<n; ++i) v[i]=c; } ~xVec(){if(v) delete[]v;} double &operator()(int … Software Development c++ | |
Hej guys! I have a little problem with layouting Swing components. I just need to add JTree: tree to the UPPER corner of JScrollPane: scrollpanesearch, and 4 buttons to the BOTTOM corner. What I have now is JTree: tree on the LEFT, and 4 buttons on the RIGHT (see Figure … Software Development java java-swing | |
Good afternoon, I've got an assignement where i need to set up a parent class and a child class with .cpp files. When I try to call the a function in the child class i get and undefined reference error. I'm able to initialize this class using the default constructor … Software Development c++ | |
Hi you can customize it the problem is that when i put 5 it say to low then when i put 6 it say to high or any numbers pls help me.. [CODE] #include <iostream> #include <cstdlib> #include <ctime> #include <conio.h> #include <cmath> using namespace std; char ans; int main() … Software Development c++ | |
[CODE]//************************************************************************************ // // This program keeps track of speakers' bureau. // It displays a menu, where the user can add info, // view the info of another speaker that's already in there, // and etc. //************************************************************************************* #include "stdafx.h" #include <iostream> #include <iomanip> #include <cstdlib> using namespace std; //************************************************************************************** // function … Software Development c++ data-structure | |
Hey all I have this program that is supposed to output a stickfigure. I got this from my game programming elective class (which I now regret enrolling to) and the professor told us to work on it in a way that the class called "example" with the function render should … | |
Hey guys, wasn't sure where to post this but i posted it in both categories. Converting the for loop is probably the most confusing for me especially the arrays. Hope you guys can help me out, thanks. [CODE] #include <iostream> using namespace std; int main() { int Function[10][2] = {0}; … ![]() | |
Hey guys, wasn't sure where to post this but i posted it in both categories. Converting the for loop is probably the most confusing for me especially the arrays. Hope you guys can help me out, thanks. [CODE] #include <iostream> using namespace std; int main() { int Function[10][2] = {0}; … | |
I have this program I'm trying to write, a simple application with gui: a menu and a button. Whenever I go to run it, this is the error I get: Traceback (most recent call last): File "/Users/[I]myname[/I]/Documents/School/Programming/Window.py", line 27, in <module> app = Application() File "/Users/[I]myname[/I]/Documents/School/Programming/Window.py", line 14, in __init__ … | |
I am new to this whole programming thing. I am currently using python 3.2. I want to get into trying to build GUI, but i can't find any programs that seem to work with python version 3.x. Should I downgrade to an earlier version of python? If so what is … | |
This is my array: pieces[2][1]=new Pawn("Bpn1"); pieces[2][2]=new Pawn("Bpn2"); pieces[2][3]=new Pawn("Bpn3"); pieces[2][4]=new Pawn("Bpn4"); pieces[2][5]=new Pawn("Bpn5"); pieces[2][6]=new Pawn("Bpn6"); pieces[2][7]=new Pawn("Bpn7"); pieces[2][8]=new Pawn("Bpn8"); pieces [1][1]=new Rook("BR1"); pieces [1][2]=new Knight("BN1"); pieces [1][3]=new Bishop("BB1"); pieces [1][4]=new King("BKing"); pieces [1][5]=new Queen("BQueen");; pieces [1][6]=new Bishop("BB2"); pieces [1][7]=new Knight("BN2"); pieces [1][8]=new Rook("BR2"); pieces[7][1]=new Pawn("Wpn1"); pieces[7][2]=new Pawn("Wpn2"); pieces[7][3]=new Pawn("Bpn3"); … Software Development java | |
I am reading code out of a txt file which contains text in this format.. [text file] Name of Project Experiment One cows, dogs, pigs, horses, sheep, goats 1,1,1,1,20,10 cowweight,dogweight,pigweight,horseweight,sheepweight,goatweight 560,50.5,54.3,641.1,35.4,42.5 deer,elk, moose 2,4,5 etc... [text file] I am trying to read in the numeric values to use for a … Software Development java | |
Hi all, I am currently working analysising silicon pixel detectors for the LHC at my university. One thing i have to do is to find clusters of signal in a silicon pixel detector. I have directory of macros which handles the data and getting it ready, not important. My goals … Software Development c++ | |
I am still learning C# so I am sorry if I do not use the correct terminology. Here is what I am trying to do. I have the following code that I use to check to see if an instance of a form already exists, and if it does show … Software Development | |
i have written the following code for an add fucntion for a linked list implementation. when i run it, it runs correctly. when i went to class today, i found i had made a mistake. my add function adds only a student data type, whereas the assignment was to make … Software Development c++ linked-list | |
Hey guys, I need some help with this code I have. I'm running into several issues at the moment. 1 - I don't know what bitwise operators to use for finding the difference of A and B 2 - When the Union and Symmetric Difference calculate, the outputs aren't displaying … Software Development java | |
Hi everyone, I'm in a situation where I would like to have a ServerSocket that listens on a specific port. However, if this port is already taken, I would like to listen on a different port. How can I advertise what port my Java program is listening on, so that … Software Development java | |
Can anyone help me? I'm trying to display a date range from a Saturday to the following next Friday (every two weeks) in an asp:listbox for the past 12 months. I.e., would show something like: 9/11/2010 - 9/24/2010 8/28/2010 - 9/10/2010 8/14/2010 - 8/27/2010 etc... I'm using asp.net c#. Any … Software Development asp.net | |
I've built my fair share of computers and figured it was time to learn to take advantage of that hardware by learning to program. So I'm taking some courses online. I'm having some issues writing some programs though, so any help would be appreciated. Right now, I'm stuck on this … Software Development python | |
Hello, How would I count the number of files in a directory? Thanks! Software Development java | |
This is my first post here on Daniweb and I intend to do things right. I actually did read the "READ THIS FIRST" thread and instead of posting 500 lines of code I whipped up a test program I aptly titled test.cpp First I will walk you through my problem. … | |
Hi everybody, I recently created my first full application and have since passed it along to my friend for testing. Unfortunately, on his laptop, the executable, when double clicked, will act as if it is launching, show up in task manager, remain in task manager, but will not launch. The … Software Development c++ | |
I'm trying to populate my textboxs with data from my database when the user name is selected but I'm having trouble getting the code right. Help Please! table users (there is a textbox for each of these fields) password lastname firstname Using upcmd As New SqlCommand("SELECT * FROM users WHERE … | |
Okay, We have a Laboratory Exercise that, asks a user to input his/her name and gives an output of its initial (from the input NAME). example: My name is Dani A. Ona and the output is >> D A O. My instructor said that I will use `CharAt()` ... is … Software Development java | |
hello guys..i have a question..Is it possible to make the time running in datagirdview? and also if it is possible to make the update of two form combine in 1 form for example you have a customer form that you save, update in database and another like for employee that … Software Development vb.net | |
Hi! I am using a label widget in order to display a n rows and m columns matrix. My program allows repeated generation of a random matrix of integer (of arbitrarily number of rows and columns) - I am observing these matrices by representing them in a Label type widget. … | |
Here's the problem. Bought a new wireless printer, HP B209a. Have a wireless router, Belkin, been using it for years. I take it, the printer, out of the box, follow all the instructions on setting it up, run the setup program in a laptop, following all on screen instructions. It … | |
Suppose B class inherits A. Then the following code works. [CODE]A ob; ob=new B(); [/CODE] but the following throws an ArrayStoreException : [CODE]A ob[]=new B[2]; ob[0]=new A();[/CODE] Is [B]ob[0][/B] a reference of type A or B ? In the first code, [B]ob[/B] was a reference of type A and therefore … Software Development java | |
Im pretty new to Python (2.7) and no programming experience before. Anyway Im in the process of learning python but have a mysterious error that I can't figure out. Whenever I put equal sign in print statement, I get syntax error. here's an example code [CODE]def main(): f = open('lines.txt') … Software Development python | |
Hi again. I just wrote here to ask for a little help yesterday, so I got the help and worked that out, and I'm just curious about something I am going to do in the following couple of days, as soon as I work the network part of this project. … Software Development data-structure java | |
PLease Tell me how to mark as solved in DaniWeb. Thank You Software Development | |
in my problems, i want to use event keyboard press 'Enter' on textbox, i'm very confuse because in event property from textbox there was Enter, but after I double click and read statement in that, after i test my program, there was nothing , please help thanks before :) Software Development vb.net | |
from random import randint correct = 0 for i in range(10): n1 = randint(1,10) n2 = randint(1,10) prod = n1 * n2 ans = input('What's %d * %d? ' % (n1,n2)) if ans == prod: print('That's Right! Well done.') correct = correct + 1 else: print('No, I'm afraid the answer … Software Development python | |
Hi all, I'm fairly new to VB. I'm working on a Windows forms app that will average a set of numbers, the only catch is that there are 10 textboxes(4 in the example for times sake), and not all of the textboxes could be filled with a number... I know … Software Development mathematics vb.net | |
For the past few hours I have been pouring through hundreds of internet articles, blogs and posts in various forums regarding interfaces. I get a general idea that it is basically a class with no implementation at all...a "skeleton" if you will. I was hoping for an a-ha! moment that … Software Development ![]() | |
hello...how can i make my post thread solve if it is already answer? Software Development vb.net | |
Ive written this program yet have stumbled upon a problem. in this program, im supposed to make a linked list of students. i must then implement some basic functions. one is to add a student (which i believe is working properly) and another is to getStudent. i believe the code … Software Development c++ linked-list | |
I had this working before, but I modified it and it stop working. So, I change the code back to when it was working and I'm not getting the same results. Here is what I'm getting. How many employees you want to enter? 3 Enter gross pay for each employee: … Software Development c++ | |
I would like to write some Java code that will make the mouse "click" somewhere within a 25 by 50 pixel region on the screen. Additionally, I would like the majority of this "clicking" to occur nearer the center of that region (and less around the outside edges of the … Software Development java | |
Normally, I post all the information and code snippets that I can muster when asking a question, but this time I will throw "caution to the wind" and just pose the scenario/question... Right now there is an application running and displayed on my screen, the Firefox Web Browser. I want … Software Development display java web-browser | |
[FONT=Arial Black]hai![/FONT] (1)I have problem in deleting a record from a file. I was told that the only way to delete a record from a file is to copy the file to another temporary file and then copy the records to the same file again by skipping the record that … Software Development c file-system | |
Hi, Can anybody tell me that how can i open file and write it in winform C++? i have googled alot and searched msdn but could not find appropriate help. I also tried using fstream's objects but they were declared unidentified on winform. what can i just do? what stream … Software Development c++ file-stream | |
I am somewhat new to XSLT, and I have a situation where depending on certain conditions I want to convert XML like: <SomeElement> <ChildElement/> <ChildElement/> <ChildElement/> ... </SomeElement> to: <SomeElement value="something"> <ChildElement/> <ChildElement/> <ChildElement/> ... </SomeElement> I don't want to specify the child elements in the template that modifies the … Software Development xml | |
I have a simple class called DateTime because I'm doing some interface with a C# web service. I wanted to override the Date class' toString method as shown below in order to serialize it in a way C# understands, so I wrote a simple little wrapper class. The problem comes … Software Development java | |
Hello, I am pretty new to C# (but I have used java) I want to use my c# class in a c++ project, this means I will need to make a COM object, It seems reasonably easy [URL="http://msdn.microsoft.com/en-us/library/aa645738%28v=VS.71%29.aspx"]I have been using this[/URL] mainly as a template. My program was a … Software Development | |
Quick query here guys - I have a program that reads from a file and counts the number of lines in the code. This works fine but when I go to print the contents of the file to the screen or to a Dialog box the number of lines that … Software Development java | |
Please i need help what is the missing Code here... THis is like a Simple POS [B]this is the CODE:[/B] Dim total As Double Dim item_price As Double Private Sub cboFruits_Click() Me.txtQuantity.SetFocus End Sub Private Sub cboFruits_DropDown() Me.cmdAdd.Default = True End Sub Private Sub cmdAdd_Click() item_price = 0 With Me.cboFruits … Software Development apple visual-basic |
The End.