132,733 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for JDsmith

Alright everyone, I'm a little behind in my programming class and I missed the lecture on functions. I'm not asking for anyone to do my work for me but a little help on where to start would be nice. thanks :) alright well here's the question... Write three C++ functions …

Software Development c++
Member Avatar for JDsmith
0
117
Member Avatar for rachael13

Requirement-"The stylesheet should be modified not to add DUCK(product type) if there exists one with the same action(product action)". ie how can i write validation in XSLT to add a DUCK if and only if the product action is different. In the xml given below the action of two products …

Software Development apache xml
Member Avatar for alamelu
0
111
Member Avatar for MJV

Im new to C# and having trouble with this code: I have a combo box on a form optypeCB and when a particular type is picked(Draw,Form,Pierce,Trim) I would like a numerical value assigned to a text box designhrsTB. My code is as follows but it does not work can anyone …

Software Development
Member Avatar for Rashakil Fol
0
297
Member Avatar for RMartins

How can we in python change the number of elements in a line to the next, this is, for example... We have the following txt file: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 And we want a program which the output …

Software Development python
Member Avatar for woooee
0
93
Member Avatar for karthik.c

Given a list of integers, generate the list of the corresponding floats.

Software Development python
Member Avatar for scru
0
20K
Member Avatar for chirayu

Hello I am beginner trying to program in Microsoft Visual Basic 2005. I would like to create a simple program that can sketch graphs of functions such as "y = 2x + 5." I have tried websites such as codeproject and codeguru to find the code but no success. I …

Software Development vb.net visual-basic
Member Avatar for Ezzaral
0
98
Member Avatar for drfarzad

