132,726 Archived Topics
Remove Filter ![]() | |
If I run my program. a GUI shows. clicking the combox. calls a series of classes that produce what text needs to be in the textfields so one of the classes calls fillSetters which is in a class that extends the GUI so "this" should be an instance of the … | |
Hello, I was trying to implement data structures using file operations. I am using a data structure of two integers, one being the index number and other being the value. My actual aim is to recreate the file containing the data using a log. But, the program isn't running as … Software Development c++ data-structure file-system ios | |
[CODE]#include <iostream> #include <iomanip> #include <string> using namespace std; int main() { double V,I,pf,Ib; unsigned short int choice; int In = 0; cout<<"Please choose power supply type\n"; cin>>choice; switch(choice) { case 1:cout<<"You have chosen a single phase power supply\n"; break; case 2:cout<<"You have chosen a three phase power supply\n"; break; … Software Development c++ | |
I am new to python and I am trying to write a simple program that would cd from my home directory to another directory, run an ls command and then return to my home directory. The OS is Redhead linux 5.4. I am using python 2.4.3. I tried this first: … Software Development python | |
In my code I want to upload a file to my project(named Musiker), under the folder music. Here is what I did so far, it's not working. 'to get the path where to upload it, I did the following Dim strpath As String = Application.StartupPath Dim num As Integer = … Software Development file-stream file-system vb.net | |
I have an animated sprite animal character that runs across the screen using the arrow keys. It is a series of 7 individual frames. The first frame is its "sitting" position, which is as of now only called when the program starts. I want the animal to return to it's … Software Development c++ | |
I am creating an application that has a thread which constantly moves the contents of one folder to another (Using Visual Studio, Compact Framework) I start the thread like this [CODE]public static class Program { /// <summary> /// The main entry point for the application. /// </summary> /// [MTAThread] public … Software Development c# visual-studio xml | |
How do i compare two linkedLists so that the onutcome is a sorted linked list from least to greates. Heres my code so far. list1.txt 1 2 3 7 9 10 13 list2.txt 4 5 6 8 11 12 14 how do i compare the two and make it into … Software Development java linked-list | |
How can i retrieve the information from Ms Access and put it into a VB.net 2D Array? Urgently need help in this Software Development vb.net | |
Hi, I am very new to perl pgming. I have a weblog which has a standard format as the below example IP | remoteUser | authUser | Date/Time | Request | Status | Bytes For example, 74.6.72.229 - - [27/Jan/2007:00:00:36 -0500] "GET /~jking/ralph.html HTTP/1.0" 404 215 the fields are seperated … Software Development perl | |
I am trying to find the yield of a bond given the bond price, coupon, and semiannual three yr bond using newtons method. The value for B in the output should about equal 101. I have checked everywhere for errors but cant find any. Any ideas? And yes I am … Software Development c++ | |
I need to sort the students in array in ascending order of first name. I tried to do arraylist but it didn't work. Can someone please help me with this? Student.java [code] public class Student { private String firstName; private String lastName; private String studentNumber; Student(String fName,String lName,String sNumber) { … Software Development java | |
hi need codes for displaying a negative value eg ($-1000) in the balance txt when a person pays more cash here are my codes Private Sub CmdCalc_Click() 'to declare variables Dim Nam As String Dim Unit As String Dim Amt As Currency Dim Bal As Currency Dim Tot As Currency … Software Development visual-basic | |
Hi, i know its probably the easiest thing ever, but im a noobie in c, and in need of some help with fmax function, i just dont really get it. im trying to compare 3 floats heres what im trying float fmaxf (float int1, float int2, float int3) im not … Software Development c | |
Hi all, how can I disable internet in windows/Linux machine. I want to disable completely and enable it at will using C++ Thanks Software Development c++ | |
I have been working on a project in Intel assembly until I hit a bump and I can't seem to get myself out of a hole. I realize that this is homework, and I don't expect anyone to do my work for me. However, a little help would definitely be … | |
Hello, i am very interested in the c++ language, i decided to make my own small program and test how arrays work with classes with private variables and private operations and then calling them any way i'd like from the main function. a very big reason about this is probably … Software Development c++ | |
Ok what im tryin to do is open a file by the name a user request after that i ask the user and id number to look for in the file if its found i want to display it along with the name after it but i cant figure out … Software Development c++ file-system ios | |
I have downloaded a library from this site that deals with Matrix and Complex........Does it do this correctly??? [URL="http://www.zenautics.com/matrixdoc/index.html"]http://www.zenautics.com/matrixdoc/index.html[/URL] if so I want to use this library to get the inverse matrix of of a matrix consists of a complex elements how can I do this??? If it is a … Software Development c++ | |
Hello, I got an car inventory program that stores the names of cars etc. I thin a class arraylist would work better. Like an array that can "grow" and "shrink". But I do not know how to convert the code from array to arraylist. It should still keep the member … Software Development java | |
I am trying to count the characters in a linked list. I am receiving a compiler error when this function is tested... **invalid types `char[int]' for array subscript ** [CODE]int slist::count_c(char c) const { slistelem* temp = h; int count = 0; for (int i = 0; i != '\0'; … Software Development c++ linked-list | |
hi i m working on Student Database Management system, I have used button s for insertion, deletion, and update. Insert and delete button is working but update's click gives syntax error: Pls help as soon as possible: [code] Try Dim com As New OleDbCommand com.Connection = con com.CommandText = "update … | |
Hi everyone, I'm creating a database installer where I have some code to create database, tables, stored procedures, etc. I don't have problems when creating the database, tables and inserting required data. My problem is when my code gets to the stored procedures section. Here is what I do: I … | |
Hello everybody... I did a project in c++ about factorials. Now i will do it on VB6. But my problem is somehow my output is always 1. So i think my funktion i made take no action at all. Would be greate if someone can spott my error...Thank you [code] … Software Development visual-basic | |
I am working on an assignment which is a container class that uses an array to hold strings. We must use dynamic memory, and can only use cstring class functions, no objects can be strings. So we must use char arrays. Anyways my problem is that whenever i run my … | |
So, I'm still a beginner at python and OOP in general. But I had a question about the order of operations. Basically what I have is a module that contains a class that will reset all self variables for the object and give the object a card. The script I'm … | |
i need the help of a [B]turbo C master[/B]!!!!...one of my final exam problem in my subject has this problem: [B]The Department of mathematics has asked you to develop a program to help elementary students check their addition and subtraction computations. The program to be developed will ask the user … Software Development c mathematics | |
Is there a way to setup a jFormatted Field and retrieve a int value using getValue()... I am abit lost. [CODE] private jFormattedField CsNumber = new JFormattedField(); [/CODE] Also is there a way of restricting the value being input to only being a number and not negative? Software Development java | |
so im working on a mid-term exam average program of a class of 10 students. would my code start as follows?[CODE]void getnames(char stuname[10][20]) { int ctr; for(ctr1=0;ctr1<10;ctr1++) { printf("Enter Name %d ", ctr); scanf("%s",stuname[ctr]); } void printnames(char stuname[10][20]) { int ctr2; for(ctr2=0;ctr2<10;ctr2++) { printf("%s\n", stuname[ctr2]); } [/CODE] and have getNAME … Software Development c | |
I am attempting to create a windows application that listens to port 80. I started with a socket, then tried a TCP, and eventually an HTTP, Listener - nothing works. I keep getting an access denied error. As it turns out, the geniuses at Microsoft flow all port 80 traffic … Software Development microsoft-access visual-studio | |
Hi I need help regarding the above question, ive tried to type: "DWORD file;" but the compiler says its undeclared. WHy? isnt DWord 32 bits? thks. Software Development c | |
Working on my pacman project I have come across something strange. Im using the outline font method from NeHe and have used the code from there for text printing. When I copied it to my main method and texted it worked fine. But a lot of my objects need to … | |
hello guys this is my first attempt in C++ and i am getting an error :( the programs is made to read 20 numbers and find how many of them are even (like 2,4,6,20,40) [CODE] #include <iostream> using namespace std; int c[20]; int s = 0; int i = 1; … Software Development c++ | |
I am getting the error, cannot find symbol- Constructor employee (blahblahblah) heres the employee class it compiles fine.... public class Employee extends Person { private double salary; private int emplId; private String emplType; private String emplTypeDescr; private String firstName; private String lastName; public Employee(String firstName, String lastName, double salary, int … Software Development java | |
I just want to know If I can combine the 2 codes together, that I created, or do I have to start over? The new assignment is to: Use an array for the different loans. Display the mortgage payment amount for each loan. Then, list the loan balance and interest … Software Development java user-interface | |
I have two classes. Student and StudentTest. My test class wil read the student info from the command line. I also need to check if the student already exists with equals() method. Can someone help me with this? Student [code] public class Student { private String firstName; private String lastName; … Software Development java | |
I'm creating a particle effect system in C++ with SDL. I'm coding a hiarcharchy like [URL="http://www.gamasutra.com/view/feature/3157/building_an_advanced_particle_.php?page=2"]this one[/URL] (scroll a bit down and you will see it). I have an abstract base class called Particle. It's abstract because I want the derived classes to be forced to implement the pure virtuals … Software Development c++ | |
/* PRG/420 Week 3 Assignment: Mortgage Calculator Program Programmer: Eva Manicom Date: March 1, 2010 Filename: Mortgage Calculator Program Purpose: Modify the mortgage program to display the mortgage payment amount. Then, list the loan balance and interest paid for each payment over the term of the loan. The list would … Software Development java user-interface | |
The top code is my Loop for the mortgage program. The second code is my Array list for the Mortgage program. Is there a way to combine the 2 to do the following:* Use an array for the different loans. Display the mortgage payment amount for each loan. Then, list … Software Development java | |
Hello, I would like to declare a class atribute so I wrote something like this: [CODE] class Xpto{ private static int value; }[/CODE] However, once is private, I cant access it like Xpto.value nor a.value ("a" is a Xpto instance) Declaring it protected I can access it through class and … Software Development java | |
I am going to come right out front and say I am in computer science class and we are working on java code and I am needing help. I keep getting an error message that reads: ComputeChange.java:4: class, interface , or enum expected java.swing I understand that it is telling … Software Development java java-swing | |
(Science: wind- chill temperature) How cold is it outside? The temperature alone in not enough to provide an answer. Other factors including wind speed, relative humidity, and sunshine play important roles in determining coldness outside. In 2001, the National Weather Service (NWS) implemented the new wind chill temperature to measure … Software Development java | |
[code] void NewCustInfo(CustData &cust) { cout << "Customer Name: "; getline(cin, cust.name); } [/code] CustData is a structure that is declared, and the name data member of that struct is of type string. For some reason when I call this function(there are no compile errors), it displays the cout statement, … Software Development c++ data-structure | |
* * * * * * * * * * * * * * * i want code for this.pls giv me the code | |
I just did this and I am not sure I am doing this correctly. You have purchased a stereo system that cost $1000 on the following credit plan: no payment down, an interest of 18% per year, and monthly payments of $50. The monthly payment of $50 is used to … | |
Hi, and thanks for reading, I only hope you have a chance of helping me out, whoever you may be i thank you in advance. Here is the problem I am up against. My program is random number selector like a lottery number picker. I made it so it picks … Software Development visual-basic | |
hello.. this is srini... is any one clear me the concept of BIT FIELDS........and what is necessity to use????? explain the below program..........i hope i can get a good reply from the great members [CODE]// BIT FILED // #include<iostream.h> #include<conio.h> struct word { unsigned w0:1,w1:1,w2:1,w3:1,w4:1,w5:1,w6:1,w7:1,w8:1,w9:1,w10:1,w11:1,w12:1,w13:1,w14:1,w15:1,w16:1,w17:1,w18:1,w19:1,w20:1,w21:1,w22:1,w23:1,w24:1,w25:1,w26:1,w27:1,w28:1,w29:1,w30:1,w31:1; }; union set { word … Software Development c++ | |
Hi everybody please I want the way to create calculator by c++ builder by using the properties ( Graphical User Interfaces) Khalid Software Development c++ | |
I read some time back that memory operation on stack is much faster than heap. With this information the first thing came into my mind was that if we get a way to allocate memory dynamically on stack it would surely help us to optimize memory operation cost. I started … |
The End.