132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Cosa

[code] void ChangeAddress() { char searchaddress; char newaddress; cout << endl; cout << "Please enter street name to be changed "; cin >> searchaddress; for (int i=0; i<numrec; i++) { if (strcmp(SubscriberID[i].Subscriber_Address.streetname, searchaddress) == 0); { cout << "Enter the new street name: "; cin >> newaddress; } } } …

Software Development c++ file-stream
Member Avatar for Cosa
0
285
Member Avatar for wollacott

Write functions to: void clearscreen(void); /* Clears the screen for update, hint call system("clear") */ float calc(float num1,float num2,char operator); /* calculate the result of num1 operator num2 */ any other functions which you deem necessary. Write a main program which will display a title line centered at the top …

Software Development c
Member Avatar for jephthah
0
268
Member Avatar for Jennifer84

I have a simpile question. I have a string like this. [code] "Num == 1" [/code] Is it possible to extract this in any way so it will executable code in: [code] int Num = 1; if ( Num == 1 ) // To extract that string and put that …

Software Development c++
Member Avatar for Jennifer84
0
108
Member Avatar for Annieken

Hi 1) I'm trying to display a list in a listbox. But I only see the last entered item in the listbox. This is my code: [code] List<BurstKlasse> Burst = new List<BurstKlasse>(); Burst.Add(new BurstKlasse(lengte,CPU_Burst)); listBox2.DataSource = Burst; [/code] 2) My second problem is that I can't uncheck the radiobuttons. If …

Software Development
Member Avatar for Annieken
0
102
Member Avatar for mathmagic

Is it possible to add two hexadecimal numbers in C? If so, i would request someone to help wit the method or the logic asap. thank you :)

Software Development c
Member Avatar for jephthah
0
6K
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 jimJohnson

Hey everyone I am kind of stuck with these function. i am trying to work ahead to get stuff done faster and this is what my output is so far. I am stuck on the width part. I am not trying to have anyone do my assignment for me and …

Software Development c++
Member Avatar for Lerner
0
545
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 giriraj

Dear all i am using QBasic language in DOS plateform i.e. in CUI mode. No w i want to upload the jpeg file format picture. Pls help me if you have any idea or code in QBasic . Thank you Giriraj

Software Development qbasic
Member Avatar for JRB6478@ATT.NET
0
649
Member Avatar for yarita

Can anybody help me figure out how to fix this so it would come out the highest & lowest score??? [code=cplusplus]: #include <iostream> #include <iomanip> using namespace std; int main() { double *score; double total = 0; double average; double max = 0; double min = 0; int testscore; int …

Software Development c++
Member Avatar for Majestics
0
161
Member Avatar for amitahlawat20

I am not able to figure out the code required for accepting a string from user , but the memory for it should be dynamically allocated and referenced using pointer. Have a look at the following: char *p=new char[length_of_string+1]; This statement would work to dynamically allocate the string ,but still …

Software Development c++
Member Avatar for Narue
0
96
Member Avatar for zawpai

Hi all, Has anyone used the skin software in VB 6.0 because I would like to know one question? Now, I am using that software, Active Skin 4.3, in VB 6.0 program. Whenever I start to run my program, it will show one message, "Trial version of ActiveSkin control", with …

Software Development visual-basic
Member Avatar for Jx_Man
0
145
Member Avatar for sanfan49er

I have been working on this code and I can't get it to work any help out there? I am a new user and would really appreciate it if somebody can correct whats going wrong with it. [code=cplusplus] // DEBUG10-4 // PartTimeEmployee derives from Employee // Employees make $800 per …

Software Development c++
Member Avatar for Narue
0
106
Member Avatar for jsosnowski

