132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for oredigger

Hello, To start off, this is not a homework related question, just something I've run into on a project I'm working on for myself for fun. Basically, I have a screen whose controls are dynamically created (I create one for each root entry in an xml file) so that the …

Software Development xml
Member Avatar for oredigger
0
158
Member Avatar for toferdagofer

Im trying to have the center circles follow the mouse if it enters the screen and go back to the original position if the mouse exits screen. Im not sure what to put into my mouse listener and would appeciate some help [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
120
Member Avatar for NewbieProgram

I need to select attributes from my XML file and output the info into a table using XSL, need to output day name, instructor and class being taught, the problem is that I have multiple attirubtes within each group. my XML: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="g4.xsl"?> <schedule> <student_info> Vitaliy Berkovich …

Software Development android database-design open-source xml
Member Avatar for NewbieProgram
0
2K
Member Avatar for nickx522

I cannot quit after the program went to loop and if user choose not to continue game 'n' the program keeps asking for new guess. heres the code [CODE]#include <iostream> #include <iomanip> //#include <stdlib> #include <ctime> //or <ctime> using namespace std; int main() { //local constants const int MAX_NUM = …

Software Development c++
Member Avatar for Nandomo
0
98
Member Avatar for BLUEC0RE

I'm having an issue with my program when taking in a string. I have two variables (ones for testing), char xpr[50] and char tst[50]. xpr gets it string by fgets --- fgets(xpr,50, stdin); tst gets it value by strcpy --- strcpy(tst, "((1 + (2 * 3))*(2*3))"); when prompt, I put …

Software Development c
Member Avatar for BLUEC0RE
0
99
Member Avatar for MasterGberry

Hello. I am trying to store information in a structure using this pointer loop method. If i try using the getline() method it seems to crash the program, and without it crashes if i enter more then 1 word. Also when the last loop deleting the pointers goes off it …

Software Development c++
Member Avatar for Duoas
0
990
Member Avatar for Rickay

[CODE]int main2() { cin.get(); cin.ignore(); cin.clear(); while(true) { long double x, y; char ch_op; Sleep(200); cout << "Enter an expression below: \nExamples:\n"; cout << "x + y for Addition.\nx * y for Multiplication.\n" << "x / y for Division\nx - y for Subtraction.\nx & x for Square Roots.\n" << "x …

Software Development c++
Member Avatar for Rickay
0
206
Member Avatar for king_koder

Hi, I started learning Python 3 around a month ago and I think, I am beginning to get the hang of it. However, I just recently realized that most of the modules I would like to use(wxPython, django,etc) aren't yet ported to Python. SO now, I'm really confused whether I …

Software Development python python-django
Member Avatar for ultimatebuster
0
678
Member Avatar for p2kpradeep

Hi, I've created a VB .Net windows application that generates reports in excel files from a dataset. I use "New Excel.Application" to create the Excel instance, and push data into it from my dataset. During this process, I do not show the GUI of my instance of Excel to the …

Software Development dataset gui vb.net
Member Avatar for alc6379
0
165
Member Avatar for Sharpmax

Hello guys! I am new to web development in general and C# particularly. Recently I have been given a project to create a simple web application, using C# and .NET. The application is divided into three parts: Data Access Layer with an XML file attached to it, the Business Layer …

Member Avatar for alc6379
0
154
Member Avatar for oldetimer

I need some career advice. Any genuinely informed advice that anyone can give would be greatly appreciated. I'm 55 years old. I was a DOS programmer 20 years ago for @ 4 years. I retired from an unrelated field about 5 years ago, but now I need to go back …

Software Development career
Member Avatar for alc6379
0
126
Member Avatar for sciprog1

Hello Members, I have a simple Client/Server program which does the following: Server sends an array of Images one at a time to the Client. Client displays them one at a time. My Server: [CODE]import java.net.*; import java.io.*; import javax.swing.*; public class Server { public static void main(String[] args) throws …

Software Development client-server java java-swing
Member Avatar for sciprog1
0
145
Member Avatar for 1991

Hi, I´m wondering how i can append newly created objects to a list by using subclass.I have come this far: [CODE]class Room(object): def __init__(self,name): self.name=str(name) self.hazard = self.empty #def __str__(self): # return self.name def pits(self,antal): pit=1 while pit<antal: assert self.hazard == self.empty self.hazard=self.Pits # return self.hazard def bats(self,antal): bat=1 while …

Software Development python
Member Avatar for 1991
0
7K
Member Avatar for chou73

hi all, please can u help me, it's urgent and i'm working on it about 5 days without result i have a xml file: [CODE] - <Menus> - <UsersMenu> <ID>1</ID> <Text>Button1</Text> - <UsersMenu> <ID>2</ID> <Text>B1I1</Text> <link>template.aspx</link> <parent>1</parent> </UsersMenu> - <UsersMenu> <ID>3</ID> <Text>B1I2</Text> <parent>1</parent> - <UsersMenu> <ID>6</ID> <Text>B1I2I1</Text> <link>template.aspx</link> <parent>3</parent> </UsersMenu> …

Software Development html-css xml
Member Avatar for chou73
0
214
Member Avatar for yellowkaiq

For a project i'm working on now, i need to create a function that is in the format Hours:Minutes: seconds: Fraction where fraction is 1/10th of a second. It should print out every one tenth of a second. I have no idea where to start or how to do this, …

Software Development python
Member Avatar for TrustyTony
0
2K
Member Avatar for Nathaniel10

Stroustrup has an exercise in which the reader writes a program for the wumpus hunt game. A first draft of my code is below. It compiles and runs partly correctly. If you choose to move to a different room the program runs as expected. If you choose to shoot at …

Software Development c++
Member Avatar for SgtMe
0
179
Member Avatar for Vv IVIatthew vV

well, i'm writing a text-based game, and my 'NameEnter' function is acting up, basically, if you confirm that the name that you input is correct, it works fine, but if you type 'no' or something else, it doesn't accept the name reentry, i am not sure exactly what i have …

Software Development c++
Member Avatar for SgtMe
0
147
Member Avatar for amit.hak50

I want to find it out for the number 2345678901233.. but it is giving the error ..is there any method to find out the primes beyond the range of integer..[code]import java.util.*; public class inc { int flag=0; int h=2; public void checkprime(int k) { while(h<k){ if(k%h==0){ flag=1; } h++; } …

Software Development java mathematics
Member Avatar for apines
0
202
Member Avatar for raybolio

Hi! I'm working on an application that only sits in the notification area and keeps track of time. At certain intervals, it will notify the user. It also has a form, with which the user can configure and see the time etc. When the form is closed with the little …

Software Development
Member Avatar for raybolio
0
148
Member Avatar for russellquin

I'm new to c++ and I want a variable that represents fuel to stay zero even if/when the program tries to subtract from it. The problem is that sometimes it becomes a rather large number. I am guess that the variable is looping to the highest number that it can …

Software Development c++
Member Avatar for Duoas
0
92
Member Avatar for Annettest

Hi everyone: I would appreciate some help with understanding how to free memory/use destructors. I have created a 2D dynamic array template class. I'm using Xcode and Xcode keeps crashing, with the message, "out of memory." Before I implemented this array class, I was using "new" directly within main() to …

Software Development c c# c++
Member Avatar for Annettest
0
2K
Member Avatar for Pappu-Linux

Hello Everybody Here !! I'am a noob to programming, i am having problem in understanding the STACKS in C++, I'm just confused that how to Delete a Value From Stak, How to count The Top and One More thing How to Transfer the values of One Stack into another by …

Software Development c++
Member Avatar for SasseMan
0
129
Member Avatar for Brianbc

I have a personalised webbrowser in VB 2005. It fills values into a form and submits the form. The first page is "login.php", the next page is "home.php" [CODE] SendKeys.SendWait("{TAB}") SendKeys.SendWait("{TAB}") SendKeys.SendWait("username") SendKeys.SendWait("{TAB}") SendKeys.SendWait("password") SendKeys.SendWait("{Enter}")[/CODE] I want it to do something else based on the url after the form is …

Software Development vb.net web-browser
Member Avatar for codeorder
0
395
Member Avatar for GaBack

Hi I'm totally new and this is my first post. If i do any wrong pls forgive me :D My problem is: First i made form2 in form1: Form2 form2 = new Form2(); form2.show(); After that i have a checkboxlist in form2. Now i want to get which i check …

Software Development display
Member Avatar for GaBack
0
178
Member Avatar for ceyesuma

Hello all. Is there any one that could suggest some key words or links (besides "How to use JTabbedPane") that could generate some links to tutorials that describe how to implement the process of adding tabs to JTabbedPane during runtime? or profide some feedback on what kind of learning trail …

Software Development java
Member Avatar for ceyesuma
0
106
Member Avatar for oggiemc

Hi, Suppose i have an animal base class and cat derived class..I create animal.cpp, animal.h, cat.cpp, and cat.h files...Assuming i have included Animal.h in my Cat files, what files do i have to include in the main.cpp file? is it just: 1) #include "Animal.h" or do i also include: 2) …

Software Development c++
Member Avatar for oggiemc
0
95
Member Avatar for Blondeamon

Hello mates i am having a problem designing a new DTD over the existing one found at: [url]http://dblp.uni-trier.de/xml/dblp.dtd[/url] This is the DTD over their original XML file. I used a SAX parser to store specific data from the original file into my relational database. Now i have to do the …

Software Development database-design xml
Member Avatar for iceandrews
0
91
Member Avatar for choover12

Is there a way i can create 3D graphics in c#? is there an API out there, built into c# or would i have to make my own? here is how i can create a cube [CODE] void drawcube(Pen mypen, Rectangle rect1, int size){ Rectangle rect2 = new Rectangle(rect1.X + …

Software Development api image
Member Avatar for ddanbe
0
231
Member Avatar for titanelamo

I am using VisualStudio.net edition for my compiler, and the application is to PocketPC. When I link recive this error. [CODE]LNK2019: unresolved external symbol WL_HMAC_SHA1 referenced in function F c:\Projects\redim\wzcsapi.lib fatal error LNK1120: 1 unresolved external Windows Mobile 6 Professional SDK [/CODE] This error in theory is because: - Calling …

Software Development c++
Member Avatar for parajovi
0
112
Member Avatar for chamika.deshan

Hello In java I could keep static arrays like following. class Test { public static int myArray[10]; } Those arrays are static for any class. In C++ how could we do this?

Software Development c++
Member Avatar for chamika.deshan
0
2K
Member Avatar for sharifyboy7

Program Requirements: Let A be an array of n elements. Write a template function that takes an unsorted array of type <class T> as an input parameter and feeds back a sorted array via the input parameter. Assume the operators < and > are defined for the class T. In …

Software Development c c# c++
Member Avatar for SgtMe
0
168
Member Avatar for hollystyles

I'm playing around with c# cos I was bored and I wanted to have a go at making a simple windows service that spits out a quote of the day if you telnet on a certain port. I have it working but I'm not sure of the best way to …

Software Development
Member Avatar for AlanJay
0
1K
Member Avatar for longlongsilver

i have to use the move method for the ship to move. the distance value is less than or equal to the objects fuel attribute.messgae should be displayed reporting the distance the ship moved and the objects fuel attribute should be reduced by the distance value. if not not enough …

Software Development python
Member Avatar for TrustyTony
0
158
Member Avatar for stubee_1975

Ok I've created the class Weapon below and I now want to create a vector of Weapons, how do I do this? class Weapon { public: Weapon(); // Methods private: // Data members. std::string mWeaponName; int mDamage; float mCost; }; #endif //WEAPON_H

Software Development c++
Member Avatar for stubee_1975
0
210
Member Avatar for kur3k

Hello, i search widzet for Tkrinter how creat new window ( not Toplevel() ), i want use in this box html thanks ( sorry, my EN is so bad .. )

Software Development html-css python tkinter
Member Avatar for kur3k
0
86
Member Avatar for Overbooked

Hi everyone, I'm working on method to fill a 2D grid with objects. This is what I have at the moment: [CODE]public void fillGrid() { for(int i = 0; i < ROWS; i++) { for(int j = 0; j < COLUMNS; j++) { String displayText = "#"; board[i][j] = new …

Software Development java
Member Avatar for Overbooked
0
92
Member Avatar for supertux

I'm using Eclipse and when I try to build the JMS example included in j2ee tutorial, it return a NullPointerException at this: [code]connection = connectionFactory.createConnection();[/code]. Here's the code of that example: [code]public class Producer { @Resource(lookup = "jms/ConnectionFactory") private static ConnectionFactory connectionFactory; @Resource(lookup = "jms/Queue") private static Queue queue; @Resource(lookup …

Software Development ide java queue session
Member Avatar for JamesCherrill
0
174
Member Avatar for TrustyTony

Based on thread [url]http://www.daniweb.com/forums/thread323401.html[/url], I did this recursive version for comparision. Thanks for posters of the thread!

Software Development python seo
Member Avatar for TrustyTony
0
1K
Member Avatar for schoolbus11

What I'm trying to do is to take 7 of the scores from judges and discard the lowest and the highest score then average five scores that remain after. I got to where I can get all of the scores, but I have no idea how to take the lowest …

Software Development java
Member Avatar for Overbooked
0
111
Member Avatar for SheepGotoHeaven

The assignment Im working on involves creating a database of employees and outputing some basic information about them. Im having trouble in my header class files. the error i get is "[B]error: passing 'const Owner' as 'this' argument of 'double Employee::getSalary()' discards qualifiers[/B]" I think its the way im passing …

Software Development c++
Member Avatar for Ancient Dragon
0
152
Member Avatar for berwick53

I have the following array below apart from it having more data and its all stored in a string array. how would I sort it so that It goes from highest to lowest. col 0 col 1 example 0 90.87 example 1 100.87 example 2 873.88 example 9 88.98 to …

Software Development c
Member Avatar for Adak
0
199
Member Avatar for MichaelSammels

Hello DaniWeb, [INDENT]I am making a command line program, which does not use a GUI. However, I am wondering if there is any code that I can use in order to change the program's icon (the one that appears on the top-left of the window, or in the Taskbar)?[/INDENT]

Software Development c gui
Member Avatar for Ancient Dragon
0
98
Member Avatar for Pokenerd

Hi guys, I am writing a small application which needs to load some images, and other resources. I am currently trying to find the best way to package these resources in my application. I have looked at some examples, I but I have been having trouble understanding them, and many …

Software Development image java java-netbeans
Member Avatar for lee.j.baxter
0
159
Member Avatar for mrar85

i have a problem regarding functions. this leap year code is frustrating because it will always give me "not a leap year" whenver i entered a year: [CODE]#include <iostream> using namespace std; int get_input(); bool CheckLeapYear(int); int main() { int year,x; char key; do { year=get_input(); cout<<CheckLeapYear(x)<<endl; cout<<"Press 'y' to …

Software Development c c# c++
Member Avatar for SgtMe
0
168
Member Avatar for MuniArt

I've looked all over and haven't found an answer on this that I can understand. I included my code (most of it, anyway.) Obviously, I'm trying to make class Square a subclass of class Rectangle. However, I can't get my display() method to work properly in the derived class. The …

Software Development c++
Member Avatar for innnocentdevil
0
472
Member Avatar for civirol02

Input rows and columns manually. Like this: input column: 3 input row: 2 then the output must be: 1 2 3 2 4 6 it's continuous. so if I enter new number in columns and row, it will display the numbers included. What is the code applicable for this. I …

Software Development c
Member Avatar for Adak
0
141
Member Avatar for silversurfer515

Hey guys, Does anyone have a simple program which can be compiled on visual studio 2010 for windows that opens a socket to a given webpage and allows you to read the html just as you would with a local file? I don't want a html parser, I just wish …

Software Development c++ visual-studio
Member Avatar for jonsca
0
281
Member Avatar for MaryAnne19

Hi all! I have a program that runs as a large form (Form1) with smaller forms that open inside of it (PeopleBox). It's for friends/contacts - each person gets their own row in the database (PeopleDB). At runtime I'd like it to open a PeopleBox for each person already existing …

Software Development programming-construct sql
Member Avatar for N4JRY
0
247
Member Avatar for civirol02

The user is asked to input the number of days in a month and the first day of the month. Here is the sample output: Input the number of days in a month: 30 input the first day of the month: 4 0-Sunday 1-Monday 2-Tuesday 3-Wednesday 4-Thursday 5-Friday 6-Saturday Sun …

Software Development c
Member Avatar for Adak
0
416
Member Avatar for jae5086

Ok I have tried a few ways to get this loop to terminate before using the ending variable in the function but I cannot seem to figure it out. This is just my latest attempt. I want this program to end when the user enters 0 but it always returns …

Software Development c++
Member Avatar for jae5086
0
114

The End.