132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nejger

Hello, I'm doing a Converter, from Roman to arabic and the other way. Now I need help to do a program who can do bigger numbers/letters than 3999. I must use the information: (M) is 1000 *1000 and (L)= 50 * 1000 etc. So ( ) means 1000. I must …

Software Development python
Member Avatar for woooee
0
177
Member Avatar for burcin erek

i made a class test program with telephone directory. it writes name and telephone number but not surname i have used return name,surname which does not carry both string. is it possible to do them without writing another function script. thanks in advance [CODE]#include <cstdlib> #include <iostream> using namespace std; …

Software Development c++
Member Avatar for jonsca
0
102
Member Avatar for Sunshineserene

Hi all, I am trying to call a 2D array from another class, and equate the 2D array to a 2D array in the class its at. However, I'm having some problems. I can call the 2D array from the class that I want to, but it seems like my …

Software Development java java-swing
Member Avatar for Sunshineserene
0
2K
Member Avatar for wrhurst

Hello all, I want to change the following code to have the user enter ANY NAME to see if the person is present in the array. I'v been trying for a couple hours now but keep getting errors. There's more to this problem but I have to get past this …

Software Development c++
Member Avatar for wrhurst
0
170
Member Avatar for fahadyousaf

i have made this little program in GUI, Please help in these following error. 1st time when we save the data second time it comes to 2nd field name not on cnic field, it should ask cnic field first then other ask for other fields. Please any one guide me …

Software Development file-system gui java java-swing
Member Avatar for kramerd
0
239
Member Avatar for Jonil

Hello! I'm suppose to code a word counter for my Java class. The user is suppose to keep entering a sentence until they type "xxx" then at the end, it'd count how many words entered. It's only counting the "xxx" for me, so at the end, it says I only …

Software Development java
Member Avatar for kramerd
0
158
Member Avatar for wdearth

I'm supposed to create a bill for a catering group utilizing at least two functions, which functions could I use for this and how will I use them? I've done it with mainly if and else statements and simple calculations, any functions I can use? #include<iostream> #include<iomanip> #include<string> using namespace …

Software Development c++
Member Avatar for mtbs1826
0
228
Member Avatar for bibiki

