43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for MentallyIll5150

I am constructing a class "dequeint" of integers and using circular queue storage. I get my code to compile but its output is garbage? Please HELP! .h [code] #include <iostream.h> #include <stdlib.h> const int MAXSIZE = 10; typedef int NodeType; class dequeint { private: NodeType NodeArray[MAXSIZE]; int headi; //head in …

Software Development c++ queue storage
Member Avatar for MentallyIll5150
0
163
Member Avatar for tux4life

I'm fairly new to C++ programming and I would like to ask you a (maybe strange) question... The code below compiles correctly with both: - the latest MinGW-compiler - Borland C++ Builder Compiler 5.5 (from the free Command Line tools) However if I run the program (after compiling with the …

Software Development c++
Member Avatar for tux4life
0
368
Member Avatar for DomoCobra

I am trying to write a program that in it I have to search through some text and to find something and I dont know where to start I have some text in a String and for example I need to search through it and store everything between <title> and …

Software Development java
Member Avatar for DomoCobra
0
131
Member Avatar for Eyo

Hello All, I need to trigger an event on application.exit on windows application (vb.net).... how could I handle the applicatoin.exit event

Software Development vb.net
Member Avatar for Praniya
0
501
Member Avatar for lehe

Hi, I am trying to debug my shell script by bashdb. My script take as argument "--gdb", so I wrote [quote]bashdb myscript.sh --gdb[/quote] However, this way it will produce error that bashdb: [quote]unrecognized option '--gdb'[/quote] If I quote --gdb as [quote] bashdb myscript.sh '--gdb'[/quote] then I will end up with …

Software Development shell-scripting
Member Avatar for lehe
0
94
Member Avatar for kjetil4

Hi, Im trying to make a media player in Eclipse. Its just a simple thing not an advanced one but i cant get it to work. I have looked at some examples and tried to create a simular version. I could really use some hints on how to make it …

Software Development java java-swing
Member Avatar for kjetil4
0
618
Member Avatar for breatheasier

Hi, I'm trying to print two arrays to a file, these are pretty large. However I want to print them as two lists. This is an example of what my output is now: [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. …

Software Development python
Member Avatar for breatheasier
0
163
Member Avatar for thijo