i have some amature questions . please help me . 1-in this program i need Average of 3 numbers but it dose not work : [CODE]using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication76 { class Program { static void Main(string[] args) { int x; int y; int m; float ave; …

Software Development
Member Avatar for rapture
0
144
Member Avatar for oldSoftDev

I am trying to read some numerical values from a file and getting this error: Input Error: Error in input: Floating point number not found.; Expecting Real number in the range -1.7976931348623157E308 to 1.7976931348623157E308 [code][code=java] import java.io.*; public class TriangleMain { /** * @param args the command line arguments */ …

Software Development file-stream java
Member Avatar for Ezzaral
0
98
Member Avatar for curiouskitten

i need help understanding how to fix my code (But please no explicit answers, I really need to understand.) I need to create a program (I'm using IDLE) that will count the number of characters in a given sentence WITHOUT counting spaces. So far I have: [CODE] S = raw_input("Enter …

Software Development python
Member Avatar for oldSoftDev
0
106
Member Avatar for shasha821110

Hi, my company have a big project now. Which we have some video detection software and could create some investigation figure. We want to do plug-in into the Powerpoint and i am kind of junior here. But i really want to do more in my company. So i want to …

Software Development c++
Member Avatar for shasha821110
0
151
Member Avatar for keyser soze

Hi, I'm a beginner in C++ and I need some help how to get a website's source code and save it into a string. Oh, and also: how can I then search the source for a specific keyword AND how can I "extract" a word between 2 keywords ? Here's …

Software Development c++
Member Avatar for ArkM
0
121
Member Avatar for moshe5

Hi All! I am currently stuck on a c++ program I'm working on. So the program will have the user input data into a 2-d array. sample dialogue: BLOB SIZE CALCULATOR- Enter coordinates for each filled cell; e.g 2 3 Do not enter commas or parentheses. Enter -1 -1 to …

Software Development algorithm c c# c++
Member Avatar for Lerner
0
115
Member Avatar for uhguy77017

I am trying to write a simple program that reads in csv data from a text file, and then sums the values of the integers read in. I am new to C and trying to figure out small little programs to practice. I am able to get the file open, …

Software Development c
Member Avatar for ArkM
0
187
Member Avatar for masterlion
Member Avatar for masterlion
0
62
Member Avatar for EJD

The following code is producing this problem (typed with exact characters printed in command prompt, aside from quotations): "Please input D for a daytime movie or E for an evening movie: This is not a valid choice." The program will not allow me to input anything following the prompt for …

Software Development java user-interface
Member Avatar for EJD
0
111
Member Avatar for olgratefuldead

I'm having some trouble with my code. I want to calculate the final balances of some movie tickets based on their day or night showing (and depending on if they are children or adults). So at the end of the code, I've been trying to get the solution to a …

Software Development java
Member Avatar for olgratefuldead
0
242
Member Avatar for ChroNoS

I am doing a project on steganography ( I hope you know what it is :) ) I have to convert a text file (if possible a RTF File) to an image file like jpg or gif etc. But I do not seem to get around this problem and I'm …

Software Development c++ image
Member Avatar for Salem
0
404
Member Avatar for olgratefuldead

I need to figure out how to set my overall ticket limit (aticket + cticket) to 100 and if a customer goes over the limit, then they are told that they have ordered too many tickets and that they need to try again and then it loops back through until …

Software Development java
Member Avatar for olgratefuldead
0
93
Member Avatar for BrianK123

What I am trying to do is read from a file to an ArrayList and then display it using a JOptionPane. The only problem is the code i am having trouble with is in an ActionListener and I believe somehow I have created an infinite while loop because when I …

Software Development java
Member Avatar for verruckt24
0
172
Member Avatar for crzycrusnik

Hello! First time Poster :) I'm trying to create a Java Web Crawler. What I want it to do is pass the crawler a starting site, a max depth/levels of sites to go to (as opposed to number of pages) and save files like images and documents. The problem is, …

Software Development java queue
Member Avatar for verruckt24
0
228
Member Avatar for beanryu

I start learning about python, so i read the tutorial: they show this: >>> x = int(raw_input("Please enter an integer: ")) Please enter an integer: 42 >>> if x < 0: ... x = 0 ... print 'Negative changed to zero' ... elif x == 0: ... print 'Zero' ... …

Software Development gui python
Member Avatar for breatheasier
0
2K
Member Avatar for GameboyHippo

I'm pretty green at Delphi. I have a program that must call a MS SQL stored procedure before executing the rest of its logic. Here's the code I've written (changes have been made here and there to protect confidentiality): [code=delphi] theProcedure := TStoredProc.Create( NIL ) ; theProcedure.DatabaseName := theTDatabase.DatabaseName ; …

Software Development delphi pascal
Member Avatar for sknake
0
174
Member Avatar for sony_b

I am trying to write a python script that can take a word from one file and transfer it to a specific location in another file. for example, lets say i have a file called hb15b.txt and it includes the following: MODIFY-USER 2671, "hb15b01", " UGz9", 1, How can i …

Software Development python
Member Avatar for woooee
0
146
Member Avatar for Ene Uran

For the second year running Python has been selected as the Language of the Year by Linux users: [code] Linux Users' Programming Languages of the Year 2008 PHP 115 13.36% Perl 72 8.36% Python 226 26.25% Ruby 46 5.34% C 114 13.24% C++ 129 14.98% Java 106 12.31% Lisp 9 …

Software Development perl python ruby
Member Avatar for breatheasier
0
147
Member Avatar for bigOnotation

Hi all, I am a beginner in c, and i am receiving an error in my code, I am writing the code to reverse the elements of a linked list, the code is as follows: [code=c] #include <stdio.h> #include <stdlib.h> typedef struct node { int data; struct node *next; }element; …

Software Development c linked-list
Member Avatar for bigOnotation
0
123
Member Avatar for tksrules

The question is (Package Inheritance Hierarchy) Package-delivery services, such as FedEx®, DHL® and UPS®, offer a number of different shipping options, each with specific costs associated. Create an inheritance hierarchy to represent various types of packages. Use Package as the base class of the hierarchy, then include classes TwoDayPackage and …

Software Development c++
Member Avatar for VernonDozier
0
353
Member Avatar for tpetsovi

Ok, the program allows me to input every value and everything executes, but heres what comes back when the calculations at the bottom are supposed to happen. take a look. Please help? [ICODE] For your 1st class please select the appropriate number for your grade. For an A, select 1. …

Software Development c++
Member Avatar for Nick Evan
0
152
Member Avatar for brylezkie

Hi, can everyone help me to install VB 6.0 because I have encountered a problem as I install VB 6.0 Installer only reboot the system, because of updating the Microsoft Virtual Machine for Java. any response are my pleasure. thank you.

Software Development visual-basic
Member Avatar for cguan_77
0
68
Member Avatar for Tiago Santos

Hello Everyone. Congratulations for the Forum. Ok... How can I print a external file ( and .doc document for example) using C++??? The document I wanna print is a .lbl extension. A zebra printer label model, and I'm using a seguential number on this label and every time I right-click-print …

Software Development c++ printer
Member Avatar for Ancient Dragon
0
217
Member Avatar for scoob_m

Hello, I have a code file from the boto framework pasted below, all of the print statements are mine, and the one commented out line is also mine, all else belongs to the attributed author. My question is what is the order in which instantiations and allocations occur in python …

Software Development os-x python
Member Avatar for jrcagle
0
103
Member Avatar for mahela007

I want to copy some files using python. Can someone tell me how to use the shutil.copy() command properly? thanks

Software Development python
Member Avatar for Ene Uran
0
210
Member Avatar for Alice_Blue

Hi all, I have an incompatible pointer type problem.I am using Dev-Cpp and I am trying to intergrate some functions to a large project in C (mpeg2 decoder) and I am stuck here trying many variations to solve it: [code=c] //global.h void transpose_mat _ANSI_ARGS_((double *matA[], double *matB[], int N)); //declaration …

Software Development c
Member Avatar for Narue
0
130
Member Avatar for Datanizze

I have a strange problem, when I try to join two strings, one declared as a string() [code=vb]dim string1 as string()[/code] the string contains some data in both str(0) and str(1) but when I try to add that with a regular string: "some text" like this: [code=vb] dim string1 as …

Software Development vb.net
Member Avatar for rapture
0
136
Member Avatar for MaxVK

Hi, I have written a nice little editor using the RichTextCtrl, and so far everything is working fine, however, for some reason the delete key does not work as expected. If I select something and hit delete then the selection is removed, but if I click anywhere in the text …

Software Development python
Member Avatar for MaxVK
0
131
Member Avatar for karthik.c

hi guys wat if List is equivalent 2 Arrays in c or do we have Arrays seperately defined in python??

Software Development python
Member Avatar for karthik.c
0
185
Member Avatar for mic2x_caspe

ah im in 1st year IT student, my project is about to make a Notepad and it should have an event to perform. example: is when i go to [B]"file"[/B] then click the [B]"save"[/B] and it will perform.. pls give some example of class that use an event.. Im new …

Software Development java java-swing
Member Avatar for verruckt24
0
153
Member Avatar for winrawr

So, I'm dynamically allocating a char array in a function, then returning that array to an un-allocated char array in main(). Code: [code=cpp] #include<iostream> using namespace std; char* cc(char*,char*); int main(){ char* strMain; char* str1="Well, hello there, "; char* str2="How are you?"; strMain=cc(str1,str2); cout<< strMain; } char* cc(char* str1,char*str2){ char* …

Software Development c++
Member Avatar for winrawr
0
124
Member Avatar for abcdou20

hi guys i need your help! i have two date picker and a vsflexgrid in my form then i select datepicker1 month of january datepicker2 month of february i want to display all the records in both month ... example: january 9 records febraury 10 records my sample code: [code] …

Software Development visual-basic
Member Avatar for abcdou20
0
90
Member Avatar for deepika_m

I have a login page for which users and their passwords hav been updated in database. If a user continuously enters invalid password 3 times then im displaying an error message and blocking the user. when i enter another user name the error message continues to be displayed. btw, im …

Software Development session vb.net
Member Avatar for Comatose
0
100
Member Avatar for PolarClaw

Our instructor told us to make a scientific calculator using visual basic... though he didn't yet discuss on how... what i made was just a simple calculator that can perform the four basic functions... here is my codes... [code]Dim val1 As Double Dim a As Double, s As Double, m …

Software Development visual-basic
Member Avatar for jenmedina
0
143
Member Avatar for apcxpc

Hi all I am programming a database-related application in Java. I have to facilitate several different types of queries, but I'd like to use the same JTable to display the results of each query (one at a time, of course). The problem is that when I'm using one JTable, I …

Software Development display java
Member Avatar for verruckt24
0
202
Member Avatar for ihatehippies

How do you bind something like a listbox to an event, but keep that events default actions... ie when you bind a listbox to EVT_RIGHT_DOWN it overrides the SetSelection method that is normally called. I'm trying to call a popup menu on the right down event but I also want …

Software Development python
Member Avatar for lllllIllIlllI
0
94
Member Avatar for fomagnoma

Greetings. I've tried about 8 different methods of getting this done and am stumped. I need ideas. I need code to walk thru a hash, comparing each element against a string in case insensitive fashion. If the string is found to be a substring of any of the elements, the …

Software Development ruby
Member Avatar for subtercosm
0
129
Member Avatar for hurbano

Hi. was asked to add the definitions of the function to overload the operators from this: [code] void monthsSet::unionSet (monthsSet &B) { for (int i=0; i<12; i++) if (B.months[i]) months[i] = true; }; [/code] Ive been trying for hours. Ive read my textbook and gone over my notes. Unfortunately i …

Software Development c++
Member Avatar for hurbano
0
79
Member Avatar for rapture

I have the following code which outputs incorrectly. [code] public static void extend(ArrayList priceList, ArrayList quantityList, ArrayList amountList){ for(int i = 0; i < priceList.size(); i++){ amountList.add((Double)priceList.get(i) * (Double)quantityList.get(i)); System.out.println(priceList.get(i) + " * " + quantityList.get(i) + " = " + amountList.get(i) ); } [/code] The output for some of …

Software Development java
Member Avatar for sillyboy
0
112
Member Avatar for mhangman

hi, im new at c#. after using python i need c# for some windows app. my problem is: i have an axshockwaveflashobject in my prog. but its size stable. i want to change it with general desing. if user grow up the window it should change with it. how can …

Software Development
Member Avatar for mhangman
0
82
Member Avatar for scott_s58

Can somebody help me with this? You are burning some music CDs for a party. You've arranged a list of songs in the order in which you want to play them. However, you would like to maximize your use of space on the CD, which holds 80 minutes of music. …

Software Development c++
Member Avatar for Comatose
0
161
Member Avatar for juzzy

is it possible, well yes of course its possible, but does anyone know the best way to alter the colour of a word within a sentence in a wxpython window. I know how to change the colour of the entire text but not a specific word. So for instance if …

Software Development python
Member Avatar for juzzy
0
1K
Member Avatar for Udxero

Modify your week 5 assignment to include a function for both A and B. The function for A should have the quantity of numbers passed in as a parameter and needs to return the largest number. The function for B should have no parameters and return the smallest number. Here …

Software Development c++
Member Avatar for shasha821110
0
252
Member Avatar for VBNick

Im having a very strange problem that I can't explain =/ this is what the compiler is saying: 1>------ Build started: Project: 3d, Configuration: Debug Win32 ------ 1>Compiling... 1>RENDER.CPP 1>Generating Code... 1>Compiling... 1>GEOM.CPP 1>MAIN.CPP 1>MOVEMENT.CPP 1>Generating Code... 1>Linking... 1>MAIN.obj : error LNK2005: "struct OBJECT * obj" (?obj@@3PAUOBJECT@@A) already defined in …

Software Development c++
Member Avatar for VBNick
0
298

The End.