132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for alexdm50

hi im new to daniweb im currently working on a piece of work. the idea is to create a bank account with deposit and withdrawal functions. create student business and current accounts (this is all roughly done and a case of copying and pasting for each account type with a …

Software Development c++
Member Avatar for Lerner
0
148
Member Avatar for lg79

Hi, I would like to count all nodes "source" of "word" that start with the string "ABC". I can have multiple "word" inside a the element "wordGrp", as in entry/section/following-sibling::wordGrp/word/following-sibling::source For-each-group and a following count(current-group()) did not work for me, the XSLT processor returned "A sequence of more than one …

Software Development xml
Member Avatar for fpmurphy
0
77
Member Avatar for ninjaimp

I trying to create some, what i thought, simple rollover buttons. everything works fine except that the background colour on the mouse enter is always different to what i set. I have tried all the different flat settings on if set to 'flat' the background colour allways appears different despite …

Software Development vb.net
Member Avatar for ninjaimp
0
189
Member Avatar for Softwarez

I have the following XML: <?xml version = "1.0"?> <transactions> <transaction date = "05/22/2000" id = "0122"> <from account = "100392"/> <to account = "203921"/> <amount currency = "USD">15</amount> </transaction> <transaction date = "06/01/2000" id = "0129"> <from account = "203921"/> <to account = "877521"/> <amount currency = "USD">4800</amount> </transaction> …

Software Development xml
Member Avatar for fpmurphy
0
132
Member Avatar for TheBeast32

Hi, I was told that you can crash Windows in C++ or C by "corrupting the kernel", and I wanted to know if this was actually possible. If anyone knows if this is possible, or how it happens, please tell me. ;)

Software Development c++
Member Avatar for William Hemsworth
0
181
Member Avatar for jbrock31

Hello everyone. I need help using an instance of a class in another. Below are two header files. NumDays.h and TimeOff.h I need to have instances of the NumDays class in the TimeOff class as members. When i try to create the instance called maxSickDays, i do not get access …

Software Development c++
Member Avatar for jbrock31
0
557
Member Avatar for khalidmehmood

Hi Experts! I am new to Java any body guide me where i can download free java lectures. best regards Khalid Mehmood

Software Development java video
Member Avatar for Freaky_Chris
0
149
Member Avatar for maxicube

OK, I'm making a backup application and once the backup is complete, I want it to flash FINISHED!!!! - in different colours - any help at all would be appreciated, thanks - MaxICube

Software Development c++ flash
Member Avatar for maxicube
0
154
Member Avatar for Indianblues

Hi , I am newbie in C#. I created a database by right clicking on the project in solution explorer and by selecting add new item then selecting database. Database name is SAMP and it has a table called Account. can somebody tell me how to connect to this database …

Software Development database-design
Member Avatar for ddanbe
0
309
Member Avatar for salman213

Hi i have a question. Im using Dev C++ and this simple program takes in values of x and outputs *prints them on the screen. Although x should be an integer If i put in for example the letter "u" or any letter for that matter it goes on and …

Software Development c
Member Avatar for Narue
0
128
Member Avatar for l_03

hello guyzz,,,i am almost finished with my code,,but our teacher require us to access a text file..this is it: in my text file: accountList.txt 12345 1234 200000 Jerry Lopez first column was accountNumber, then the pinNumber, then the balance and the name.. what i did was... import java.io.*; public class …

Software Development file-system java
Member Avatar for l_03
0
218
Member Avatar for sarabonn

Hallo everyone, Iam using C# to insert a row into access table. Iam getting the values to insert from textbox. I got the error "cannot open action query". Here is my code [code] private void button1_Click(object sender, EventArgs e) { txt1 = textBox1.Text; txt2 = textBox2.Text; String connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data …

Software Development microsoft-access open-source
Member Avatar for sarabonn
0
259
Member Avatar for number87

I am creating a linked list which links a struct of data together. However, this is my problem, if I declare struct Node first then the Event type wont exist, but if I declare struct Event first then nodePtr wont exist....im kinda stuck here as to how I should declare …

Software Development c++ linked-list
Member Avatar for number87
0
557
Member Avatar for Soloz