Hi, I got this code from My trainner.He asked me to debug.I tried my level best to debug. but still it shows the K meanspoints class needed error. This alone i could not solve. I also tried with vector class, but it shows error. please help me. [code=java] /* Implements …

Software Development algorithm java
Member Avatar for verruckt24
0
115
Member Avatar for VernonDozier

I have a program that is supposed to draw circles every twentieth of a second every time a button is clicked. When the button is pressed, a function is called and a for-loop is executed 25 times. Within that for-loop, [ICODE]repaint ()[/ICODE] should be called. Within the [ICODE]paintComponent[/ICODE] function, random …

Software Development java java-swing
Member Avatar for VernonDozier
0
547
Member Avatar for dev_kc

I need to delete the row in access database through vb6.0... I am using the search button to search the records,and then i need to delete those from the database,using the delete button. In the same way i need to upadate/edit the info in vb form and update it to …

Software Development visual-basic
Member Avatar for debasisdas
0
114
Member Avatar for karthik.c

i want to print string(given as input) as number(o/p) and i did it in c using switch case .i want to do the same in python... wat if python provides switch case??n do we have equivalent of it in python?? Examle: input:three hundred and fifty(string) output:350(number)

Software Development python
Member Avatar for karthik.c
0
92
Member Avatar for DemonGal711

Ok, it's a little weird, but I'm basically trying to write a piece of code that would determine how many letters are different between two words, like cat and cot are off by one yet cat and dog are off by three. So, I have a vector that contains all …

Software Development c++
Member Avatar for DemonGal711
0
104
Member Avatar for bugmenot

Please correct the error in my program. When i run the program on turbo c++ 3, it output 3 times. Also When i enter more than 1 entry only the last entry is outputted. Also it is outputted 3 times. [CODE]#include<fstream.h> #include<iostream.h> #include<conio.h> class student { int rollno; char name[20]; …

Software Development c++
Member Avatar for r.stiltskin
0
187
Member Avatar for tmoney7566

I am trying to write an applet that receives 2 inputs from a user then opens a window and displays the 2 numbers that were input, along with a message of either "the numbers are equal", or "this number is the largest". My problem--my program never returns "the numbers are …

Software Development java java-swing
Member Avatar for tmoney7566
0
138
Member Avatar for BruenorBH

I am trying to create a thread to continually update the time in the textbox. The issue is how do you reference a textbox in that was created in the main section of the program? main.cpp [code=c++] #include <windows.h> #include <ctime> #include "resource.h" static bool keepRunning = true; static HANDLE …

Software Development c++
Member Avatar for BruenorBH
0
149
Member Avatar for christiangirl

Hello, I am getting 8 8 8 7 7 8 6 7 8 9 as output when I enter 1 2 3 4 5 6 7 8 9 0 into this program. It is supposed to sort the numbers one through 10. I debugged it, and believe the problem is …

Software Development c++
0
82
Member Avatar for gyagyus

Hi! I need to find out the size of an arbitrary file and then binarize it in C. I can do this with txt files, but how could I generalize it? This is how I get the size: [code] const char* filename = argv[2]; ifstream messageFile(filename); beginFile = messageFile.tellg(); messageFile.seekg …

Software Development c ios pdf
Member Avatar for gyagyus
0
108
Member Avatar for spec80

I have 2 classes, one of which also has a nested class: 1. Home.java (extends JApplet) 2. Away.java (extends JPanel) has nested class, private class ButtonListener implements ActionListener Now in Home.java I have a Vector ( called bankaccount) which i pass to the Constructor of Away.java ( I declared the …

Software Development java
Member Avatar for spec80
0
124
Member Avatar for Ossehaas

Hello all, I'm having a problem with sending a serialized object over a NetworkStream. I'm using the BinaryFormatter and the object is serialized and deserialized fine writing to a file. If I use a streamwriter to send text it works fine after the [B]Flush()[/B] [CODE] nStream = _tcpClient.GetStream() Dim sw …

Software Development vb.net
Member Avatar for Ossehaas
0
270
Member Avatar for jhonny_86

Hey everyone! I have a problem when I save using FileOutputStream, ObjectOutputStream... Well, there is no problem saving a file in my java application to specified folder e.g. "C:/folder/" (that is made with JFileChooser) but the problem is that I want to use MY self made icon (that has, lets …

Software Development file-system java
Member Avatar for JamesCherrill
0
566
Member Avatar for starzstar

Hi I want to print something like this to the standard o/p I am currently doing sys.stdout.writelines("%s %10s %10s\n" %(Folders['Table']['Table'][i]['name'],Folders['table']['table'][i]['data']['Place'],Folders['table']['table'][i]['data']['Age'])) but is not very well formatted how do I maintain column structure here ====================================================== Name Place Age ====================================================== John US 11 Mary UK 12 Mike US 14 How to do …

Software Development data-structure python
Member Avatar for jlm699
0
98
Member Avatar for marcux

Hi all! I can not find my way around disabling widgets in pygtk. Is there one way for all type of widgets to disable them? By disabling I mean not being able to edit an entry and it is "grayed out", or the same for a checkbox, combobox and so …

Software Development python
Member Avatar for marcux
0
356
Member Avatar for theod1987

Hey I am trying to practice some recursive function writing for a class I am taking and I am writing this code and I pull up an error that says ".class" expected in the bold, underlined line! [CODE] import java.util.*; /* This class is one in which the program will …

Software Development java
Member Avatar for theod1987
0
5K
Member Avatar for Dendei

hi i got an problem about reading my files i want to decide which file to open in the program not before anyone now a solution? :) [CODE] string fil; cout<<"which file? : "; cin>>fil; ifstream myfile(fil); [/CODE] cant see why this dont work...

Software Development c++
Member Avatar for Dendei
0
100
Member Avatar for meistrizy

Thanks in advance for your help. I am supposed to create a program that allows user input for a code. The program will then read the array and output the letter on the keyboard one character to the left of the inputted strings. I am first trying to get the …

Software Development c++
Member Avatar for meistrizy
0
166
Member Avatar for sonia sardana

[code] private void Form1_Load(object sender, EventArgs e) { string file = Application.ExecutablePath; file=file.Replace('\',''); string test = "\\"; int start; start = file.Length; int lPos; lPos = file.IndexOf(test, start); } [/code] First Question I want to ask dat y in variable file \\ are coming.how can I replace \\ by \ …

Software Development
Member Avatar for ddanbe
0
168
Member Avatar for cascade001

Hello , thank you all for reading my post i really appreciate your DaniWeb it helped me alot before and hope you guys and girls can help me again : i have a program that genrates a powerpoint slide file -it is name is "presentaion1"- now instead of go to …

Software Development visual-basic
Member Avatar for cascade001
0
139
Member Avatar for TriceD

Greetings all, I have some difficulties concerning threading and hope you guys could be of help. Let's say I have the following class: [CODE]Public Class myClass Public Sub closeSomething() End Sub Public Sub doSomethingElse() End Sub Public Function doSomething() As String Dim ret As String = "Blablabla" Dim ThreadX As …

Software Development vb.net
Member Avatar for Ramy Mahrous
0
143
Member Avatar for vtelebyteM

access events of form in UserControl i have 1)User control with one MSFlexGrid on it 2)Form to place user control 3)Some form's own control i dont know how many controls are there under form i have to place them in grid columns (eg. combobox in grid to provide its service) …

Software Development visual-basic
Member Avatar for vtelebyteM
0
150
Member Avatar for darked90

hi, i tried to create a program that takes in 8 inputs in an array, then grade the user and see if they passed or not (6 out of 8 or higher is a pass), but my program always tells me that i passed even if i get 0. other …

Software Development c++
Member Avatar for darked90
1
329
Member Avatar for Ineedhelpplz

Now i'm not asking for a complete easy answer or source, so please take the time to help me. I would like a very detailed explanation telling what to do, I have no idea. I am very confused by stacks, functions, pushing, popping, and all that. I am very new …

Software Development assembly
Member Avatar for Ineedhelpplz
0
572
Member Avatar for Naik Dhiren

hi, i am using datagridview on a form [binding with datasource] when i Add/Modify data in grid and if i don't move to next row in the grid then Add/Modify is not possible Why this happens ? pls guide me. Thanks in advance.

Software Development
0
68
Member Avatar for jeevsmyd

Hello friends.. I am an amateur programmer in TURBO C++ .. It is a very old version v3.0 ... I am beginner.. I wrote a very simple programme to find the largest ans smallest element in an array . . The largest element finding process is working finely .. I …

Software Development c++
Member Avatar for seanhunt
0
402
Member Avatar for jonathanasdf

Yeah. This was what I was wondering. Because I am initializing arrays using the new function, I was wondering if there was any way that I could catch a force close (clicking the X or using end task) so I could delete [] the array. Or maybe the array is …

Software Development c++
Member Avatar for fskreuz
0
133
Member Avatar for southernd0529

[code=cplusplus] #include <iostream> using namespace std; int main() { const double WEEKS=5; const double TAXES=.14; const double CLOTHINGEXPENSES=.10; const double SUPPLIESEXPENSES=.01; const double SAVINGSBONDS=.25; const double PSAVINGSBONDS=.50; //Declaration Section double hours, rate, taxes, grosspay, netincome, clothingexpenses; double remainingbalance, savingsbonds, psavingsbonds, suppliesexpenses; double finaltotal; //Input Section cout<<fixed<<showpoint; cout.precision(2); //sets the 'double' …

Software Development c++ perl
Member Avatar for southernd0529
0
132
Member Avatar for ARYT

I’m actually going crazy. After spending a lot of time working on Decision making (if-else, switch and …), I really cannot figure out the basic difference between iteration and decision making. In some problems, the tutor asks us to use “While” loop and “break”, instead of “if-else” and it makes …

Software Development c c# c++
Member Avatar for r.stiltskin
0
288
Member Avatar for Sohvkhan

As of this moment I have been switching back and forth between various iterations of my first foray into Python programming software, in any case part of my assignment calls for finding the count of even and odd numbers in a set of values that the user inputs, here is …

Software Development python
Member Avatar for sneekula
0
1K
Member Avatar for selvaganapathy

Hi, I am using VC++6, MFC Application I am having the member variable - CArray < Coordinates, Coordinates & > mCoordinates. Coordinates is a structure, contains x, y, and z. When i return reference to this object, there is no problem. but When i assign to some reference i get …

Software Development c++
Member Avatar for selvaganapathy
0
147
Member Avatar for Shaun Mahy

I have created a Microsoft Tabbed Dialog Control (SSTAB) with 5 tabs using VB6 When I run my program and click on Tabs 0, 1, 3 & 4 the entire tab control is shown and correct, however, if I click on tab 2, the width of the control is automatically …

Software Development visual-basic
0
57
Member Avatar for JP Romano

Hello all... working on a queuing project for about 10 users, which is pretty simple in theory. I have the tables and forms done (or close) but am not sure exactly how I'm going to get the data from an FTP server into my table. The table was set up …

Software Development visual-basic
Member Avatar for JP Romano
0
112
Member Avatar for k2k

hi, i am trying to read the file and parse the info to the text field of the awt gui form thing. i got the info out successfully by testing with the "system.out.pritnln(variable )" .. however, using the variable values wouldn't successfully set to the TextFeild for output. //the first …

Software Development gui java
Member Avatar for masijade
0
341
Member Avatar for olgratefuldead

Hello. I have written the code below but when I compile my program, I get Taxable Income Amount Filing Status Tax Amount ------------------------------------------------------------------------------- $50,000.00 null $0.00 I initialized my String output as null but I do not know how to initialize it otherwise. And I need my output to be …

Software Development java
Member Avatar for olgratefuldead
0
218
Member Avatar for schnautzr

Hi...I came here because I had problems posting at the C# Corner. Hopefully this forum will actually post my question instead of deleting it once I hit post.... I'm working on homework. Yes, I have given it quite some effort, from experimenting to researching. I've even looked everywhere for a …

Software Development api visual-basic
Member Avatar for schnautzr
0
259
Member Avatar for sciwizeh

Hello, this is related to [URL="http://www.daniweb.com/forums/thread177461.html"]the last thread I posted[/URL], but it is also different. I found something about ImageObserver with a google search and can't find much on it, I tried doing what the site on google did, but it didn't work with the simple test I wrote. here's …

Software Development java java-swing
Member Avatar for sciwizeh
0
689
Member Avatar for PhiberOptik

Hey, I am writing a program and it requires me to place a file on the desktop. I know in cmd prompt you can use %USERPROFILE% to do it. Is there java equivalent? Thanks PO

Software Development java
Member Avatar for PhiberOptik
0
126
Member Avatar for NickMalone85

I'm trying to create a program that identifies the subject and verb of a sentence. I use almost the exact same method to determine words that are nouns and words that are verbs, but when I call this method back-to-back it wont work the second time around. For example if …

Software Development java
Member Avatar for Ezzaral
0
88
Member Avatar for rastaberry

hello, I want to read lines into an array (I will later work with the array of pointer , so that is why I use it) well this is my code that doesn't work correctly, does anybody now why? I created a simple txt document for this which has only …

Software Development c++
Member Avatar for rastaberry
0
110
Member Avatar for bajanpoet

I'm trying to create a *.csv file using the records stored in a table. Searching the Net, I came across a code snippet that I modified for my use. The relevant code is [CODE] If dlg.ShowDialog = Windows.Forms.DialogResult.OK Then conn.Open() csv = dlg.FileName tw = New StreamWriter(csv) Dim sql = …

Software Development file-system vb.net
Member Avatar for 4advanced
0
2K
Member Avatar for EJD

Getting all sorts of "illegal start of expression" and "; expected" and "class expected" errors mostly pertaining to my extra methods (besides the main). Any takers? import java.util.Scanner; /** This program will calculate income tax based on a person's income. */ public class Income { public static void main(String[]args) { …

Software Development java
Member Avatar for EJD
0
861
Member Avatar for c_shaft05

[CODE]//Vars to know about Square* square; vector<Shape> shapes; [/CODE] I'm trying to add things that are shapes, or in this instance square (which inherits from shape), but whenever I call shapes.push_back(square), I get this error message: [CODE]draw.cpp:55: error: request for member ‘push_back’ in ‘shapes’, which is of non-class type ‘std::vector<Shape, …

Software Development c++
Member Avatar for c_shaft05
0
122

The End.