43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Parsu7

What do you mean by Synchronized classes?

Software Development java
Member Avatar for jwenting
0
106
Member Avatar for guitarrick

I really hope someone can help with this...We've been working on the same 'core' abstract data type files (ListA.h & ListA.cpp) thus far this semester. Progressively adding different methods along with the new concepts introduced. AppointmentBook is our class, and each project calls for some implementation of a simulated appointment …

Software Development c++
Member Avatar for guitarrick
0
125
Member Avatar for torbecire

They are two classes. Fraction and calculator. Fraction does things like add, multiply.... The calculator class is supposed to call the methods in the Fraction class and output the data. The problem is i can't figure out where to put the calculator class so that it can output data. Here …

Software Development java
Member Avatar for torbecire
0
122
Member Avatar for Allen 0108

In the code below, can someone explain how the incrementing for the successive iterations results in the output? Thanks. [CODE]int main() { using namespace std; for (int i = 0; i < 3; i++) for (int j = 0; j < 3; j++) cout << i << " " << …

Software Development c++
Member Avatar for Allen 0108
0
247
Member Avatar for Thradok

I'm just starting out with Python, and for some reason I am getting a syntax error. This only happens when I run the whole program at once, but if I run only this little bit, it works fine. while choice != "q": choice = raw_input("What would you like to find …

Software Development python
Member Avatar for Thradok
0
108
Member Avatar for vagab0nd

ok below code is v rough but first implementation in python. i get the error name error name self is not defined in relation to teh first use of self.panelL in the layout function? it was working then i tried adding a button and it stopped I removed the button …

Software Development gui python
Member Avatar for vagab0nd
0
388
Member Avatar for jeffige

I am taking a course on C++ game dev and one of the exercises asks me to write a program that: asks the user to input two numbers. compute those numbers, +, -, *, %. and then display the results. It took me forever and a minute, but I got …

Software Development c++ display
Member Avatar for jeffige
0
276
Member Avatar for digital_ice7

i'm working on a banking system.....m stuck here....i dont know how to do this: 1.Their account should already have an amount of money for further processing. 2.All users are able to perform transactions such as withdrawal, deposit and check balance etc. 3.Each user will have a file or record to …

Software Development c++ file-stream ios
Member Avatar for mitrmkar
0
107
Member Avatar for henpecked1

I'm trying to write a while loop to terminate a program when asked if you want to enter another name and the answer is no (or a number since I'm using character strings) My first idea was to check the 0 element of the first name part asked for, but …

Software Development c++
Member Avatar for henpecked1
0
193
Member Avatar for mr.cool

im making a battleship game and so far i have this but im getting an error and i don't know what it means, this is the error [inlinecode]error C2664: 'strcpy' : cannot convert parameter 1 from 'char' to 'char *'[/inlinecode] this is my code [code=cplusplus] #include <iostream.h> #include <stdlib.h> #include …

Software Development c++
Member Avatar for mr.cool
0
118
Member Avatar for sainiricha

Input from text box as text(not number) and by button click need all values from the sql table to be viewed in the datagridview. eg:deptname as input in textbox, and by button click take all values from table [B]matching this deptname[/B] and get output in datagridview. Can anyone help me …

Software Development vb.net
Member Avatar for Jx_Man
0
111
Member Avatar for nelledawg

Hi guys, Okay so this time I need help with string input. I have the whole program (yet again) but I just need to figure out how to change letters of user input to redisplay them. The code is below and it asks the user to input the product description. …

Software Development c
Member Avatar for jephthah
0
106
Member Avatar for dallaseve

[QUOTE]Hi, how do I get rid of a conversion from double to float warning??[/QUOTE] Thanks

Software Development c++
Member Avatar for dallaseve
0
74
Member Avatar for henpecked1

