132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MarMcD

Hello, Can anybody please help me figure out what I am missing here? I need to to create an inventory program that holds multiple items. In addition, I also have to add the manufacturer and a 5% restock fee. The inventory also calculates the total value of the entire inventory. …

Software Development java
Member Avatar for sillyboy
0
124
Member Avatar for yang120

HI, im trying to write a quiz program, i don't understand why is my first part is not right...help plz!! # include <iostream> # include <cmath> using namespace std; int main() { char answer[8] = {'A', 'C', 'D', 'B', 'A', 'B', 'A', 'B'}; char input[8]; int correct=0, incorrect=0, position=0; for …

Software Development c++
Member Avatar for yang120
0
155
Member Avatar for FTProtocol

Just wondering if theres a function to get the window title of your browser. Like if you were to visit [url]www.myspace.com[/url] your window title would be: [url]www.myspace.com[/url] - Mozilla Firefox or w/e browser you happen to use. Is there a way to get the title of a window?

Software Development c++
Member Avatar for fskreuz
0
1K
Member Avatar for qajaq49

I'm writing a C++ program to use a MySQL database (which means I'm limited to the <string.h> include file because of usages in the <mysql.h> include file). In one function, the user will enter a 9-character string that will be stored in an array (AcctNum[10], to allow for the terminating …

Software Development c++
Member Avatar for qajaq49
0
12K
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 Avaviel

I'm having trouble with a school project. This project runs on commands inputted though the terminal. The problem I'm having is that when I type in the commands: "+a +b +c +d" (insert a, b, c, d) the program breaks at inserting b... so somewhere in the insert command it …

Software Development c++
Member Avatar for StuXYZ
0
84
Member Avatar for XWDxel

Hello guys, I'm new to this forum so let me know if there's something wrong with my message. I've recently bought a new computer: [Windows XP SP3 x32, Intel(R) Core(TM)2 Duo CPU, E7400 @ 2.80GHz, 1.60GHz, 2.50GB of RAM, Physical Address Extension]. After installing Turbo C 3.0, I tried to …

Software Development c
Member Avatar for Salem
0
170
Member Avatar for jdbarry

n this program, I am calculating the value of pi by simulating throwing darts at a dartboard. I have correctly coded the formula that calculates the values of pi, however, as seen in the code, I can't figure out how to calculate the average of the pi values that I …

Software Development java
Member Avatar for VernonDozier
0
277
Member Avatar for Dewey1040

I'm studying sequential set representation, and one of the only lines in the code that i cant figure out is this [code=C] #define MAX(a,b) (((a) > (b)) ? (a) : (b)) [/code] i get that MAX if a function with two operators, a and b but i dont really understand …

Software Development c
Member Avatar for Dewey1040
0
73
Member Avatar for lili.zdh

hi. i wanted to know whether is there any way to use vb and c# in one project simoltaneously or not? for example i write one form's code in vb and the other one's in c#. if there is a way then what is it ? thank u all:)

Software Development c# vb.net
Member Avatar for lili.zdh
0
177
Member Avatar for VinceAshbySmith

Hey all wonder if you can spot my mistake or point me in the correct direction. I'm new to Java applets after spending quite some time learning/using standard applications. This simple program is basically converting a standard application into an applet, but for the life of me i can't see …

Software Development java java-swing
Member Avatar for VinceAshbySmith
0
141
Member Avatar for RahulV

hi, i've created a Form1 which contains a long running process. But i want an feature that will help the user to stop the running process in between, when i click a Button or some other control. How is it possible?

Software Development visual-basic
Member Avatar for RahulV
0
159
Member Avatar for sid.coco

I am working on a project which collects the details of students, and stores it in the database, the data is in the form of excel sheets. Now I am unable to understand that how do I print only the information present in a cell for e.g. if I want …

Software Development
Member Avatar for ddanbe
0
110
Member Avatar for lesodk

Hi, i want to read some lines to an output text file in a loop. My problem is, that i want to start clearing the text file and then append to it in a loop. At the moment i use: ofstream file; file.clear(); file.open("book.txt", ios::app); for (map<string,Person>::const_iterator it = adrbook.begin(); …

Software Development c c# c++ file-system ios
Member Avatar for MosaicFuneral
0
244
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 musicman45241

OK I'm an older guy that is a fluent Fortran programmer, so don't hold that against me :o), I'm really fluent in VB, C, Java but am new to C#, I'm finding that I'm actually picking it up very quickly...ok, shutup and cut to the chase....I'm working with a windows …

Software Development c#
Member Avatar for musicman45241
0
150
Member Avatar for nedsnurb

Hi, I have written a number guessing game in java, where the user can select the number of guesses and the range of random numbers. It will display higher and lower and correct however it will not calculate when the number of guesses has been exceeded and the appropriate message. …

Software Development java
Member Avatar for javaAddict
0
107
Member Avatar for localp

[code=syntax] package testone; import java.io.*; public class fileread { private String[] a = new String[100]; String x; String sh; public void read(){ try { // Open the file that is the first // command line parameter FileInputStream fstream = new FileInputStream("test.txt"); // Get the object of DataInputStream DataInputStream in = …

Software Development file-stream file-system java
Member Avatar for stephen84s
0
98
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 smileyme74

hi guys: I just need help in how the srl instruction works in my program. I would like to know the interpretation. Like if I input de decimal number 8, which is 1000 in binary. I would like to know how it works. this is the code, it converts decimal …

Software Development assembly
Member Avatar for GDICommander
0
118
Member Avatar for number87

So basically I am creating a client/server kind of program. The client/user enters a question eg "Who are you? " The server part receives this and checks it with a txt file and returns eg "I am a computer" or "Answer not found" So when i compile and run my …

Software Development c++ client-server
Member Avatar for Comatose
0
356
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 comanighttrain

Problem: I have an enumerated type which has description tags in the following style: [URL="http://xml.indelv.com/data-binding-enum.html"]description tag tutorial[/URL] . I have a Windows SQL Server Database from which I am pulling the data (as integers then castine to Enums) which is then being bound to a datagrid. Instead of pulling and …

Software Development apple windows-server xml
Member Avatar for comanighttrain
0
152
Member Avatar for eapln

do any one brief out how to write script to list the mounted filesystems in solaris

Software Development perl
Member Avatar for eapln
0
95
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 StarZ

This is a assignment I have to do for school. The program is about attack and defend. This is how it suppose to look like when it outputs: [url]http://i43.tinypic.com/bew6q.jpg[/url] Mine is basically done accept the part where it says "Your Health is:" the health is suppose to be "health = …

Software Development python
Member Avatar for jlm699
0
126
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 firoz.raj

Can anyone tell me why this codes are not working. here is the code What i have written.Simple i want to modify listview data using modify button.Kindly find the attachment also. [code] Private Sub Command2_Click() Dim con As ADODB.Connection Set con = New ADODB.Connection con.Open ("Provider=Mirosoft.Jet.OLEDB.4.0;Persist Security Info=False; Datasource=\\asfserver\itp$\product_tabletest.mdb") Set …

Software Development listview visual-basic
Member Avatar for firoz.raj
0
103
Member Avatar for devilz

In my AccessDB the column monthDate having data type: “date”. In VB6.0 label.caption is the value which I need to save in monthDate. Like: Label1.caption= 2/24/09. Problem is how will I convert the label.caption as date value so that i can save it in monthDate column. I don’t want to …

Software Development visual-basic
Member Avatar for debasisdas
0
98
Member Avatar for devonte15

import javax.swing.*; import BreezySwing.*; public class PaymentDDJ extends GBFrame { //Declare variables for the window objects.// private JLabel purchasedprice; private JLabel name1; private JLabel downpayment; private JLabel interestrate; private JTextField nameField; private JTextField purchasedpriceField; private JTextField downpaymentField; private JTextField interestrateField; private JButton enter; private JTextArea balance; //Define the other instance …

Software Development java java-swing
Member Avatar for verruckt24
0
209
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 Teapot

Hi, Does a newly published application always need to connect to the internet to finalize installation? Is there any way around this? Thanks loads in advance

Software Development
Member Avatar for Ramy Mahrous
0
89
Member Avatar for amarjeetsingh

connection polling in struts based application i have a application,in which, required maximum 50 users when the database connection is happened then i have the requirement of connection pooling in which i create maximum 50 obects for the database connection how can i do it

Software Development java
Member Avatar for verruckt24
0
68
Member Avatar for crewxp

I had 2 assignment that were due tonight and I completed both of them in Visual Studio, but we're required to make sure they compile in linux before submitting them. I'm getting undefined reference errors when trying to compile Assignment3. Assignment2 consisted of marble.h and marble.cpp, runs fine. Assignment3 #included …

Software Development c++ unix visual-studio windows-server
Member Avatar for crewxp
0
140
Member Avatar for PinoyDev

good day to everyone! I just want to know regarding on how to connect to quickbooks using vb6.Ive worked on a company that uses quickbooks but i want to integrate vb to quickbooks. Please help Does anybody know.> God bless on this mother earth.

Software Development visual-basic
Member Avatar for PinoyDev
0
121
Member Avatar for devonte15

This is the question? The German mathematician Gottfried Leibniz developed the folling method to approximate the value of pi: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ...... Write a program that allows the user to specify the number of iterations used in this approximation and displays the …

Software Development java
Member Avatar for VernonDozier
0
1K
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 sonia sardana

[code] public partial class FrmNewUser : System.Web.UI.Page { SqlConnection conn = new SqlConnection("Data Source=SONIA-B408A4159\\SQLEXPRESS;Initial catalog=sonia;Integrated Security=true"); string query; SqlCommand cmd; public string name="Code"; protected void Page_Load(object sender, EventArgs e) { btnRegister.Attributes.Add("onclick", "javascript:return LenofPassword()"); } protected void btnRegister_Click(object sender, EventArgs e) { try { query = "Insert into Newuser values(@UserName,@Password,@FullName)"; cmd …

Software Development open-source
Member Avatar for sknake
0
527
Member Avatar for MJV

Im getting an "unknown selection" error on this code. Can anyone help me. I don't know what is wrong. My two text boxes both have English selected. blankl and blanlkw have both been initialized as decimals. if (bunitsCB.Text == "English") { switch (dieunitsCB.Text) { case "English": dielTB.Text = Convert.ToString(blankl + …

Software Development
Member Avatar for sknake
0
290
Member Avatar for comp_sci11

hi there!! i'm having problem with my winforms. because when i run it at a different computer's resolution it doesn't look like the one i made. like for example, i build it using a 1280X1024 hence it runs fine at using this resolution but when i run it on a …

Software Development
Member Avatar for sknake
0
425
Member Avatar for MJV

When i write case statements my last line is always: default: throw new Exception("Unknown selection"); how can I change this so a message comes up for the user to do something with the data he or she inputted so the default will not occur.

Software Development
Member Avatar for sknake
0
328
Member Avatar for sardarji

Hi, I am having trouble installing python 2.5/2.6 correctly on my linux box. I am trying to install in my home directory as I do not have root access. The poor python documentation in this regard makes it impossible to get this right. I want to install python in $HOME/local/lib …

Software Development python
Member Avatar for woooee
0
184
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

The End.