132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for riotburn

I am trying to automate my program for Simpsons rule. Finally got it running thx to here, so now I'm trying to have it ask the user for all the variables on run. Everything is good except for inputting the function to integrate itself. After entering the function i get …

Software Development c++
Member Avatar for jonsca
0
1K
Member Avatar for emihamburg

Hello! I've a main GUI class from where I create 2 others JPanel (PanelA and PanelB for example). In the first panel there are a JComboBox (JCA) and a Jlabel (JLA) and in the second panel there are a JList (JLB) and a JLabel (JLB). I'd like to have 2 …

Software Development gui java
Member Avatar for javaAddict
0
98
Member Avatar for Noliving

The program I'm trying to create is one where it asks for an amount of money, lets say 10 bucks. It will take the input and then randomly come up with an amount of change that equals the input. So for example if you were to enter 10 bucks it …

Software Development python
Member Avatar for lyndon enero
0
91
Member Avatar for jemz

hello please help me on this project form3 ..everytime i always add data it always already exist please help me to solve my problem..heres my code [code] Option Explicit Public con As ADODB.Connection Public cmd As ADODB.Command Public mch_rs As ADODB.Recordset, index As Integer, m_mchno As String Public sql As …

Software Development open-source visual-basic
Member Avatar for kinwang2009
0
87
Member Avatar for sealxlion