Ok so.. I've been trying to customize a dialog box.. I'm pretty new to this.. So this might be a stupid question.. But anyways... Code: Object [] options = {"Course I do!", "Not Really"}; int n = JOptionPane.showOptionDialog (frame, "Do you Understand?", "Easy Question", JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE, null, //do not use …

Software Development java
Member Avatar for stultuske
0
78
Member Avatar for nanosani

If I want to add a plugin which I have designed after I have written the software ... how should I do it. Suppose I designed a word pad ... and then I designed a spell checker ... how should I add the spell checker to my word pad to …

Software Development java
Member Avatar for stultuske
0
181
Member Avatar for ezkonekgal

This is what i did for the factorial assignment that we had.. but i have a little trouble in my recursionFactorial method.. can anyone help? tnx public class Factorial { public static void main(String[] args) { int index = JOptionPane.showConfirmDialog(null,"Would you like to compute\n" + "for the factorial of a …

Software Development java
0
94
Member Avatar for ebiz

I wondered if anyone could help. I am trying to use a FileChooser in java. I have got the dialog box to appear and can select the file, but the box just displays "opening" and the file name. how to I add to the code to make it actually open …

Software Development java java-swing
Member Avatar for javaAddict
0
217
Member Avatar for SoprtsFilmer

I am having a problem with a program. I have to create a program with about 8 different functions. Which reads in votes, finds the max, the min, prints the votes, prints the max prints the mid, finds the normalization, outputs how many are below .25 and above .75 and …

Software Development c++
Member Avatar for vmanes
0
363
Member Avatar for ihatehippies

Does anyone know how to convert an instance to unicode? I understand how to convert a string into unicode format u=unicode(s, 'ASCII', ignore), however this assumes that s is already a string and converting s by the str(s) method will kick back an error if s contains unicode unfriendly. The …

Software Development python
Member Avatar for ihatehippies
0
121
Member Avatar for mrkcse

hi all, I want to restrict user enter upto value 1000 in a datagridview cell editbegin event.How to check this after we set the following. dataGridViewValueUnits.BeginEdit(true);

Software Development
Member Avatar for mrkcse
0
111
Member Avatar for harrybern

Hi All I am trying to convert xml file to a text file. But my program creates an empty text file and does not copy any text from the xml file. Please help Thanks My code: Dim Doc As New XmlDocument Dim NodeList As XmlNodeList Doc.Load("C:\Temp\MyXml.xml") NodeList = Doc.SelectNodes("/response/TAG") Dim …

Software Development vb.net xml
Member Avatar for sierrainfo
0
208
Member Avatar for Tyrone.Wilson

The protection on code generated in NetBeans is great. untill it gets it wrong and you have an arbitrary line protected and it totally stuffs up your code and you can not longer work on your project!! Anyone know how to temporarily remove the protection, edit what you want and …

Software Development java java-netbeans
Member Avatar for Tyrone.Wilson
0
577
Member Avatar for darkyere

I have made this application where theres a tlistview whit image destinations in it. Then i got a timer to shift the picture. then ive addet a random function to shuffle through the picture. now what i want to happen is that the same picture dont get shown twice. So …

Software Development pascal
Member Avatar for darkyere
0
193
Member Avatar for dtaylor01

Can someone give me a example of a code inside a while/repeat loop so that it continues until you want it to stop using values of length, width, and depth.

Software Development
Member Avatar for dtaylor01
0
61
Member Avatar for deathnote

is there any way or code on how to detect pixelated parts or distorted parts of a picture?

Software Development
Member Avatar for deathnote
0
50
Member Avatar for mstrofdrgns

hey there , Im taking C++ courses in my collage (so ım a newbie) and they are teaching programing language a bit different from the examples in this forum. [code=c] #include <stdio.h> int main (void) { int x; int y; int z; int min; printf("enter 3 numbers : "); scanf("%d …

Software Development c++
Member Avatar for Ancient Dragon
0
142
Member Avatar for thanatosys

Ok I will post all of the code at the bottom, first thing however is the loop below starts at 0, then increments to 1, but never increments any further. [code=python] for counter1 in range(fieldlength): if self.__fields[counter1] == field: for counter2 in range(rowlength): #print self.__rows[counter2][counter1] if self.__rows[counter2][counter1] == value: return1 …

Software Development python
Member Avatar for thanatosys
0
162
Member Avatar for Lokolo

[code] void writingTransactionToFile(string transaction) { string temp; int test; ifstream myfile("transactionlog.txt"); ofstream tempfile ("tempfile.txt", ios::app); if (tempfile.is_open()) { tempfile << transaction; if(myfile.is_open()) { while(!myfile.eof()) { getline(myfile,temp); cout << temp; tempfile << temp << endl; } } else { cout << "Unable to open file."; } tempfile.close(); myfile.close(); } else cout …

Software Development c++ ios
Member Avatar for brechtjah
0
173
Member Avatar for MJFiggs

I have had this problem a couple of times but i am unsure of what it means. could someone tell me what the error message "non-lvalue in assignment" translates to in english, please?

Software Development c++
Member Avatar for MJFiggs
0
165
Member Avatar for ebiz

I currently have a table in oracle which I have created, but need to take a text file (which I have used a fileChooser for) and then use this file to update the records in the oracle database. How would I go about this? Thanks.

Software Development java oracle
Member Avatar for Ezzaral
0
160
Member Avatar for rhoit

I decided to learn the template any how.... but... Each level is giving me the trauma staring up with the domino one after another.. please help.... Problem is I use both printf(); and cout<< for the console output... now the problem lies that i can't just leave one of them.. …

Software Development c++
Member Avatar for StuXYZ
0
104
Member Avatar for mshefa

[code=cplusplus] #include <iostream> using namespace std; int CelsiustoFahrenheit() { float celsius; cin >> celsius; float fahrenheittemp; fahrenheittemp = celsius * 1.8 +32; }; int FahrenheittoCelsius() { float celsiustemp; float fahrenheittemp; cin >> fahrenheittemp; celsiustemp = (fahrenheittemp-32)/1.8 ; }; int main() { int choice; float celsiustemp,fahrenheittemp; cout << "1.Celsius to Fahrenheit" …

Software Development c++
Member Avatar for mshefa
0
2K
Member Avatar for Mujzeptu

As the title suggests, I am wanting to create a simple script for system administrators. When you run this script in a linux shell, it will ask you what you want to set the local systems hostname to (so the admin can type it) and then prompt the administrator for …

Software Development shell-scripting
Member Avatar for JeoSaurus
0
152
Member Avatar for carson myers

I like writing assembly in debug under command prompt in windows, mostly because I don't have to worry about compiler rules and it's a lot better for learning how the processor works more in-depth... moving things to and from the memory rather than using the stack, using memory addresses rather …

Software Development assembly
Member Avatar for carson myers
0
172
Member Avatar for CMacDady

I have been writing a Loan Program that requires at one point to read a .txt file and create an array from the contents. This part is nothing new to me. The problem I have is a single line of code and I cant figure out how to make it …

Software Development c++ file-system
Member Avatar for CMacDady
0
145
Member Avatar for Stefano Mtangoo

Hello Developers! I have been searching for long lame binding for python and have no way but need to learn ctypes to use lame_enc.DLL. For Now I need simple DLL with simple functions to play with. My Question is: Where can I get that simple yet safe DLL to play …

Software Development c++
Member Avatar for Stefano Mtangoo
0
154
Member Avatar for egolovin

Hi all i am working on a memory game and i am having problems inputing the data so it checks if a 3rd number is pulled up to ignore it thanks in advance [CODE]int card[6][6],total=0,value,test; srand((unsigned)time(NULL));//randomize timer for (int i=0;i<6;i++) { for (int j=0;j<6;j++) { value=rand()%18;//random test=0; card[i][j]=value;//sets the value …

Software Development c++
Member Avatar for egolovin
0
287
Member Avatar for davids2004

Write a program that calculates how much a person earns in a month if the salary is one penny the first day and doubles each day worked. [B]The program should ask the user for the number of days worked during the month[/B] and should display a table showing how much …

Software Development c++
Member Avatar for VernonDozier
0
152
Member Avatar for brechtjah

I have absolutely no clue why the following code works except for the following three characters: ç, à and è. It should rule out all non-digit characters from being written into an edit control. Because it let's those three pass trough I am forced to turn this: [code=cpp] if(!isdigit(editControl_Content[2])) [/code] …

Software Development c++
Member Avatar for brechtjah
0
169
Member Avatar for gjkeeler

Hi I'm trying to use Free Pascal for a simple problem - passing a function as a parameter to a procedure. This works fine in Turbo Pascal, but in Free pascal throws up the error: Wrong number of parameters in call to "<function name>" In all other respects Free Pascal …

Software Development pascal
Member Avatar for Duoas
0
305
Member Avatar for tpluscomb

I have been writing some quicksort code and testing it on integers and all seems to be going well. Now I'm trying to use my code to read in words from a file and quicksort them. I tried using my quicksort on an array of strings but that did not …

Software Development c++
Member Avatar for ArkM
0
922
Member Avatar for cbickle

Hey everyone im working on a class in java that does several things. it is supposed to take a sky condition either sunny snowy cloudy or rainy and a temp between -50 and 150 f. the default sky is sunny and temp is 70. it needs a method that converts …

Software Development java
Member Avatar for Antenka
0
901
Member Avatar for shubhang

Hi, I am new at java. I have made the search class of an address book program with the functions of add, modify and delete. Please have a look into the code. Please also explain the function of [code] e.printstacktrace();[/code] [code] import java.io.*; import java.util.*; class search { private String …

Software Development java
Member Avatar for Antenka
0
183
Member Avatar for laki234

i have created my code.But my division is not working for longer number.CAn anybody solve this. [ICODE] #include <iostream.h> #include <string.h> #include <stdlib.h> #include <sstream> #include <iomanip> using std::setfill; using std::setw; using namespace std; void subtract (struct head *oprnd1, struct head *oprnd2, struct head *result); void add (struct head *oprnd1, …

Software Development c++
Member Avatar for William Hemsworth
0
246
Member Avatar for laki234

hi i want to create huffman binary code which tales string as a input,identify Identify the set of characters appearing in the input string. Count the frequencies of these characters. According to these frequencies, generate a Huffman binary code .I have to do this in c++ using cursor.I dont knw …

Software Development c++
Member Avatar for MosaicFuneral
0
237
Member Avatar for Quendy

Here is my code, I want to get the coordinate of the mouse position: [code=cplusplus] #include <iostream> #include <string> //#include "WinDef.h" //#include "stdafx.h" #include <windowsx.h> #include <windows.h> #include <atltypes.h> using namespace std; int main() { DWORD pos = GetMessagePos(); CPoint pt(LOWORD(pos), HIWORD(pos)); ScreenToClient(&pt); return 0; } [/code] But I could …

Software Development c++ visual-studio
Member Avatar for vmanes
0
557
Member Avatar for lehe

Hi, I have an array. I put its definition in a .c file and externally delare it in a .h file like this: //.c file unsigned char jetmap[][]={ {0, 207, 255}, {0, 223, 255}, {0, 239, 255}, {0, 255, 255}, {16, 255, 239}, {32, 255, 223}, {48, 255, 207}, {64, …

Software Development c
Member Avatar for lehe
0
118
Member Avatar for alias120

Hi there, new to the community and first of all just wanted to say its great to be here. I'm rather new to C++ and i was having an issue perhaps someone could clear up for me. Alright, our instructor for a class im taking would give us simple programs …

Software Development c++
Member Avatar for davids2004
0
160
Member Avatar for lone_emu

I got most of the basics but i need help on getting all of the requirements right and EVERYTHING I NEED TO DO. Is there a way to replace certain chars without actually using str.replace();, especially punctuation? This is the assignment 1. You will create a class that will perform …

Software Development java
Member Avatar for Antenka
0
616
Member Avatar for nvodapally

Implement a recursive template function for the 2-way Mergesort algorithm. A Main program is provided that tests this function. Can anybody help me out with this question? this is the main function [code=cplusplus] #include <iostream> #include "Student.hpp" #include "MergeSort.cpp" int main() { const int n=10; { Student A[n]; Student tmpArray[n]; …

Software Development algorithm c++
Member Avatar for skatamatic
0
79

The End.