132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ceyesuma

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 …

Software Development gui java oop
Member Avatar for ceyesuma
0
76
Member Avatar for techie1991

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
Member Avatar for WaltP
0
483
Member Avatar for Bart_sg

[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++
Member Avatar for tkud
0
144
Member Avatar for hsyuen

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
Member Avatar for hsyuen
0
109
Member Avatar for plusplus

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
Member Avatar for kvprajapati
0
229
Member Avatar for nola_Coder

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++
Member Avatar for nola_Coder
0
147
Member Avatar for Rageagainst20

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
Member Avatar for kplcjl
0
7K
Member Avatar for xxunknown321

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
Member Avatar for BestJewSinceJC
0
155
Member Avatar for keny2020j

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
Member Avatar for keny2020j
0
188
Member Avatar for abdulraqeeb33

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
Member Avatar for abdulraqeeb33
0
142
Member Avatar for riotburn

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++
Member Avatar for riotburn
0
149
Member Avatar for need

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
Member Avatar for AbhikGhosh
0
156
Member Avatar for Masterace

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
Member Avatar for vb5prgrmr
0
85
Member Avatar for Unidennn

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
Member Avatar for Unidennn
0
118
Member Avatar for Stefano Mtangoo

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++
Member Avatar for Stefano Mtangoo
0
94
Member Avatar for Hanyouslayer

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 …

Software Development assembly storage
Member Avatar for Hanyouslayer
0
470
Member Avatar for rcmango

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++
Member Avatar for rcmango
0
121
Member Avatar for smeghead007

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
Member Avatar for WaltP
0
105
Member Avatar for M.FARAG

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++
Member Avatar for WaltP
0
112
Member Avatar for XodoX

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
Member Avatar for BestJewSinceJC
0
114
Member Avatar for crozbme

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
Member Avatar for Ancient Dragon
0
126
Member Avatar for devs.dr

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 …

Software Development oracle unix vb.net
Member Avatar for devs.dr
0
111
Member Avatar for iramirez

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 …

Software Development asp.net sql vb.net
Member Avatar for kvprajapati
0
282
Member Avatar for HelloMe

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
Member Avatar for HelloMe
0
105
Member Avatar for icelantic

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 …

Software Development c++ storage
Member Avatar for StuXYZ
0
118
Member Avatar for Compy

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 …

Software Development oop python
Member Avatar for Compy
0
147
Member Avatar for romariejhoanna

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
Member Avatar for romariejhoanna
0
243
Member Avatar for Dizzzy

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
Member Avatar for gangsta1903
0
118
Member Avatar for unbrknchane

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
Member Avatar for Adak
0
112
Member Avatar for globalarchitect

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
Member Avatar for globalarchitect
0
431
Member Avatar for crimsonwave

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
Member Avatar for Ancient Dragon
0
123
Member Avatar for Nicky4815

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 …

Software Development c++ opengl printer storage
Member Avatar for mrnutty
0
323
Member Avatar for heliodoros

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++
Member Avatar for heliodoros
0
115
Member Avatar for zup7778

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
Member Avatar for Ezzaral
0
136
Member Avatar for emanicom

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
Member Avatar for emanicom
0
152
Member Avatar for need

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
Member Avatar for Ezzaral
0
174
Member Avatar for NordCoder

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++
Member Avatar for NordCoder
0
155
Member Avatar for emanicom

/* 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
Member Avatar for emanicom
0
145
Member Avatar for emanicom

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
Member Avatar for emanicom
0
185
Member Avatar for msr

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
Member Avatar for BestJewSinceJC
0
76
Member Avatar for shawnfrancis

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
Member Avatar for stultuske
0
166
Member Avatar for Aisha25

(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
Member Avatar for BestJewSinceJC
0
991
Member Avatar for clutchkiller

[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
Member Avatar for clutchkiller
0
89
Member Avatar for charqus

Is there in C++ , a function like this ? [url]http://wiki.sa-mp.com/wiki/Format[/url]

Software Development c++
Member Avatar for Salem
0
88
Member Avatar for shriram143

* * * * * * * * * * * * * * * i want code for this.pls giv me the code

Software Development c pascal
Member Avatar for mjdodd
0
116
Member Avatar for missmedude

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 …

Software Development c++ ios
Member Avatar for Robert1995
0
114
Member Avatar for BillWebber

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
Member Avatar for Kelbow-Mendes
0
2K
Member Avatar for srinidelite

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++
Member Avatar for Fbody
0
157
Member Avatar for alhafes

Hi everybody please I want the way to create calculator by c++ builder by using the properties ( Graphical User Interfaces) Khalid

Software Development c++
Member Avatar for Robert1995
0
126
Member Avatar for tajendra

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 …

Software Development c++ promotion seo
Member Avatar for tajendra
0
3K

The End.