Can someone give me a simple coding/alternatives than the one I use because I think mine is just too long.. [CODE]import java.io.*; public class MidtermGrade { public static void main(String arg[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int qz1,qz2,qz3,as1,as2,wexm,hoexm; double aveqz=0,aveas=0,aveexm=0,clstnd=0,mdtrm=0; System.out.print("******************************\n"); System.out.print("Enter Quiz1: "); qz1=Integer.parseInt(br.readLine()); System.out.print("Enter …

Software Development java
Member Avatar for jwenting
0
173
Member Avatar for daniellamae

hi..! i have a project that we need to research a java source code or C source code of the game LUCKY 9.. we are not required to make the game but we are required to research a "ready made" code for it... dont worry that i may not learn …

Software Development java
Member Avatar for jwenting
0
681
Member Avatar for gingerfish

is it possible to write a text in a different font and color in one textarea ??:?: thanks in advance ^^

Software Development java
Member Avatar for jwenting
0
89
Member Avatar for ssmokincamaro

Hey everyone, I'm fairly new to python and have hit a brick wall in a program I'm writing. I need to read in a text file containing values (No problems here) the text file looks like this 10, .25, .26 12, .44, .34 4, .22, .56 The numbers 10, 12, …

Software Development python
Member Avatar for snippsat
0
146
Member Avatar for zigpy_siva

I have created small application(a part of payrole process), for my personal use in VB 6.0, which takes in the employees details, their salary details, employeers details, ect. and computes some othre values. the purpose of this application is to print some forms(4 monthly, 2 half yearly and an anual …

Software Development printer visual-basic
Member Avatar for SANJAY.DESHMUKH
0
186
Member Avatar for richardtreier

I have problems running a compiled program with win32print and win32ui (to print an image) on a different computer. what shall i do?

Software Development python
Member Avatar for snippsat
0
81
Member Avatar for abarlowa

ok I am trying to convert find cost per sq yd. in $$.$$ format. I have all the coding correct except it has more than two decimal places. Here is my code: [CODE]//delcare const const int number = 9; //declare variable double length; double width; double area; double cost; double …

Software Development
Member Avatar for abarlowa
0
158
Member Avatar for koolsamjust4u

Hi Friends .. need a small help can anyone help me in showing how to call a stored procedure which returns a recordset .. yea i need to pass one parameter also for getting that required data .. thanks in advance.. Sameer

Software Development visual-basic
Member Avatar for SANJAY.DESHMUKH
0
2K
Member Avatar for c1979h

I need some guidance formulating a Do, For, While output using a Fibonacci sequence. After searching the foums I only saw posts that had just the sequence of numbers outputed like so: 01123453 after a set number was preset. I need the output to display like so: 0 +1 = …

Software Development c++
Member Avatar for jonsca
0
125
Member Avatar for avirag

Hi.......... I want to clear the image inside the picturebox on button click...... Can anyone tell me how can i do this.............?:)

Software Development
Member Avatar for renjujpanicker
0
7K
Member Avatar for abarlowa

I need help with the errors in my code. Here is my pseudocode along with my program code following: [B][U]This is my pseudocode:[/U][/B] Start Declare Variable int length int width int area Print (“Enter length of room in ft.: “), Input length Print (“Enter width of room in ft.: ”), …

Software Development c c# c++
Member Avatar for abarlowa
0
1K
Member Avatar for kananpatel

hi doing i try to import data from sql server to text file bust i have some probleam like:--- 2/15/2010 12:00:00 AM ===================================================== POSITION GAMENO START ENDDAY AMOUNT TOTALSALE ===================================================== [code=text] #1 223 92 92 $1 $0 #1 121 92 92 $1 $0 #2 222 115 115 $1 $0 #2 …

Software Development open-source vb.net
Member Avatar for kvprajapati
0
134
Member Avatar for higuain14

Hi I'm new to c++ programming. This is my first ever program, it calculates the average of numbers that the user input. The user can input up until 10 numbers. I get a segmentation fault for some reason. Any ideas? [CODE]#include<iostream> using namespace std; int main() { int numbers[10]; // …

Software Development c++
Member Avatar for naresh.M
0
115
Member Avatar for casjackkwok2001

I'm working on my c++ assignment (bubble sort), but i 'm stuck on my code. Is there anybody know how to print out the array contents after [B][U]each pass [/U][/B]of the sort? Should I use a for loop or a function call to print out?? thanks int first_array[8] = {13, …

Software Development c++
Member Avatar for vmanes
0
262
Member Avatar for AmigaCarolena

I do not have a clue here. I am floundering along but not getting anywhere. Any suggestions would be greatly appreciated. Thank you. /*This is a program that processes a loan for a car using appropriately named variables. It will use those variables in the input, calculation, and output of …

Software Development c++ visual-studio
Member Avatar for gnarlyskim
0
337
Member Avatar for newcuser

I have gotten my program to the point that it allows me to enter the data I want to enter. However, I do not know how to get the program to loop back correctly and ask for salesperson number and stop the loop when I enter -1. Help![CODE] #include <stdio.h> …

Software Development c
Member Avatar for jonsca
0
203
Member Avatar for chriselda

deleting string... example: deleting... enter string: the quick brown fox and the lazy dog. enter string to delete: the([I]the first one[/I]) new string: quick brown fox and the lazy dog.

Software Development c
Member Avatar for Dave Sinkula
0
115
Member Avatar for klactose

Hello all, I have a program that creates an array of structs. It is consistently exhibiting 1 of 2 problems and I can't figure out exactly what is wrong, but the problems seem related to each other. Problem 1: For some reason the category member of the mediaItem struct fails …

Software Development c
Member Avatar for gerard4143
0
174
Member Avatar for ananthaninfo

Dear Friends, I am new to Visual basic 2005 as I have used VB6 till now. I wish to do a database application using Microsoft Access 2003 and Visual basic 2005. I am very happy, if any one could give the step by step instruction to connect Access, insert, delete, …

Software Development microsoft-access vb.net visual-basic
Member Avatar for ananthaninfo
0
116
Member Avatar for bheegi

Hello i am a beginner in java and this is my first project my project is about cinema which have 10 theaters and i need to provide set of films to each theater i try to do this but i am a bit confused and lost [CODE]import java.util.Arrays; import java.util.List; …

Software Development java
Member Avatar for kvass
0
113
Member Avatar for corby

the only problem i have now is that when i enter the symbols to draw the border and fill for the rectangle, this is what is drawn: lets says witdh 10 and length 5, the border is % and the fill is @. %%%%%%%%%% %% %% %% %%%%%%%%%% The filling …

Software Development c++
Member Avatar for EngSara
0
144
Member Avatar for gnarlyskim

As you can see I am new here. I found this site from googling a question about a getChoice() function , and I was able to learn how to implement the function in my project to fit my needs from the post. ([url]http://www.daniweb.com/forums/thread162456.html[/url]). Well anyways, I have more issues that …

Software Development c++ mathematics
Member Avatar for gnarlyskim
0
1K
Member Avatar for zhaviere

Hello, I am a new programmer. I am trying to copy the elements of this 20x3 array into a 1x60 or 60x1 array an[60]=A[20][3] one of my attempts is:[code] for (i=0;i<20;i++) { for(j=0;j<3;j++){ at1[i]=A[i][j]; at2[i]=A[i][j]; at3[i]=A[i][j];} } an[60]={at1,at2,at3};[/code]

Software Development c++
Member Avatar for mrnutty
0
2K
Member Avatar for adrawat

Hi, Im trying 2 write the contents of a input file to an output file in reverse order using file I/O in C. Is there a more efficient way 2 do it? [CODE] int main() { FILE *fp1,*fp2; char ch,arr[100]; int i=0; if( (fp1 = fopen("input.txt","r")) == NULL ) { …

Software Development c file-system
Member Avatar for adrawat
0
399
Member Avatar for corby

my compiler keeps saying that i have an operator error at lines 22 and 50. what did i do wrong??? plz help [CODE]#include <iostream> using namespace std; class Rectangle { public: Rectangle()/*rectangle constructor defaults the values for length, width, area, and perimeter to 1 and initializes five rectangle objects to …

Software Development c++
Member Avatar for corby
0
115
Member Avatar for Jiwe

Hello, today I got a new issue on the program im developing so.. the issue is that I want to change a file in this path [B]C:\Users\[USERNAME]\AppData\Roaming\[PROGRAM NAME].[/B] But the thing is when a user's computer has a different language then english this path changes to something like this [B]C:\[Users …

Software Development c++ operating-system
Member Avatar for Jiwe
0
145
Member Avatar for cassds

I just started a C++ class at a local tech school. It is a self taught course, and I have just learned how much "self taught" applies to this course. The instructors have no experience in programming and can not answer the simplist of questions!! The book I was asked …

Software Development c++ visual-basic
Member Avatar for cassds
0
831
Member Avatar for instinctfx

I have this one specific pas file that i try to open, its just plain text in it, i can view it elsewhere (notepad, wordpad etc!) BUT [B]When i open it in d2007, she displays it as hex[/B] [CODE]756E697420494658 5F5574696C733B0D 0A0D0A696E746572 666163650D0A0D0A 7573657320537973 5574696C732C2043 6C61737365732C20 53796E634F626A73[/CODE] WTF!!! Any Ideas ??

Software Development ide pascal
Member Avatar for instinctfx
0
120
Member Avatar for Stefano Mtangoo

I work out a small project. I need to Get list of folders in each drive. Up to now I can get the drives but I have no Idea on how windows treats Drives. Does it treat them as super Directories (Super folders) that contain many sub-folders? If not How …

Software Development c++
Member Avatar for Stefano Mtangoo
0
120
Member Avatar for james0192

Hi im writing a program and one of the things i need it to do is get today's date and display it at various times. creating the date using 'datetime' i can do the problem is passing the created date strings to different classes i currently have 2 classes one …

Software Development gui python tkinter
Member Avatar for woooee
0
2K
Member Avatar for MrYrm

First of all im new here so Hi all.. im also new to c/c++ have been a java php and actionscript developer for some time now and finally have time to learn something new so im gonna go for c++ im just tryna get familiar with everything but i ran …

Software Development actionscript c++
Member Avatar for Stefano Mtangoo
0
122
Member Avatar for Kruptein

I have a Frame called ChangeDirPanel and an other one called MyFrame, the last one is the top-lvl window and has a function called file_show_dir which updates a listbox in that same window. (both frames have their own class, is it better to have the same class?) I want to …

Software Development python
Member Avatar for Stefano Mtangoo
0
276
Member Avatar for newcuser

Hello, I am attempting to rewrite a program in c. Here is what I have so far. Thanks in advance for assistance. [CODE]#include <stdio.h> void sales[ salesPerson ][ product ] += value; int main() { const int PEOPLE = 5, PRODUCTS = 6; double sales[ PEOPLE ][ PRODUCTS ] = …

Software Development c c++ ios
Member Avatar for mitrmkar
0
183
Member Avatar for wwsoft

Hello , I a creating program in witch objects are stored in the namespace var in var.h. How do I make the var namespace available to more than one file without having redefinition errors ? [CODE] ### var.h ### namespace var { ... } ### main.cpp ### #include "var.h" //multiple …

Software Development c++
Member Avatar for wwsoft
0
145
Member Avatar for dragontruong

I am unable to print out the error message when there is no input. I've tried different methods for it, but I can't get it to work. What am I missing? print should be: p2 invalid input but I get: p2 segmentation fault when I do this with an int …

Software Development c
Member Avatar for dragontruong
0
111
Member Avatar for mebob

i was trying to make a program that uses the chudnovsky algorithm to calculate pi with this code: [code] #include <cmath> #include <iostream> #include <cstdlib> using namespace std; float fac (float num) { float result=1; for (float i=1; i<=num; ++i) result=result*=i; return result; } int main() { double pi=0; float …

Software Development algorithm c++
Member Avatar for vmanes
0
441
Member Avatar for iarkey

Ok well I'm making a console msn client. [CODE]#pragma comment(lib, "wsock32.lib ") #include <windows.h> #include <iostream> #include <stdio.h> #include <string.h> int main(){ char buf[12]; WSAData wsdata; WORD wsver=MAKEWORD(2, 0); int nret=WSAStartup(wsver, &wsdata); if(nret != 0){ std::cout<<"Startup failed, error code: "<<WSAGetLastError(); WSACleanup(); return -1; } std::cout<<"Init success\n"; SOCKET kSock=socket(AF_INET, SOCK_STREAM, 0); …

Software Development c c# c++ client-server
Member Avatar for iarkey
0
149
Member Avatar for wdow

I'm trying to write code for a very basic version of the game 24. This code will receive either two, three, or four integers and determine if there is any way that these numbers can add, subtract, multiply or divide to the number 24. Locations of parenthesis can change as …

Software Development algorithm c++
Member Avatar for wdow
0
186
Member Avatar for Nerathas

Hello, Lets assume we have the amount 110,11 euro. The used money bills are 500, 200, 100, 50, 20 10, 5, 2 , 1, 0.50, 0.20, 0.10, 0.05, 0.01. So this amount would give on the console screen 1 x 100 1 x 10 1 x 0.10 1 x 0.01 …

Software Development
Member Avatar for ddanbe
0
122
Member Avatar for daveoffy

I have been trying to get the day of the year into an int(0-365). I have tried the time.h library and did int tm_yday but it returned an incorrect number. I am using Linux. G++(gcc) compiler. Thanks for the help.

Software Development c
Member Avatar for daveoffy
0
191
Member Avatar for JHus00

It wont compile! I know something is probably wrong with my if condition but im unsure of what. [CODE]if (weight > 200) shipping_cost = 49.95; else if (weight >= 100 & < 200) shipping_cost = 39.95; else if (weight >= 50 & < 100) shipping_cost = 24.95; else if (weight …

Software Development c++
Member Avatar for JHus00
0
114
Member Avatar for ceyesuma

Hello. I am building a XML reader class DOM. Does anyone have a link that has some code where the text from a JComboBox.selectedItem()("text") for example or any text is used to find a Node in a the DOM document and then work with that nodes siblings?

Software Development xml
Member Avatar for ceyesuma
0
86
Member Avatar for exonwarrior

Hey all, I'm writing a program in C++ for a contest. The code executes no problem on my computer at school that I'm writing it on. I get all the correct answers. When I upload it however, it keeps on saying "runtime error (SIGSEGV)" Please Help!! here's the link to …

Software Development c
Member Avatar for Salem
0
169
Member Avatar for lolster

Hello there, I'm trying to understand this source code to block the packet send to the application I'm using right now. Basicly this source code is for making application that will crash the application that Im using atm. I have no basic C++ knowledge. I hope someone could explain this …

Software Development c++
Member Avatar for lolster
0
248
Member Avatar for xrv1

Im supposed to implement a quad tree that will input cities into a fixed format. when the user asks for a particular city, all cities within a certain range will be displayed. i think i have the right method's in place, but for some reason or another, the program wont …

Software Development c++
Member Avatar for WaltP
0
128
Member Avatar for corby

Ok the problem im having is in my setRectangleLength and setRectangleWidth. The compiler shows no errors so everything is fine. However when I try to validate the length and width between the values of 1-20 it does not work. When the program asks the user to enter another length or …

Software Development c++
Member Avatar for corby
0
113

The End.