I have the following code as taken from the book I read from: [CODE] import java.awt.*; import javax.swing.*; /** Frame1 is a frame with a label and a button */ public class Frame1 extends JFrame { /** Constructor Frame1 creates a frame with a label and button */ public Frame1() …

Software Development java java-swing
Member Avatar for kramerd
0
202
Member Avatar for .:Pudge:.

Alright so I have to create a B-tree of order 'n', where the user puts in a desired 'n'. I borrowed and modified code of a B-tree of order 5, but I can't get it to work and it crashes. I also need it to display the contents of the …

Software Development c++
Member Avatar for .:Pudge:.
0
155
Member Avatar for Jaydenn

My program requires users to be able to right click a tab and then close it, but I can't do this when the right clicked tab doesn't select. Any help would be nice, thanks.

Software Development
Member Avatar for Jaydenn
0
102
Member Avatar for samarudge

Hey, So I have a *NIX box (CentOS 5.5) which runs a number of background processes, I leave it on 24/7 with just a terminal up on the screen (I don't have Gnome, KDE or any similar graphical frontend, just a prompt). Is there any way to get my background …

Software Development shell-scripting
Member Avatar for shibblez
0
166
Member Avatar for tylerjgarland

I have an implementation question. I am trying to have a rectangle change color based on the position of four sliders. (Alpha, Red, Green, Blue) I am attempting to use a dependency property to combine all four values, convert them to a brush, and apply the brush to a rectangle. …

Software Development c#
Member Avatar for tylerjgarland
0
377
Member Avatar for Abhishek_jn

Hi All, i want to know what is the use of const volatile variable, where exactly it is required to use.

Software Development c
Member Avatar for nbaztec
0
429
Member Avatar for Jaily

Can I somehow use the following code to remove all the elements of a binary tree? [CODE] void BinarySearchTree::remove(int d) { //Locate the element bool found = false; if(isEmpty()) { cout<<" This Tree is empty! "<<endl; return; } tree_node* curr; tree_node* parent; curr = root; while(curr != NULL) { if(curr->data …

Software Development c++
Member Avatar for nbaztec
0
2K
Member Avatar for kyros

hello everyone.I have a question. I saw this question in a site and tried to solve this but I have no idea can you help me? Write a recursive function (use no while loops or for loops) that prints all the elements of an array of integers, one per line. …

Software Development c++
Member Avatar for Lerner
0
171
Member Avatar for rama83

Hi i don't know if anyone can help me or not?? i have an assignment about java dice game and here is the instructions: This program will simulate two people playing a two dice game. The objective of this game is to be the first to score 100 points. The …

Software Development java
Member Avatar for rama83
0
129
Member Avatar for florisvd

Hello, We are trying to control 8 7-segment displays by using multiplexing. The problem we have is that we have to program buttons, how can we make it? Best regards, Floris /* Ansteuerung von drei 7-Segmentanzeige im Multiplexbetrieb * Gemeinsame Anode, PB0..PB6 * Spalten: PC0..PC2 * * a * f …

Software Development c
Member Avatar for florisvd
0
146
Member Avatar for jdm

I'm working on a tcp sever that recieves a message plus font, font size, text color, and background color, and direction to scroll. I have all of this working now, but I don't have the sever being able to recieve new messages and so forth. I need to get the …

Software Development multithreading
Member Avatar for jdm
0
129
Member Avatar for KellieD

Hi, Okay, I really need help with this program please... I have to create a program which; Contains a function called sumN() which takes an int n as an argument and returns an int which is the sum of all integers between 1 and n. In the main() it asks …

Software Development c++
Member Avatar for KellieD
0
100
Member Avatar for rageplant

I have a problem that I am working on, and it is to find the shortest path on a grid, when you are given a start point, an end point, and a list of obstacles. I managed to set up a grid by using a vector of vectors, but I'm …

Software Development c++
Member Avatar for alwaysLearning0
0
247
Member Avatar for Shama1234

Hi All, I am trying to loop through the values of a dataset. Using a 3-tier architecture...so the dataset is created in the BLL. Now i want to retrieve its values and proceed with my desired functionality for each value of the dataset. Can somebody help as I am new …

Software Development dataset
Member Avatar for samacoba
0
126
Member Avatar for saranyashanthi

hai can any one help me to write the codings for hospital management in visual basic on basic forms of bloode donation list,admission form,etc

Software Development visual-basic
Member Avatar for PoisonedHeart
0
86
Member Avatar for ChaosKnight11

Hi. I am working on a visual C++ app and I was wondering if it is possible to use PostgreSQL for database interaction instead of the default SQL Server? I saw a connector for .NET but it's written in C#, will that work for a C++ app also? Or is …

Software Development asp.net c++ postgresql
Member Avatar for Stefano Mtangoo
0
325
Member Avatar for tendaimare

What do i do if i have code for insert.when i insert the data it shows when i click the SHOW button(when I enter a serial number and then click SHOW it shows the data) it works but when i stop the system and run it again it does not …

Software Development vb.net
Member Avatar for Netcode
0
106
Member Avatar for knifty09

I haven't needed to use fscanf before, so I'm not very familiar with it... Everything is working fine except that the numbers it inputs are not what's in the file and they are all the same number (-9.255959e+061 to be specific) I know exactly how the files are formatted they …

Software Development c++
Member Avatar for jonsca
0
106
Member Avatar for edriso

I am new to vb. I am trying to get a value for a textbox from a database according to the selected item in combobox. but i had this ex.message Operator '&' in not defined for string "select*from ......" and type 'dtarowview' Could anyone please tell me what is wrong …

Software Development dataset open-source vb.net
Member Avatar for Netcode
0
147
Member Avatar for singlem1905

today, I want to transform "c:\*\``"(it is a rout) to "c:/*/''" yes, just from "\" to "/" but it is always missed ,for example "\n" to "enter" and how can "c:\*''" just be "c:\*''" without changing ? thanks a lot!

Software Development python
Member Avatar for TrustyTony
0
78
Member Avatar for TheDocterd

Hi there recently I received help on how to ensure that a user don't close a form before he/she completes all outstanding entries on a calendar. That works perfectly, but now the problem is I have to complete all entries up to say the year 2020. I only want the …

Software Development visual-basic
Member Avatar for AndreRet
0
110
Member Avatar for utd123

using records and types Create a program that will allow a user to store a set of triangle measurements, triangle name, triangle total size and date triangle was entered. Your program will allow the user to enter the size of various triangle and measure their area. The user should also …

Software Development pascal
Member Avatar for pritaeas
0
102
Member Avatar for Ultraviolet

I'm trying to use this code to grant the current user full permissions to access System Volume Information: [CODE] //It works when manually written in cmd cacls "E:\System Volume Information" /t /e /g %username%:F //but using this formula to make the command window hidden does not work(doesn't give the permission …

Software Development c++
Member Avatar for Ultraviolet
0
164
Member Avatar for Nemo_NIIT

Hi Everyone I have used a drop down and a label. I want on the selection of the drop down data should be viewed on label. [CODE]ex: if user select value from drop down (Apple) so on label it should print (50 per KG)[/CODE] Data should come from sqldata and …

Software Development apple
Member Avatar for samacoba
0
105
Member Avatar for jiangjiang

how i can upload and store image to a specific folder

Software Development image vb.net
Member Avatar for luoluo
0
84
Member Avatar for ds2000

Hi all, Hopefully a quick one. I have some weblogic build scripts that configure a WebLogic Server environment. Previously DB connection credentials have been allowed to be stored in build property files. However new security regulations mean that this is no longer possible. I am trying to write a prompt …

Software Development file-stream gui python
Member Avatar for ds2000
0
2K
Member Avatar for keweul

[CODE] #ifndef POLYNOMIAL_H #define POLYNOMIAL_H class Polynomial { public: Polynomial(); Polynomial(int ,int []); ~Polynomial(); const Polynomial operator+(Polynomial& p) const;// addition const Polynomial operator- (Polynomial& p ) const; // subtraction int getExponent(); //void setExponent(); void setCoefficient(); int getCoefficient(); void printPolynomial(); private: int exponent; // exponent int coefficient[ 10 ]; // coefficients …

Software Development c++ mathematics
Member Avatar for cppgangster
0
4K
Member Avatar for cortez716

Okay heres the background on the code. I've written a code that prints a 10x10 array or random numbers. Then prompts the user to pick a number. After user picks a number, the program then tells user the number of times number was found in the array and supossed to …

Software Development c c# c++
Member Avatar for vanalex
0
209
Member Avatar for rishabh7777

Hi, I am developing a web crawler using java. I have implemented it to some extent, like I have developed program which parses all the hyperlinks from the entered URL and and visits each link one by one and iterates this process. Now I want to parse all the visible …

Software Development java
Member Avatar for rishabh7777
0
111
Member Avatar for hazeeel

Hey guys, I seriously need some help here. I have no idea why but after undergoing the Rotation phase I lost coordinatesRotZ[a][0],coordinatesRotZ[a][1]. The value appears to be 0.0 However coordinatesRotZ[a][2] has values stored in it. so the output looks something like that after printing: coordinatesRotZ[a][0] coordinatesRotZ[a][1] coordinatesRotZ[a][2]: 0.0 0.0 13.44 …

Software Development java
Member Avatar for hazeeel
0
119
Member Avatar for NotNil

I am experimenting with the use of WMI from within Delphi. Appears quite simple really however I am running into a problem where the amount of memory used by my application keeps growing. In my sample code below the SendPing() function is executed once every second by a TTimer.... each …

Software Development delphi pascal
Member Avatar for NotNil
0
845
Member Avatar for ceyesuma

I would like to learn how to save a JInternalFrame. Currently reading through Serialize info. I have never ran the app outside of Netbeans. I have had no success with creating the jar for the app (JDesktopPane). Now Serialization is adding to the confusion. Do I have to have the …

Software Development java
Member Avatar for JamesCherrill
0
108
Member Avatar for computerbear

Hello, I am at the end of my first C# programming class. I am working on some extra credit. Having problems with my loops. I am supposed to get output looking exactly like this: Bark Bark Meow Bark Meow Bark Bark Meow Bark Meow Bark Meow Bark Meow Bark Bark …

Software Development
Member Avatar for apines
0
332
Member Avatar for carobee

Hi I have created a code to create excel macro in C#.But while trying to create a new VBA code module i am getting a error.The code that i have used is [code] module = excelWorkbook.VBProject.VBComponents.Add(VBIDE.vbext_ComponentType.vbext_ct_StdModule); [/code] this part of the code is throwing an error. Error 1 The best …

Software Development c#
Member Avatar for comsdev
0
1K
Member Avatar for qdiscoverer

Here's what I made to test how python works.... test.py: [CODE=python] class ECollector: #error msg collector #this class should be used as 'global' msgs = [] def addmsg(self,msg): self.msgs.append(msg) def clear(self): self.msgs = [] class test(ECollector): dcodes = [] ECollector def new(self): ECollector.addmsg("test!") [/CODE] And I typed the following on …

Software Development python
Member Avatar for Gribouillis
0
337
Member Avatar for smeghead007

ok guys one quick question for you. If im reading a file say formated like so.. 123 d52.55 w52.66 d55.55 d66.66 456 w55.55 d55.55 d66.6 and i want to read the first variable so 123 and match it up with another file. how do i go about reading the rest …

Software Development c++
Member Avatar for SgtMe
0
194
Member Avatar for Jean Chew

Hi, can some kind soul advise me on my coding cos it does not seem to work. [CODE] private void DisplayText(object sender, EventArgs e) { textBox1[COLOR="red"].Display[/COLOR](); if ([COLOR="red"]10<x && x<294[/COLOR]) [COLOR="red"]&&[/COLOR] [COLOR="red"](-5<y && y<13[/COLOR]) && (-12<z && z< 228)) textBox1.display("It has moved inwards"); else if (-53<x<-265 && -11<y<37 && -57<z<218) …

Software Development assembly c c# c++ visual-studio
Member Avatar for apines
0
193
Member Avatar for chode1

#include <iostream> #include <fstream> #include <iomanip> #include <string> #include <ctime> using namespace std; void pickword (); int wordlength (); void printout (); void gameplay (); void totalgames (); void replay (); int main() { string guessed=""; string scaffold_top="______"; string scaffold_pole=" |"; string scaffold_bottom="_|_____"; string names[350]; ifstream infile; infile.open("smaller2.txt"); int counter; …

Software Development c++
Member Avatar for SgtMe
0
153
Member Avatar for blknmld69

I am having problems with the output of my program. The progam should Design a class named Employee. The class should keep the following information in fields: Employee name Employee number in the format XXX-L, where each X is a digit within the range 0-9 and [INDENT]the L is a …

Software Development java
Member Avatar for Overbooked
0
8K
Member Avatar for jane bella

i need a help in airline reservation system project in c n i dont no how to do that so plz tell me the codes for these we should allow the user to chose 1)to book 2)to cancel 3)view data 4)quit as well as they have to enter them name …

Software Development c
Member Avatar for jane bella
0
183
Member Avatar for newsb2Java

i want to read file data as below. [ int, double, double] 1234 12.30 45.60 2345 23.40 67.50 3456 45.60 67.80 . into multiple arrays of type int, double and double. any help will be appreciated.

Software Development java
Member Avatar for apines
0
2K
Member Avatar for choover12

can someone tell me how to convert a string to a float. [CODE](Float)"1";[/CODE] does not work.

Software Development
Member Avatar for Dolly.Oswal
0
118
Member Avatar for .:Pudge:.

My code works fine for smaller integers, but when it gets over 1 million or so the number changes or goes negative. I am sure this has to do with the range of int, but I tried float and double and all the numbers came out the same...... What is …

Software Development c++
Member Avatar for .:Pudge:.
0
142

The End.