132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Taimoor Rana

// close an account with a given number public void closeAccount(int id) { } this is a bank project... a customer account is created(array). i would like to know how to delete an array? let say: account number 185649 is found in array[15]. then i would like to delete this …

Software Development java
Member Avatar for BestJewSinceJC
0
165
Member Avatar for tomtetlaw

The function, std::vector.push_back takes a paramater of the type: [const t &]. with t being the type that the vector was constructed with. What I need to do is convert [*this] to a [const t &]. Is there any way that I can do this? This is the code that …

Software Development c++
Member Avatar for tetron
0
102
Member Avatar for Majestics

[url]http://www.jformdesigner.com/doc/help/layouts/gridbaglayout.html[/url] Please visit this website, there is a image of a dialogue box , can anyone help me please making them. I dont want full code just some hints . Thank You.

Software Development java
Member Avatar for BestJewSinceJC
0
94
Member Avatar for vidit_X

Question by ~s.o.s~ Write a program which will perform the job of moving the file from one location to another. The source and destination path will be entered by the user. Perform the required error checking and handle the exceptions accordingly. (Intermediate) [code=c++]#include<fstream> #include<iostream> #include<cstdio> using namespace std; int main(){ …

Software Development c++ file-system ios open-source
Member Avatar for mrnutty
0
381
Member Avatar for needhelpbadly

I'm a beginner, and I was wondering how to write a java code for this: * *** ***** ******* ***** *** * I'm using DrJava. This is supposed to be in a diamond formation. Hopefully it posts that way. Thank you :)

Software Development java
Member Avatar for VernonDozier
0
108
Member Avatar for charmed14

