132,726 Archived Topics
Remove Filter ![]() | |
[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 | |
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 | |
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++ | |
![]() | 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 ![]() |
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 | |
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 | |
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); … | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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++ | |
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, … | |
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. … Software Development c++ client-server socket-programming web-server | |
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 | |
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 | |
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 … | |
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. … | |
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++ | |
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 | |
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 | |
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 … | |
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 | |
#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 | |
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++ | |
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 … | |
please help me to debug this error run-time error "424" object required. Software Development visual-basic | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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 |
The End.