132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for titan5

I need to create a list which contains objects of a particular class. I am having problem in retrieving the objects back from the list. Here is my code for insertion into list- import java.util.LinkedList; import java.util.ListIterator; public class listchek { int i; String name; public listchek(int k, String n) …

Software Development java
Member Avatar for NormR1
0
167
Member Avatar for pa_bruce_fan

I have a text file that I am reading into my program. The data looks as follows: Last Name, First Name, Current Salary, Raise Percentage iller Andrew 65789.87 5 Green Sheila 75892.56 6 Sethi Amit 74900.50 6.1 Ge Robert 81990.23 3.3 Smith David 43221.33 5.5 Jones Mary 33345.12 2.3 Goodman …

Software Development c++
Member Avatar for daviddoria
0
107
Member Avatar for kuchick32

I'm supposed to write a program in C++ to show someone a grade criteria. I need some major help with it! I'm so so so confused! :( here is my assignment. please help me! A >= 90 B >= 80 C >= 70 D >= 60 F < 60 The …

Software Development c++
Member Avatar for Akill10
0
129
Member Avatar for IDC_Sharp

i made a browser with Favorites and the Favorites save in XML file. when i open the program and i put there some favorites its open the program realy slow like after 9 - 15 seconds/ and i delete the all favorites its open like its should (1, 2 seconds) …

Software Development xml
Member Avatar for IDC_Sharp
0
83
Member Avatar for nigelmercier

I'm writing a function that stores an integer as separate bytes in an array, see [URL="http://www.daniweb.com/forums/thread25312.html"]here[/URL]. I've got to the part when I detect a button push, and increment the digit over the cursor. If this digit gets to 9, the next push should reset it back to 0. The …

Software Development c
Member Avatar for mitrmkar
0
346
Member Avatar for ALI SHER

can we make the maze game using header files of conio.h and iostream.h

Software Development c++
Member Avatar for aakash juneja
0
950
Member Avatar for JDuch

Somebody was so kind as to indicate to me an interactive Python learning program. I started using it, but lost the URL. I cannot find it back in the threads i started. Can this Python forum member remember me of his suggestion? Thanks

Software Development python
Member Avatar for JDuch
0
145
Member Avatar for RaoxFaello

Firstly i know your gonna say "OMG this guy just want to make his homework using our help" "Wow, this guy is so stupid not knowing this" Yes, i dont know this.. and yes this is my homework.. i'm not asking a direct answer atleast just teach me while pointing …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
103
Member Avatar for eduard77

Here I have another one: The program that should first read in two values from the keyboard, a starting value and an ending value. It should sum all the even numbers between those two values including the endpoints and display the sum. If the ending point is less than the …

Software Development c++
Member Avatar for Ancient Dragon
0
85
Member Avatar for LianaN

Hi! I have a code that generates the table with 6 columns, and 6 textfields. Textfields are used to filter the table, and they are assigned to columns. Everything works normally, but looks badly. Attached you will find a picture to see what I mean. I don't like that textfields …

Software Development java java-swing
Member Avatar for LianaN
0
765
Member Avatar for nix_xin

(BEGINNER) problem: i need a program that reads a 4 digit integer and adds all the digits in the integer. example: input=1234, output==10

Software Development java
Member Avatar for nix_xin
0
321
Member Avatar for Darkicon

I'm making a program that allows me to control my other computer from this one by encoding and streaming the commands I enter into a console to the destination, which then decodes it and does what the command says and encodes the result and streams it back, then my side …

Software Development vb.net
Member Avatar for bbman
0
149
Member Avatar for november_pooh

hi... i want to play wav file on my form. ex : media file on windows -> C:\WINDOWS\MEDIA\TADA.WAV how can i do this?? please help me thanks. best regards :)

Software Development visual-basic
Member Avatar for l0oky
0
206
Member Avatar for BryantFury

a 'challenge' question by my teacher asks me to look in my C++ book, and do a question. it asks me to: write a function powfun() and make it raise an integer number passed to it to a positive integer power and returns the result to the calling function. it …

Software Development c++
Member Avatar for BryantFury
0
121
Member Avatar for nigelmercier

I'm working on a PIC project, and my brain has almost exploded! I'm hoping that by writing down my problem, that the answer will come to me, but please feel free to help! Background (mostly irrelevant to an outsider): I'm storing a number in a variable (say r, an unsigned …

Software Development c storage
Member Avatar for nigelmercier
0
214
Member Avatar for sadaka

Hello again everyone, How are you all doing? I am an fairly familiar with C/C++. I have five books on my shelf about programming in C/C++ but none could provide me with a satisfactory solution to this one problem. I would like to graduate from the Hello World project in …

Software Development api c++ opengl windows-api
Member Avatar for sadaka
0
112
Member Avatar for sakthi@daniweb

[code=c] #include<stdio.h> main() { int a=5; printf("%d,%d%,d",++a,++a,++a); } [/code] the output of this is 8,7,6 instead of 6,7,8 y it is so...

Software Development c
Member Avatar for WaltP
0
72
Member Avatar for ÜnLoCo

hello i have a datagridview (Dg) with 7 columns. i have a RowValidated event which tests if the validated cell is the first (index = 0) then sets the focus on the third cell with columnIndex = 2 BUT the cell that's getting focus after the row is validated is …

Software Development vb.net
Member Avatar for ÜnLoCo
0
183
Member Avatar for Dorayaki

Hello, I'm just looking for an answer or idea. I plan to connect vb.net to mysql (which is done) and also the PHP connected to the mysql. But I'm confuse with something. VB.NET is use for offline things (which people will come to store and buy), but PHP is buying …

Software Development mysql php vb.net
Member Avatar for samuel_1991
0
385
Member Avatar for samuel_1991

Hi, I would like to know how to write a "Console application" in dll form for a patch installer so that I could call it from the installers and find out the installation of a program. I have created a VB.NET class project and checked the COM Interoperation or sort …

Software Development vb.net
Member Avatar for samuel_1991
0
1K
Member Avatar for KrazyKitsune

[code=syntax]from __future__ import division from math import sin from math import cos from math import tan from math import radians a = raw_input("enter 1 for sin, 2 for cos, 3 for tan") if a == 1: degree1 = int(raw_input("Type in angle value: ") radian = radians(degree3) sin = sin(radian) print …

Software Development python
Member Avatar for Stefano Mtangoo
0
622
Member Avatar for jyothics23

Hi, I try to communicate with equipment through serial port. It is slightly order equipment so it requires to send command in a specified format ends CHECKSUM (Like start with 'STX' and end with 'ETX' etc and the command looks something like '020T025F00R000000000000000'). [B]Issue with Python:[/B] For my case they …

Software Development pascal python
Member Avatar for Tech B
0
2K
Member Avatar for embooglement

I just finished writing a string class that includes functions for generating random string (why I don't know, as I have never really needed random strings before). Basically the user can pass the function an enum citing what kind of string that'd like (i.e. AllUpperCase or AllNumeric). There is also …

Software Development c++
Member Avatar for mrnutty
0
137
Member Avatar for el_vala

I have been doing some research on the net, and found many ways of doing this, but it all leaves me with the same question. Wich one is the better to use? What i want to do, is a simple yet stable configuration system for any of my projects that …

Software Development app-store asp.net vb.net xml
Member Avatar for codeorder
0
436
Member Avatar for neo_31591

hey am creating a quiz(examination) which randomly selects questions from a database,and each question has 4 options,out of which 1 is correct.....also i need to show the final result of the number of ques correctly answered,wrong and those not attempted.... im at loss at MySql...don't know how the design of …

Software Development database-design java
Member Avatar for nohup
0
120
Member Avatar for asa88

I trying to read in from a file but getting runtime errors can some one help find the .txt file as an attachment [CODE]#include<iostream> #include<set> #include<stack> #include<queue> #include<algorithm> #include<fstream> using namespace std; int main() { const int size= 7; char input[size]; fstream nameFile; nameFile.open("words.txt"); if(!nameFile) { cout<<"error cannot open file"<<endl; …

Software Development algorithm c++ queue
Member Avatar for NathanOliver
0
2K
Member Avatar for challarao

Hello! I have a small doubt about formal specifiers. I have seen in many programs of printf statements,writing "%2d".What is the use of writing an integer before d or any formal specifiers. Thanks in advance

Software Development c
Member Avatar for creeps
0
101
Member Avatar for creeps

Elaborating on the title, I'm trying to complete an exercice in K.N. King's [i]C Programming: A Modern Approach[/i] which requires me to accomplish the task in the quote below. My idea works, but the program does not return control to the OS. I've nailed the problem down to the do/while …

Software Development c
Member Avatar for Narue
0
158
Member Avatar for gunneronaspooky

Okay...I'm back again for the next program...here's what i have so far [CODE]print "Euclid's Method" a= raw_input(("Enter first number ")) b= raw_input(("Enter second number ")) def euclid(a,b): while b != 0: a, b = b, a%b return a[/CODE] My question is, how do I get it to print out the …

Software Development python
Member Avatar for gunneronaspooky
0
144
Member Avatar for CodeLearner

Imports System.Data.OleDb Public Class frmLogin Dim cn As OleDbConnection Dim cmd As OleDbCommand Dim add As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\User\Documents\Visual Studio 2008\Projects\DietTrainer\DietTrainer\DT.mdb.accdb" Dim dr As OleDbDataReader Dim SID As String = "admin" Dim SPSW As String = "admin" Dim LoginID As String = Me.txtID.Text Dim LoginPassword As String = Me.txtpsw.Text …

Software Development open-source vb.net visual-studio
Member Avatar for lolafuertes
0
333
Member Avatar for kch1973

I have completed a program and it compiles fine. When I run it, it seems to run fine. The only thing is that I am missing element data for two of the objects I am printing out in the text area of this JFrame. I an array called printerProduct[5], that …

Software Development gui ide java java-swing printer
Member Avatar for kch1973
0
144
Member Avatar for krishniha

hey guys, i am looking for new topics related to vb.net (DATABASE PROJECT). can anyone help me in this research??

Software Development vb.net
Member Avatar for lolafuertes
0
99
Member Avatar for Philip435

Hello Im going to make a program that is much like a calender. I havent started coding anything yet because I would like some advice on how to make the program "alive". - I wont it to be able to start up automatically when windows starts. - Run in the …

Software Development java
Member Avatar for mrnutty
0
93
Member Avatar for atticusr5

Hello, So I am just starting to really use Make files in Linux, and I am getting the following error when I try to "make": c++ -c main.cxx In file included from main.cxx:2: LinkedList.h:39:26: error: LinkedList.cxx: No such file or directory make: *** [main.o] Error 1 Here is my make …

Software Development c++
Member Avatar for atticusr5
0
113
Member Avatar for glenak

I know how to write messages and save it as a .txt file (using Input/Output streams). What I want to do now is to be able to click a button and have notepad open the .txt file. How can I do this?

Software Development java
Member Avatar for glenak
0
137
Member Avatar for TahoeSands

I have written some code that compares two "BufferedImage" rectangles by doing a pixel by pixel comparison. These BufferedImages are of "playing cards" with rounded corners so I would like to exclude those corner areas during the image comparison process since the varied background could cause the comparison to be …

Software Development image java
Member Avatar for TahoeSands
0
90
Member Avatar for Mossh

Hello all, I dont know if this is the right area but anyway Heres my situation: I have a software that updates 2 devices firmware's, the software communicates with the devices via Serial Cable(RS-232) , my problem is: I only have 1 serial(COM) port in my motherboard, and i need …

Software Development c++ pc-peripheral
Member Avatar for Mossh
0
190
Member Avatar for TahoeSands

I am writing a Java application that "passively" interacts with a Windows Desktop Application. What I mean when I say that it interacts "passively" is that I perform screen captures to determine the location of "buttons" displayed by this Desktop Application and I use "absolute" x and y coordinates to …

Software Development java oop
Member Avatar for TahoeSands
0
542
Member Avatar for Delu:sional

I just installed eclipse and Pydev. but I can't I can't add Python 2.7 as the interpreter for Pydev. I couldn't find the interpreter file at 'mac/usr/local/bin/' I only see /python 3.1 and some others. Is it because of I have installed 3.1 and 2.7 both? Even then I click …

Software Development python
0
97
Member Avatar for titan5

I am given dates in string format- Eg. 11/09/2010. (11-09-2010 not allowed) How can I convert it into integer dates? I am given two such dates in string format only and I want to find the no of days between them.

Software Development java
Member Avatar for titan5
0
147
Member Avatar for David_Omid

Hey guys, I am making a calculator. It has two "screens", one showing input and one showing output. When the equals button is pressed on the calculator, the calculation is shown on the output screen. I have come across this problem: Let's say I type into the input screen "10" …

Software Development c++
Member Avatar for David_Omid
0
105
Member Avatar for udev

Hi! In every iteration of reading a file I populated a dictionary and appended it to a list . A part of that list looks like this : . . . Key Doc ID freq line number {'Emin': ({'file13.txt': 1}, {'Emin': [38]})} {'Gun': ({'file13.txt': 2}, {'Gun': [43, 71]})} {'I': ({'file13.txt': …

Software Development data-structure python
Member Avatar for udev
0
130
Member Avatar for tomprice0189

Hi, I have a problem with my form application that when I close it (using cross in top right), the whole program crashes indefinately. This has only recently become an issue when I introduced some invoke code for updating a label and picture box on my form I have an …

Software Development c c# c++ multithreading webcam
Member Avatar for Diamonddrake
0
985
Member Avatar for tennis

I got run-time error in the following simple code, but I don't know what's the problem. can any one help? [CODE] #include "stdafx.h" #include<iostream> using namespace std; void reverse (char * source) { int i=0, j=strlen(source)-1; while (i<j) {char temp=source[j]; source[j]=source[i]; source[i]=temp; i++; j--; } cout<<source<<endl; } void main() { …

Software Development c++
Member Avatar for rje7
0
136
Member Avatar for eduard77

Hello I am reather new in c++ and I try to solve some exercises but i got blocked. Can anyone help me with this? The program should read in values until a negative value is read in. It should determine the largest value that was read in and display that …

Software Development c++
Member Avatar for Ancient Dragon
0
83
Member Avatar for yamini222

Hi all, I wrote a function. The aim of it is ; If the formula is "C12H22" and the str11 is "+H1" then the result should be "C12H23" or if the str11 is "-H1+O1+C1", then the result should be "C13H21O1". It is working all the time but it fails when …

Software Development
Member Avatar for yamini222
0
144
Member Avatar for matkod

Hi, Im trying to create a canvas as a background but i can manage to work =/ I create a window with the text and the size of de image, but the image is not there can someone help me? thanks. [CODE]import Tkinter as tk import tkMessageBox class Janela: def …

Software Development image python tkinter
Member Avatar for woooee
0
7K
Member Avatar for malvi

Hello everyone, I have a problem, I have to get value from edit box, store it in variable and based on that value need to update another edit box. Please tell me how can i get inter value, which is entered by user in visual c++.

Software Development c++
Member Avatar for Ancient Dragon
0
229
Member Avatar for bonskiee

#include<iostream> using namespace std; int main() { int x,inpt,ctrl; x=1; ctrl=1; cout<<"Enter a number: "; cin>>inpt; while(ctrl<=inpt) { while(x<=ctrl) { cout<<x<<" "; x++; } cout<<"\n"; ctrl++; x=1; } system("pause"); } can u please help me to invert this triangle?

Software Development c++
Member Avatar for prvnkmr449
0
129
Member Avatar for fire_

Hello. I'm writing codeing progam. It reads from file using fstream and then converts simbols to ascii, changes ascii, converts ascii to symbols and writes them to file. I tried to code .txt file with it. It worked perfect. But then i tried to convert .bmp file and then i …

Software Development c++ image
Member Avatar for fire_
0
159

The End.