So, I'm trying to create a Caesar Cipher using C++. It's supposed to be able to calculate the shift depending on what letter appears the most (which would mean that it's "e"). It's also supposed to have wrap around text, which I've tried to think of a way to have …

Software Development c++
Member Avatar for VernonDozier
0
104
Member Avatar for jonyb222

Good evening Daniweb, I have another idiotic problem which comes from making an arrival subclass out of Event. I have a few other subclasses of Event and they aren't giving me any trouble. I have tried to copy/paste/rewrite to eliminate any stupid typos. Arrival.h:7: error: expected class-name before ‘{’ token …

Software Development c++ oop
Member Avatar for jonyb222
0
558
Member Avatar for fares_silawi

Respected members: I've been asked to write and run an assembly code to print my name in the middle of a 80X25 Text screen such that, each character in my name will show different background, foreground colors also some characters will be blinking with intense light! the problem is that …

Software Development assembly
Member Avatar for Goalatio
0
3K
Member Avatar for Dasau

I have problem compile this. Line 23 having a problem ( possible loss precision, required int, found double). [CODE] public void actionPerformed( ActionEvent e ) { try { // call a function to get the value - if an error occurs, // display a message box and set focus to …

Software Development java
Member Avatar for BestJewSinceJC
0
476
Member Avatar for JustAnotherJoe

I can't figure out how to set a radio button within a filemenu. I can use myRadioButton.SetValue( True ) outside of a filemenu. What I'm trying to do is to automatically set a particular radio button dependent upon the last value used. [code=php] import wx class MyFrame(wx.Frame): def __init__(self, *args, …

Software Development python
Member Avatar for JustAnotherJoe
0
853
Member Avatar for cog_bn

Hi, I've got a problem with a program that boils down to strange behavior by the vector container class. It seems to not want to call constructors enough but calls destructors too many times: [CODE] #include <vector> #include <iostream> using std::cout; int constructor_count=1,destructor_count=1; class obj{public: obj(){ cout<<"C: "<<constructor_count++<<'\n'; } ~obj(){ …

Software Development c++ oop
Member Avatar for vijayan121
0
637
Member Avatar for greatunknown

What is the best way to add something to the nested vector of a multidimensional vector...I already have ints inside, lets say VECNAME[rowone][columntwo]...How can I add to columntwo???

Software Development c++
Member Avatar for greatunknown
0
83
Member Avatar for donelliewhyte

thanks for all the help that i have been getting but can anyone suggest how i may read a 4 character string from a text file then compare it to an input from the user then print the relating information

Software Development c
Member Avatar for Nick Evan
0
74
Member Avatar for programer411

Hi I am supposed to write that implements a simple version of the BucketSort algorithm the only problem is I have no clue what that is. Any tips and examples on this would be awesome Thanks

Software Development algorithm c++
Member Avatar for programer411
0
151
Member Avatar for p.jeet

Hello, I am runing this program this works if I dont delete anything in destructor. If I use delete variable name in destructor then it creates problem. It creates problem when destrctor get called while operator ovrerloading. I think It is trying to delete the memory that has already been …

Software Development c++
Member Avatar for p.jeet
0
93
Member Avatar for fallopiano

Here I have a simple range function that can use floats as steps or increments. In a time test (using Psyco 1.6, python 2.5, and a basic PC), the normal frange function was able to go up to 1,000,000 from 0, by .3 , and finish that in about 0.5929 …

Software Development mathematics python
Member Avatar for Gribouillis
0
576
Member Avatar for talha06

Hello to all, Despite I added all necessary .jar files to project, I always take boring exception warnings that say "class not found". I added the code and exception output below. I'll be so happy if someone can help me. Thanx in advance.. With regards, T ----------------------------------------------------- [CODE]protected void doGet(HttpServletRequest …

Software Development apache java session
Member Avatar for talha06
0
3K
Member Avatar for kavithabhaskar

Hello Folks: I had previously posted this problem and someone on this forum suggested that i used s[i] == 'a' || s[i] == 'A' .... but what I have here completely makes sense.. Can you please take a look at it ? [CODE] #include<iostream> #include<string> using namespace std; int main() …

Software Development c++
Member Avatar for kavithabhaskar
0
94
Member Avatar for alzamabar

Hi all, I'm an Assembly newby and am studying Jeff Duntemann's book on programming Assembly on Linux. As much as I love Assembly and I have to learn it if I want to do anything significant in IT since it's part of a journey, I am finding difficult to get …

Software Development assembly debian linux-kernel ubuntu
Member Avatar for Jeff Duntemann
0
275
Member Avatar for sexyzebra19

My program keeps crashing and I can't see why, if I remove the line [code=php] myfile << data_[i+ndim_*j] << " "; [/code] then it runs OK...but can't see anything wrong with this line? [code=php] void Matrix::WriteToFile(std::string fname) const { ofstream myfile; myfile.open ( (fname+".txt").c_str() ); for (int i = 0; …

Software Development c++
Member Avatar for sexyzebra19
0
102
Member Avatar for lionaneesh

Hey respected users and developers, I am a newbie to this pool of c... I am just 14 yrs old.. Plz send me free link to plearn pointers in c.. i hav downloaded many books but all of tem are useless.. The language used in the book is so difficult …

Software Development c
Member Avatar for jonsca
0
169
Member Avatar for savi_karthika

Dataenviroment designer is not working? do anyone know the solution. pls help me. It was working earlier but now whenever i run a report i am getting error message "failed getting rowset from current datasource"

Software Development visual-basic
Member Avatar for vb5prgrmr
0
210
Member Avatar for piyakka

I am very interested in knowing how i might code a function using the DateTimePicker control to see if i can to check and see if and when any date and day of any given year falls on a sunday so that the function will force a radiobutton.checked from one …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
108
Member Avatar for gerhardjl

Hi, How can I make a button transparent (tsxButton) in order for it to appear 'invisible' on the target application? The tsxButton must still retain its standard properties. This means that if the user know where the button is on the application, moving his mouse on the area, the user …

Software Development pascal
Member Avatar for gerhardjl
0
98
Member Avatar for sexyzebra19

My function is: [code=php] void Matrix::WriteToFile(std::string fname) const { ofstream myfile; myfile.open ("std::string fname.txt"); for (int i = 0; i<data_.size(); i++) myfile << data_[i] << " "; myfile.close(); } [/code] and then in the main I have A.WriteToFile("hello"), but it's saving it as fname still? Can anyone please tell me …

Software Development c++
Member Avatar for sexyzebra19
0
338
Member Avatar for bigdog1

Write a program that will read in 10 test scores. Print out all 10 scores, then print the highest score, and then the lowest score. Ok i got this so far but i do not know how to print the highest or lowest. [code] #include<iostream> using namespace std; int main() …

Software Development c++
Member Avatar for Nick Evan
0
260
Member Avatar for polska03

Hi can someone help me. I sent this question in another forum, but noone is helping. This is the link please hlep! http://www.dreamincode.net/forums/showtopic158550.htm

Software Development java
Member Avatar for javaAddict
0
84
Member Avatar for ROBIN8719

My problem is that..... whenever i try to run a graphics program in c on windows vista,it does not since it is not supporting fullscreen mode. please tell how could i run graphics pro do i need visual c???

Software Development c windows-vista
Member Avatar for peter_budo
0
138
Member Avatar for Danny_501

Hi everyone, I'm having a problem with understanding the workings of an enhanced For loop. This code is meant to iterate through an array of ints and print out the char value of that int. But it seems to start on the first number in the array, making the program …

Software Development java
Member Avatar for Danny_501
0
208
Member Avatar for pixelerator

i am stucked in this problem can any one give me an idea ..

Software Development c++
Member Avatar for pixelerator
0
114
Member Avatar for AnnetteM

Hello, I would like to add a six-line header to a data file for many files in a loop. However, I need to add the header to a data properly first... My inclination (as a python novice) is to write the header and append the data to the header. However, …

Software Development python
Member Avatar for AnnetteM
0
2K
Member Avatar for smcp

Hey guys, I'm new to this whole programming deal and have browsed around these forums here or there to learn a few things. My latest assignment is to create a working tic tac toe game, including functions to initialize the game board, print the board, check the game status, checking …

Software Development c++
Member Avatar for Salem
0
121
Member Avatar for Cory_Brown

I finally figured out how to use the settings.settings file to create user settings that would persist when reopening my application. I have several text boxes that once completed by the user I would like to retain their data when the app is reopened. This part now works, unfortunately a …

Software Development
Member Avatar for Cory_Brown
0
118
Member Avatar for HBK_100

[code]#include <conio.h> #include <stdio.h> #include <windows.h> void display(void); void menu(void); int main() { char username[9]; int password=0,x=1; display(); do { printf("\n\t\t\tPlease enter your username:"); scanf("%s",username); printf("\n\n\t\t\tPlease enter your password:"); scanf("%d",&password); //problem if (username == 'udental' && password == 1987) menu(); else { printf("\n\n\t\t\t YOU HAVE MADE AN INVALID INPUT"); printf("\n\n\t\t\t …

Software Development c
Member Avatar for jonsca
0
110
Member Avatar for jonyb222

Good afternoon Daniweb, I have a simple (and probably idiotic) problem today, I have a simplistic program that simulates a Train station, trains come in, they go into a stationDock and come out after a while. The stationDocks are an array of trains, either pointing to a train or being …

Software Development c++ queue
Member Avatar for jonyb222
0
3K
Member Avatar for ghanathe

Hiiiii!! Can any one help me, how to retrieve information of employee in text boxes if i enter employee number in c# using data adapter and also why we use data adapter? plzzzzzzz.... Thanking You!!!

Software Development c# display
Member Avatar for kvprajapati
0
6K
Member Avatar for jonnod123

Hi, I'm using C#, Access 2007 and VS2008 to write a windows app. I have populated a datagridview from a query (taking data from 2 tables). When the user clicks "Save", I want to be able to save any changes made in the datagridview to the database. Only one column …

Software Development
Member Avatar for kvprajapati
0
185
Member Avatar for digiguy

hello all; i'm having a problem with my output. the program that i'm writing is supposed to take a number input than display the output as asterisks. so if the input is 4 the output should be: * ** *** **** however, i'm just getting a single column of asterisks. …

Software Development c++
Member Avatar for digiguy
0
95
Member Avatar for CollinRyans

Hi, what I am trying to do is simple: I just want to execute something depend on what the user presses. Here's the pseudocode: [CODE]if(user presses 1) { do this } else { do that }[/CODE] ps. I was reading about [CODE]java.awt.AWTKeyStroke;[/CODE] and is that what I need to use? …

Software Development java
Member Avatar for kvass
0
86
Member Avatar for tig2810

Hi all I'm having some trouble with EF and SQL 2008 default values. Firstly, I have a column called 'CreatedDate' and the default value in SQL Server is getdate(). If I add a field in SQL server this works fine. I also have a column called Guid and the default …

Software Development sql
Member Avatar for tig2810
0
200
Member Avatar for rwill357

I was wondering if there were away to repeat the same test multiple times and average the time. The code works fine [CODE] #include <cstdlib> #include <ctime> #include <iostream> using namespace std; void PrintArray(int* array, int n); void QuickSort(int* array, int start, int end); int partition(int* array, int pivot, int …

Software Development algorithm c++
Member Avatar for niknailer
0
132
Member Avatar for bob10

Hi guys, I have a problem with arranging my components in a GridBagLayout. The frame is 600x600. Inside it, there are two pairs of (Label,TextField). They are not where I want them to be. What I would like is to have them all at the top of the frame, one …

Software Development java java-swing
Member Avatar for bob10
0
150
Member Avatar for bd338

Hello everyone! I, once again need your help :). I've expanded my hanging boot loader, to a hello world boot loader. Or, at least that's what it's supposed to be, when I get it running. This is my Assembly code: [CODE] [bits 16] [org 0x7c00] message db "Hello, world!", 0 …

Software Development assembly
Member Avatar for gerard4143
0
216
Member Avatar for correaj

If anyone could give me a pointer here I would be grateful. I am making a public function that takes to container objects called bags and a file name in their arguments. I'm trying to create a loop that would extract the first line of doubles in a file and …

Software Development c++
Member Avatar for correaj
0
877
Member Avatar for hey joe
Member Avatar for hey joe
0
70
Member Avatar for hondros

Hello everyone, my latest project is this: 1) Ask user to input a function 2) Plot said function Well, I figured out how to strip the function into two parts, input a number, and evaluate the function. That all works fine outside of a defined function I created. The trouble …

Software Development python
Member Avatar for hondros
0
115
Member Avatar for achiman

Please can anyone tell me if it is possible to write a program that allow multi client interaction with a server. I am new to Java so any help will be appreciated. Thanks

Software Development client-server java
Member Avatar for achiman
0
259
Member Avatar for littleonetwo

Hi, Im in bit of a jam here and I can't seem to figure this out. Ive been looking for a little over a few hours for an answer to this but I can't seem to find a straight answer. Well Im in my advanced portion of my class and …

Software Development
Member Avatar for littleonetwo
0
194
Member Avatar for logicmonster

I finished this last night and it almost works perfectly aside from one minor thing that I can't quite figure out. [CODE] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { int playerscore, computerscore; int turnscore; int dice; char input = 0; bool turnover, gameover; srand((unsigned)time(0)); playerscore …

Software Development c++
Member Avatar for logicmonster
0
116
Member Avatar for miles.85

Here a simple code which I have to add on project: [code] import java.io.*; import java.util.Scanner; public class Ana { static public void main(String[] args) { try{ File gecicidosya=new File("D:\\B.txt"); File sdosya=new File("D:\\A.txt"); Scanner oku = new Scanner(sdosya); BufferedWriter yaz=new BufferedWriter(new FileWriter(gecicidosya)); while(oku.hasNextInt()) { System.out.println("while started"); oku.nextInt(); System.out.println("file readed"); } …

Software Development java
Member Avatar for miles.85
0
286

The End.