I'm trying to calculate the length of three individual arrays and plug that length into a function to dynamically allocate memory to a new array and delete it. I keep overwriting my HEAP and I'm not sure where the problem is [code] void punchmeinthehead() { const int maxin = 16; …

Software Development c++
Member Avatar for henpecked1
0
137
Member Avatar for mefroggy3

Modify the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number of hours worked. Use a constructor to initialize the employee information, and a method within that class to calculate the weekly pay. Once stop is entered as …

Software Development java
Member Avatar for mefroggy3
0
8K
Member Avatar for KimJack

I have been using Eclipse for quite some time to program. I have been told that NetBeans is a little better. The problem that I am having is that I can't figure out how to get a program into NetBeans for further programming. Can anyone explain these steps? Thanks,

Software Development java
Member Avatar for Ezzaral
0
131
Member Avatar for catch.divya08

Please help me... Its very urgent... I've to finish my miniproject by tomorrow... Please Debug The coding given below... i am doin student information system. in vb oracle. i have created a module in which i wanna display info about students extracurriculars in ms flex grid control from a form …

Software Development open-source oracle visual-basic
0
93
Member Avatar for novice420

This is just a school level program and I am a C++ n00b. So I would be grateful to people helping me out with this if there is any solution. CAN I TERMINATE A STRING ENTERED BY --getch();-- WHEN I PRESS THE <ENTER> KEY ?? SEE THE PROGRAM BELOW WHERE …

Software Development c++
Member Avatar for Majestics
0
90
Member Avatar for robotnixon

Having some trouble with converting my driver input from one class to the friend class and then summing the array. My setGrade function is reading the input correctly (I think, the numbers match up) but I need to pass the class to the friend in order to add up the …

Software Development c++
Member Avatar for robotnixon
0
456
Member Avatar for peter_budo

I need to find out what is currently hold in PictureBox.Image property and take action as necessary. I tried various things but can't get it work Compare it with PictureBox which Image is set to null [code=c#] PictureBox emptyImg = new PictureBox(); emptyImg.Image = null; //Compare myPictureBox.Image.Equals((Bitmap) emptyImg.Image) [/code] Compare …

Software Development image
Member Avatar for peter_budo
0
171
Member Avatar for nov_bbt

Hi, has anybody here experience miranda before? I need help with algebraic types and type synonym? Thanks

Software Development
Member Avatar for sarehu
0
205
Member Avatar for henpecked1

Good day yet again ladies and gents. Today I'm having problems with strings and such. I've been tasked with creating fixed char arrays to contain first name, last name, and middle name. I've managed that, and have the calls in my main. I'm also tasked with using strlen (specifically) to …

Software Development c++
Member Avatar for henpecked1
0
285
Member Avatar for zawpai

Hi all, I would like to ask one question. Can I know where the focus is in a main Form? Eg: there will have some buttons, text boxes and labels. How to check the focus? Please give me some ideals. Thanks, zawpai

Software Development visual-basic
Member Avatar for zawpai
0
119
Member Avatar for isinc

I have an assignment that I'm working on and am having trouble. Not too familiar with graphics. Any help/guidance would be much appreciated to see if what I have so far is okay and what I should do for the loop part. I will post assignment details and what i …

Software Development python
Member Avatar for isinc
0
415
Member Avatar for digital_ice7

why cant i type in my address??? [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; const int maxstring = 120; typedef char stringtype[maxstring]; void newuser(){ system ("cls"); stringtype name; string type, id, cnumber, address; double amount; ofstream out; cout << "ENTER YOUR NAME: "; cin >> name; out.open(name, ios::out); …

Software Development c++ ios
Member Avatar for skatamatic
0
123
Member Avatar for Crushyerbones

Hello again :) This time I'm back with a stranger question. The following program is meant to factorialize (spelling?) a number from the command line while printing out the number of calls it made to the function "factorial". [CODE=C] #include <stdio.h> #include <stdlib.h> unsigned long long factorial(int num,int *count_ptr){ printf("Call …

Software Development c
Member Avatar for Crushyerbones
0
242
Member Avatar for morb

Hi! I have a problem with graphics in c++. It is a simple program, that displays circle. [CODE]#include "stdafx.h" #include "iostream" #include "graphics.h" #include <cstdlib> void main() { int gdriver = 9; int gmode = 2; initgraph(&gdriver,&gmode,""); setbkcolor(WHITE); setcolor(BLACK); cleardevice(); circle(320,240,180); getch(); closegraph(); }[/CODE] In visual studio i have error: …

Software Development c++ visual-studio
Member Avatar for morb
0
3K
Member Avatar for Shveetis

This is my code.. But the image doesnt appear on the frame when i run the program Please help JLabel label = new JLabel(); String path = "C:/Documents and Settings/Administrator/My Documents/My Pictures//22.bmp"; try { URL url = new URL(path); BufferedImage image = ImageIO.read(url); label = new JLabel(new ImageIcon(image)); } catch(Exception …

Software Development image java
Member Avatar for Shveetis
0
116
Member Avatar for dan9992

Im trying to read lines in from a txt file to write into another txt file but at the moment its only reading the first line. I need it to read 1 line at a time and store it to add to another txt file before reading the next line. …

Software Development c++ ios xml
Member Avatar for dan9992
0
84
Member Avatar for toomuchfreetime

I'm having a really anoying problem with my picture display for a kids game. In the code supplyed i've only given the PicPanel where the picture function is placed. ButtonHandler where the listener is for the answeering of the questions & NumberGame main class that imports the previously defined panels …

Software Development java java-swing
0
76
Member Avatar for pradeep.singh28

Can I use more than one Resultset objects through as many Statement objects using a single Connection object...when i am doing this ,there is an error message" connection is already busy with another statement". Please help me to sort it out

Software Development java
Member Avatar for masijade
0
132
Member Avatar for mcenley

Hi friends, I have written the following program to display a specific o/p: [code=Python] def square_root(a): if a>1.0: x=a-1.0 elif a==1.0: return 1.0 else: pass while True: y=(x+a/x)/2 if math.fabs(y-x)<0.0000001: break x=y return x import math i=1.0 while i<=9.0: print i, sqrt=square_root(i) print sqrt, math_sqrt=math.sqrt(i) print math_sqrt, print ''*4, difference=math_sqrt-sqrt …

Software Development python
Member Avatar for mcenley
0
121
Member Avatar for LanierWexford

The function below will take a string(s) and rotate it a given amount(num). i.e cheer rotated by 7(cheer,7) will return jolly, and (melon, -10) will return cubed. This is an attempt at exercise 8.10 from "How to think like a (Python) programmer, and it works just fine. The issue is …

Software Development python
Member Avatar for jrcagle
0
199
Member Avatar for pickachu

Im having problems with my ms acess sql command, well im trying to get the last value from the database here is my code, the error is ORDER BY clause syntax error.. [code] data.Open() record.SelectCommand = New OleDbCommand("SELECT PatientID FROM PatientRecord ORDER BY PatientID desc LIMIT 1", data) Dim ds …

Software Development dataset vb.net
Member Avatar for ivatanako
0
138
Member Avatar for sarabhjeet

Hello all, Actually i need to close a dialog automatically after 5-6 seconds. For it what should i do,please help me.I am using wxTimer self.MB = wx.Dialog(self,-1,"hello",pos=(-1,-1),size=(200,100),style=wx.NO_3D) self.SB = wx.StaticBox(self.MB,"Here description of atelier will come") self.MB.Show(True) self.timer = wx.Timer(5,self.Step(self)) self.timer.Start() def Step: if self.timer.IsRunning(): print "" else: self.MB.Close(True) Is this …

Software Development python
Member Avatar for jrcagle
0
158
Member Avatar for enigmaenigma

I have txt files in russian which i need to read and trim out all the special characters like !,digits, blankspaces and write it into another file in the encoded form. Below is the code i am using for for fname in filelist: if fname.endswith('.txt'): count = 0 path = …

Software Development python
Member Avatar for enigmaenigma
0
100
Member Avatar for Jennifer84

I wonder if I have something like this where Replace is the same as/"contains": Number == 5. My question is if it is possible to put this: Number == 5 to a std::string in any way through Replace ? [code] #define Replace Number == 5 [/code]

Software Development c++
Member Avatar for Jennifer84
0
391
Member Avatar for Lensva

[code] #include <iostream> using namespace std; typedef unsigned short ushort; typedef unsigned long ulong; ulong power(ushort, ushort); int main() { ushort x,y; ulong z; cin>> x; cin>> y; z=power(x,y); cout<< z; return 0; } ulong power(ushort i, ushort j) { if (j==1) return i; [B]else return (i * power(i, j-1)); …

Software Development c++
Member Avatar for Lensva
0
99
Member Avatar for _::suhanna::_

would you all help me? how do i do, when i double click at item using list view then bring and display the items at textbox and option button at the another form??please help me...im in urgent...thank you so much..

Software Development vb.net
Member Avatar for SolTec
0
1K
Member Avatar for leokuz

Hello! I have this simple Internet browser. It works “fine”, but I’d like part of the URL (most of it actually) to be predetermined (always same website, but different pages). For example, [COLOR="Green"]I want to be able to type only some middle part of the URL[/COLOR] & then click "[B]Go![/B]" …

Software Development vb.net web-browser
Member Avatar for leokuz
0
234
Member Avatar for Zelores

Hi, I just joined today and i need some help with python. I just started using python not to long ago in my intro programming class. We have an assignment coming up and i need some help. How do you get the sum of an integer. ie: you put in …

Software Development python
Member Avatar for Zelores
0
197
Member Avatar for Jennifer84

I might wonder if I have an int vector like this and I want to achieve the averagevalue for Element 0-8 wich is ((1+2+3+4+5+6+7+8+9) / 9) = 5 What method could be used for this ? std::vector<int> Number(10); Number[0] = 1; Number[1] = 2; Number[2] = 3; Number[3] = 4; …

Software Development c++
Member Avatar for Jennifer84
0
194
Member Avatar for miss.A

i have to create application that ask user to input Lower bound and upper bound (both intger) greater than 1 and determins all of the prime numbers within the specified bounds, inclusive. and write function procedure prime that returns True if a number is prime. False otherwise. i also should …

Software Development vb.net
Member Avatar for Jx_Man
0
162
Member Avatar for c++noobie

I have been doing c++ for somewhere between 1 1/2 and 3 months (I'm awful keeping up with time). I have a program (one of my first) that I have taken and added pieces to since I made it and it has come to be the piece of work it …

Software Development c++ ios
Member Avatar for c++noobie
0
2K
Member Avatar for shahriar2403

I need to get a total of a specific column of a table of access db in a text box in my visual basic application. What should be the code? I am using adodc to connect with the database. Help urgent please..........

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
1K
Member Avatar for waterfall

hi, im using VS.net 2005 for developing a web application.im using stored procedure for inserting records into database.i want to insert time and task for a selcetd employee but its not working. kindly help me.her's my stored procedure: [CODE] create PROCEDURE [dbo].[AssignAndStore] -- Add the parameters for the stored procedure …

Software Development
Member Avatar for waterfall
0
157
Member Avatar for hjjayakrishnan

hey i just created a game of hangman in c++ with multiplayer facilities and stuff...but i wanted to add some music to it...could anyone help me??

Software Development c++
Member Avatar for vmanes
0
104
Member Avatar for asrekdal

Hi, I am working with a wx.Python ListCtrl attempting to edit data in the second column. Is there a way of detecting which column,row has been clicked? thanks -- andrew

Software Development python
Member Avatar for asrekdal
0
92
Member Avatar for jrcagle

I'm having an opaque moment. +5 brownie points to anyone who can enlighten. The plan is to write a unit-testing module for the wxCanvas widget (good progress there :) ) So I wanted a row of different objects (similar to MS Paint) on buttons; the behavior of the different buttons …

Software Development python
Member Avatar for jrcagle
0
117
Member Avatar for aminit

Hello all: I create a simple source file in VC++ , I tried something simple,there is two strings: string1:MICROSOFTCPP string2:HELLO I want to write a code to make string2 is equal with string1,so it must be string1:MICROSOFTCPP string2:[COLOR="Green"]HELLO[/COLOR][COLOR="Red"]HELLO[/COLOR]HEL so it seem the string2 its repeat itself until it's length is …

Software Development c++
Member Avatar for amitahlawat20
0
120

The End.