I have created several new components but cannot get them to appear in the tool palette. (BDS2006). The components are created in a package that compiles. The package includes the register procedure in the Interface and the implementation sections as follows: Procedure Register; Begin RegisterComponents('JESComp', [TcolorButton, TAButton, TBButton, TCButton, TDButton, …

Software Development display pascal
Member Avatar for jsosnowski
0
306
Member Avatar for kireol

I'm was a web application developer for years. I'm dabbling in programming in a dialog/event environment by writing an app on my AT&T tilt(PPC). big change for me. I wrote a simple app on my tilt that connects to a server, gets data, and updates some controls with the data. …

Member Avatar for vijayan121
0
129
Member Avatar for lorentz

Hey! I'm doning my thesis work right now and I'm programming in C# (for the first time). I want to print multiple pages (2 or 3) but I don't know how. I've searched and found some info but I think my problem is a bit different. I'm not printing from …

Software Development
Member Avatar for lorentz
0
224
Member Avatar for zoom2arun

I need help for my program I need to run a applet in a server(tomcat) and the applet(a 2 player game) should be available for playing. Now, iam able to load applet in the browser, but each browser is running its own instance of the applet. I need a single …

Software Development java web-server
Member Avatar for apsivam
0
114
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 manikantag

Hi All, Does anyone know how to generate sequence diagrams from C++ Source code using Rational Software Architect(RSA)? If anyone knows please help me in this issues. Thanks & Regards, Manikanta.

Software Development c++
Member Avatar for manikantag
0
108
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 USUAggie

Hello all, I am having some trouble creating and using a template based linked list and I hope you all can help me out. I have created a LinkedList class, and I am trying to use it in my main, but I get a unresolved external link error, that I …

Software Development c++ linked-list
Member Avatar for bugmenot
0
83
Member Avatar for suganzeni

Hi all i am working with VB.NET for mobile application. I want to open a HTML page in the internet explorer from my form and the size of the internet explorer should be limited to the Pocket Pc size. How can limit the size of internet explorer and how can …

Software Development html-css vb.net
Member Avatar for leokuz
0
155
Member Avatar for Jawker

Hello Everybody, I just started learning programming about 2 months ago. I'm trying to do a Tic-Tac-Toe game using labels but I have a little difficulty. How do I get the computer to check if 3 labels are of the same value. I've tried this: [code] If lblLeft.Text And lblCenter.Text …

Software Development visual-basic
Member Avatar for Bob Jacobs
0
91
Member Avatar for Dio1080

#1, Im tryin to get this bb code right, #2 I need help with finding the problem with me code, it is saying that my for loop is a illegal start type and also a identifer is needed, but I have no clue, this is my first time doing object …

Software Development java java-swing
Member Avatar for javaAddict
0
136
Member Avatar for Xerema

Hello, I just began doing c++ today, and i've done a program like this: [code=cplusplus] #include <iostream> using namespace std; int main() { int num1; int num2; int valinta; int valinta2; cout<<"Haluatko pelata pelia? 1.Kylla 2.En\n"; cin>>valinta; if(valinta == 1){ cout<<"Paljonko on 3+2: "; cin>>num1; cin.ignore(); if(num1 == 5){ cout<<"Aivan …

Software Development c++
Member Avatar for samer.daur
0
98
Member Avatar for madhusamala

i want the insert statement in jdbc for the following name gs al ts madhu 1000 500 sud 2000 600 now i want to access gs and al from the database table by using select statement now i want to add gs and al like totalsalary=gs+al; now i want to …

Software Development java sql
Member Avatar for javaAddict
0
110
Member Avatar for jbett

please help me to debug this error run-time error "424" object required.

Software Development visual-basic
Member Avatar for cometburn
0
74
Member Avatar for KimJack

Hello All, I am trying to figure out how to write user input into a text file. I created a text box that the user can type his/her name into. I am trying to get the information from that text box to be written to the text file using print …

Software Development perl
Member Avatar for KevinADC
0
67
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 diyanajaafar

hello, Im doing a system to calculate student attendance to class. Now i'm having problems to grab a data from Access, use it as a value in VB calculation. Then, how to send the answer of the calculation to another [FieldName] as an updated data in Access. the formula of …

Software Development visual-basic
Member Avatar for cometburn
0
106
Member Avatar for davidebrownzvi

How do I unlock the forms (for editing) in a vb6 project? One form (the main one) is open, but the rest are locked and read only. Thanks for help.

Software Development visual-basic
Member Avatar for debasisdas
0
83
Member Avatar for gallantmon1

I just want to ask if is smart or even possible to use a switch case statement in a program where the user will not be required to input anything, but instead the program gets the input from a *.txt file. This is a suggestion by my friend, I just …

Software Development c
Member Avatar for WaltP
0
119
Member Avatar for heidigjr

okay, so i'm totally new to this. the purpose of my assignment is to compare two strings and to see if they're anagrams my problem is that when i run it, it compiles okay, but then i'd get a message from windows, saying that it has stopped working. er, yeah. …

Software Development c
Member Avatar for WaltP
0
100
Member Avatar for yarita

Can anybody help me figure out how to fix this so it would come out the highest & lowest score??? #include <iostream> #include <iomanip> using namespace std; int main() { double *score; double total = 0; double average; double max = 0; double min = 0; int testscore; int count …

Software Development
Member Avatar for caromok
0
144
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 88omar

The question says Write a menu driven program that finds the minimum, maximum and sum of 3 numbers (integers). All the numbers entered should be unique. (i.e. no two numbers should be same .Check this condition) Please adhere to the following guidelines. a. Write a function that finds the smallest …

Software Development c
Member Avatar for Ancient Dragon
0
193
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 pmtheint

Hello, I'm a new learner to VB.Net and don't know much about it. Recently, the term "Stream in the context of data files" has made me think. What is it actually? I've searched for it everywhere but found no satisfactory answer to it. I may be silly to ask this …

Software Development vb.net windows-vista
Member Avatar for ivatanako
0
99
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 crazywoods

Write a C++ program called “HW3c.cpp” that will solve the following problem: The pressure of a gas changes as the volume and temperature of the gas vary. We are all familiar with the ideal gas equation of state which relates pressure, specific volume and temperature (Pv = RT) where P …

Software Development c++
Member Avatar for Narue
0
157
Member Avatar for crazywoods

Your instructor wants a program that will read in a set of grades from a file called “grade.txt” (see below and is available on blackboard under assignments) and report the total number of letter grades i.e. A, B, C, D and F in the file. You program must use case …

Software Development c++
Member Avatar for plgriffith
0
259
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 sanjayk1241@yah

Hi, I am using Borland C Compiler for preprocessing a source file. I am using the following command for preprocessing.... C:\cpp32.exe -P- -o"outputfilename" "Sourcefilename" According to my requirement i should get source file comments into preprocessed file. The above command is not satisfying my requirement. I don't which options i …

Software Development c
Member Avatar for mitrmkar
0
191
Member Avatar for uncertainty

What library is there in C++ that has the ServerSocket, Socket,MulticastSocket, Datagram & DatagramSocket classes?it is java.net in java i guess :(

Software Development c++
Member Avatar for hammerhead
0
112
Member Avatar for a1eio

Hi all, Just wondering if there is a way to see if a window has been destroyed or not. eg: [code] root = Tk() bla ... bla ... if root has been destroyed: do something... [/code] thanks in advance a1eio

Software Development python tkinter
Member Avatar for a1eio
0
304
Member Avatar for welbyobeng

I have just finished a java code and I am having trouble with displaying each division increase or decrease from previous quarter and also a company increase or decrease from the previous quarter. Can someone help import javax.swing.JOptionPane; import javax.swing.JTextArea; import java.text.DecimalFormat; public class twoarray { /** * @param args …

Software Development java java-swing
Member Avatar for Ezzaral
0
96

The End.