43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for badboy11

Need help with implementing a pure abstract class via inheritance, using namespace to wrap all my classes to avoid conflict with others. I have been able to build and run the code successfully if I remove namespace wrapper from my abstract class and all classes that inherit from my pure …

Software Development c c++ oop
Member Avatar for badboy11
0
257
Member Avatar for ilovejava

I had to make a arrayList and i do not know why is it not working [CODE]public class ArrayList<E> { private E[] theArray; private int size; private int capacity; public ArrayList(int initialCapacity) { this.size = 10; this.capacity = initialCapacity; theArray = (E[]) new Object[initialCapacity]; } public ArrayList() { this(1024); } …

Software Development java
Member Avatar for ilovejava
0
207
Member Avatar for lxXTaCoXxl

I have a homework assignment due this week and am fairly new to C++. Don't have a book so I can't really go on anything other than the video material and power point slides my teacher provides. I have 98% of the assignment done, however I'm encountering logic problems. I'm …

Software Development c++
Member Avatar for lxXTaCoXxl
0
107
Member Avatar for DelphiGuy

Heya guys, basically here is some code for a simple example program: [CODE] unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls; type TForm1 = class(TForm) img1: TImage; procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; …

Software Development delphi pascal
Member Avatar for DelphiGuy
0
2K
Member Avatar for androidf

I need to have a update button to update a edited textfield and save it to the database. I have created the button but have no idea on how to make it update the edited textfield and update the SQL database automatically. Pls help!!): This is my code: [CODE]private JButton …

Software Development gui java
Member Avatar for androidf
0
1K
Member Avatar for vindom

Hi every1! Thats my code that used to work before I've added some attributes to my items. [CODE]void manager::EditStockItem() { ListStock(); { string z; bool found; cout<< endl<<"<===================================================>"<<endl<<endl; cout << "Enter ID of the Stock Item you want to edit" << endl<<endl; cin>>z; found = false; vector <Item*>::iterator iter = …

Software Development c c# c++ oop
Member Avatar for vindom
0
250
Member Avatar for Quinncunx

For a school project I need to make a timer with a bell sound that sounds every 60 seconds in VB, I cannot work out how to make the bell sound on the 60th second, I am not getting any errors in the VB console, so I assume that I …

Software Development audio vb.net
Member Avatar for M.Waqas Aslam
0
156
Member Avatar for mehnihma

Can you help me with one problem, I dont know how to invoke action op menu not the menu item? I have File and Help menus and I need to invoke action when the Help menu is pressed but dont understand how, I know how to do in on MenuItem …

Software Development java
Member Avatar for DavidKroukamp
0
1K
Member Avatar for Torf

File, new project, Java+Java application, Project name just a random name, finish. Then.. new file, Java+Java class, Class name payroll, finish.. [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javaapplication5; /** * * @author computer public class …

Software Development java
Member Avatar for JamesCherrill
0
967
Member Avatar for androidf

Hi, I need to create an html page to export some information. Currently, by using java, i've exported information to excel. But now, I need to export the information in HTML page using java.Is there any APIs I can use? Thanks.

Software Development html-css java microsoft-office
Member Avatar for JamesCherrill
0
1K
Member Avatar for tomexlfc

Hello everyone, Please can someone help me to debug this error? It has been giving me a huge headache since last night. Anytime I try to add new record into my database, this error message keeps coming up: "Error: INSERT INTO Customer(Cust_ID, Name, Address, Username, Password) VALUE(?,?,?,?,?,?)". I don't know …

Software Development vb.net
Member Avatar for artemix22
0
526
Member Avatar for sonicx2218

Hey guys..I'm a newbie, so please try to use easy words, as the more complicated stuff may make me bleed out of my ears ;) So I'm trying to make this program where you type in a number using the xxx xxx xxxx style The java program will then compare …

Software Development java
Member Avatar for stultuske
0
158
Member Avatar for BorisSobad

Making a logbook using editbox for entries that fill a listbox. I have two enter buttons. One would enter line in Red one in Black but I don't know how to change the font color in the listbox. My first pascal program and this is the last step for completion.:( …

Software Development pascal
Member Avatar for pritaeas
0
660
Member Avatar for shanki himanshu

cant we compare two for inequality? i mean if i have a char array 'a' and i want to know the number of digits in an array which is not '4' or not '7' i.e if my array has value 4567778 the output should be 3 as there are three …

Software Development c
Member Avatar for DJSAN10
0
75
Member Avatar for zios007

I need to put the number of cycles for each assembly instruction in the comment field and then calculate the total number of cycles for the entire 10 second timing interval. Need to calculate the processor clock frequency (MCLK) by dividing the total number of cycles per interval by the …

Software Development assembly
0
73
Member Avatar for gynmd

i'm studying file processing. when i execute the second code that Reading Data from a Sequential Access File something goes wrong with it. i couldn't find what is wrong. is there anyone who can help me? [CODE] /*creating a sequential file*/ #include<stdio.h> int main() { int account; char name [30]; …

Software Development c file-system
Member Avatar for nairulhadri
0
227
Member Avatar for thedonedeal

I currently have two stopwatches ( running in a VB 2010 program. What I would like to do is combine their values together and have their results outputted in a string formatted as 0:00:00. I tried the Add method and the + method but this fails. This is in short …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
174
Member Avatar for thedonedeal

I figured I'd ask this here before I go back to other sites. I'm trying to dynamically create a set of stopwatches and buttons. Each stopwatch will be controlled by a button which is also dynamically created. However, each time I code it, I always ended wiring both buttons to …

Software Development vb.net visual-basic
Member Avatar for thedonedeal
0
399
Member Avatar for Gsterminator

Hey everybody! So my problem is the very last part, getting the results of my calculation. So what i've done is created a stack with my very own stack class. The = button is suppose to display the result but i get a runtime error. Please help me out. Oh …

Software Development gui java java-swing
Member Avatar for Gsterminator
0
2K
Member Avatar for Dexxta27

I have to make a small paint program using the GUI. I need to know how to use the combo box. I know I have to make an array with the list of colors but I don't know how to add it to an action listener and choose the items. …

Software Development gui java java-netbeans
Member Avatar for Dexxta27
0
2K
Member Avatar for shibuvarghese

I created on Employee master form. The details which i enter in this form is saving to sql table. But if i use Wild characters example in Name field if i enter "Varghese D'Costa", then the following error comes : Line 1: Incorrect syntax near 'Costa' Unclosed quotation mark before …

Software Development sql vb.net
Member Avatar for Reverend Jim
0
2K
Member Avatar for Rimojenkins

Hello. I am working on a data structures program that should be quite easy, but after programming in assembly language using mips, I forgot a little bit of C++ and can't remember how to do this. I've used my googlefu for at least 2 hours and still have this problem. …

Software Development c++ data-structure linked-list
Member Avatar for Rimojenkins
0
176
Member Avatar for Stefano Mtangoo

Hello all, I need some help to get all wxpython methods that associate widgates. I mean ALL methods for wx.Button, wx.Frame etc. I will appreciate if I will get something like pdf version but anything or Idea is welcomed Thanks and regards Steve

Software Development pdf python
Member Avatar for joryrferrell
0
124
Member Avatar for inspire_all

[CODE]#include<iostream.h> #include<conio.h> struct marks { int a:3; int b:3; int c:2; }; int main() { clrscr(); marks m={2,12,5}; cout<<m.a<<m.b<<m.c; getch(); return(0); }[/CODE] o/p is 2-41 i got how 2 and 1 came but didnt get how -4 came. according to me it should have been binary for 12=1100 b can …

Software Development c++
Member Avatar for MandrewP
0
121
Member Avatar for SaimaAsif

Hi, I have a program which is almost working now further implementation wants a records to store different entities and to create their relationship. I don't want to create the new forms what would be the best and easiest way of doing this. Any help would be highly appreciated. Best …

Software Development c++
Member Avatar for SaimaAsif
0
148
Member Avatar for joryrferrell

It starts off fine, after starting the countdown function and pressing the Action button, it causes the program to freeze. [CODE] import wx import time class LeftPanel(wx.Panel): def __init__(self, parent, id): wx.Panel.__init__(self, parent, id, style=wx.BORDER_SUNKEN) self.text = parent.GetParent().rightPanel.text self.text_2 = parent.GetParent().rightPanel.text_2 button1 = wx.Button(self, -1, 'Count', (10, 10)) button2 = …

Software Development python
Member Avatar for joryrferrell
0
160
Member Avatar for Abysinian

Hi there, I have an assignment for University that requires me to use a grid of buttons in any way I want to create some sort of game. I've chosen to make mine like a Bandit machine: [LIST=1] [*]Press "Spin!" Button [*]3x3 Grid Of Buttons Randomize Their Colours (Either Red, …

Software Development
Member Avatar for Abysinian
0
127
Member Avatar for honeybee2090

i i have a listbox and 1 button in my application thing i want is when i click on some listbox item auto press that button or when i click on some item in list box it remove selected items from list box just with mouse click

Software Development vb.net
Member Avatar for honeybee2090
0
87
Member Avatar for ringo_tech

hi there, i want to implement a server that receives voice packets from many clients then send these packets to all the clients so that the clients are communicated to each other through the server. how i can send the received packets to all the clients? any good tutorials or …

Software Development java
Member Avatar for DavidKroukamp
0
2K
Member Avatar for kalcio

hi i have a problem with my interface,i want to I want when I hit the button, the progress bar goes off, so I have not found where is the problem in my code is that any one can help me and thank you. import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JProgressBar; …

Software Development java java-swing oracle user-interface
Member Avatar for kalcio
0
140
Member Avatar for Alex_2011

Hi, I am learning about the search capability in an array. I wrote a code that stores three names (first & last) and I want to: - Make the user select a number (from 1-3) by using a (combobox) - If the user select the proper number then a message …

Software Development vb.net visual-basic
Member Avatar for Alex_2011
0
331
Member Avatar for sharathg.satya

which one cannot be considered as a counter variable? [CODE] counter = counter +1 counter = counter -1 counter = counter +3 counter = counter *2 [/CODE]

Software Development vb.net
Member Avatar for sharathg.satya
0
90
Member Avatar for rushikesh jadha

how to include database files into my source code package.

Software Development java
Member Avatar for peter_budo
0
113
Member Avatar for mr_noname

Hey. I'm pretty new in Python. I'm trying to read from my file all the content and put it in a string. My file looks: 1 string1 2 string2 10 string 3 and I want to obtain: ["1", "string1", "2", "string 2", "10", "string3"] using this: [CODE] def read(self): file …

Software Development python
Member Avatar for snippsat
0
269
Member Avatar for toferdagofer

import javax.swing.*; import java.awt.*; import java.awt.event.*; public class TheatreRevenue extends JFrame { /** * */ final double percent = .20; double adultCost; private JTextField label2; private JTextField label4; private JTextField label6; private JTextField label8; private JButton button1; private final int WINDOW_WIDTH = 400; private final int WINDOW_HEIGHT = 200; /** …

Software Development gui java java-swing
Member Avatar for DavidKroukamp
0
1K
Member Avatar for inspire_all

i am a c++ beginner and i did not get the concept of virtual functions in polymorphism i am not getting the following lines [QUOTE]virtual function has an important advantage over simple overloading .if a particular member function is not defined for any derived class but is called through derived …

Software Development c++
Member Avatar for inspire_all
0
141
Member Avatar for rushikesh jadha

please tell me step of converting java source code into jar in netbean or if any software available please send me download link of it.

Software Development java
Member Avatar for rushikesh jadha
0
313
Member Avatar for faintdeath

The purpose of the program is to create an account where you can deposit, withdraw, and check your balance. I have to use class and put it into a project with a .cpp and .h file. When i compile this it works almost perfect, but the balance always starts at …

Software Development c++
Member Avatar for faintdeath
0
2K
Member Avatar for ruval002

i need helping constructing an array of structs, this is my part of my header file which contains the following struct [CODE] struct PCB { el_t id; // contains the priority of the process string state; // current state of the process (e.g running) PCB *next;// link to the next …

Software Development c++
Member Avatar for ruval002
0
205
Member Avatar for dennysimon

hello all how to read from a text file which is not only run at the developer machine but also run at the other machine (after jar ing) I have tried ,the code run at my own machine but cannot find the text file on other machine thank you denny

Software Development java
Member Avatar for dennysimon
0
337
Member Avatar for EnriqueI

Hi everybody, I have a problem and if you could help me as soon as possible I'll really appreciated I have finished a C++ program but I've got a problem in a small part of the program ,I tried to solve it many times but so far I couldn't figure …

Software Development c++
Member Avatar for EnriqueI
0
206
Member Avatar for sota

Hi all, I ve been seeking a tutorial,article etc. about 2D cliext::vector . These are using <cliext/vector> library and cliext namespace. At once i need 2d vector decleration and its erase method to remove all rows which are full of zeros. Any help 'll be greatly appreciated.

Software Development c++
Member Avatar for sota
0
378
Member Avatar for Goldfinch

I was writing this simple loop and it's giving me trouble. It's supposed to count through the permutations in a deck, so Suit is supposed to go as high as Suit: 3 and Rank is supposed to go as high as Rank: 12, but it isn't doing that. My program …

Software Development java
Member Avatar for Goldfinch
0
181
Member Avatar for sokoxs

Hello everyone! I am new to VB.Net and I am actually developing a simple POS system. I am using visual studio 2010 and Access 2007. I created a form where the user can search the database and view the invoice details by entering the invoice id in a textbox. The …

Software Development vb.net visual-studio
Member Avatar for sokoxs
0
230
Member Avatar for inspire_all

i recently read that we can pass function to a function by using pointer to a function. i tried with an simple example.i defined sum function and passed it to average function so that it calculated average of return value from sum and 2 more nos.. rather than convenience point …

Software Development c++
Member Avatar for rubberman
0
254
Member Avatar for Lucaci Andrew

[CODE]def prel(x, i, j): if (i < j - 1): k1 = (j - i + 1) / 3 k2 = 2 * k1 prel(x, i, i + k1) prel(x, i + k1 + 1, i + k2) prel(x, i + k2 + 1, j) for k in range(i, j): …

Software Development python
Member Avatar for Lucaci Andrew
0
229
Member Avatar for jman2011

Here is what i got. I need to count the Uppercase entered in a string. Can someone help me? Enter string: The Brown Fox #of Upper Case: 3 My Progress: #include<iostream> #include<string> usingnamespace std; int main() { char string[15]; cout<<"Enter string: "; cin.getline(string,15); . . . . } I need …

Software Development c++
Member Avatar for WaltP
0
196
Member Avatar for rushikesh jadha

how to store MySQL table data into file and then again from file to table using java program.

Software Development java
Member Avatar for rushikesh jadha
0
158
Member Avatar for DevNet

Hi guys. I just having a little problem about creating a good console GUI for our homework. My program is just a simple shopping cart program where in we were asked to create a GUI that asks for the user if he is either a ADMIN user or a CLERK …

Software Development gui java
Member Avatar for rushikesh jadha
0
169
Member Avatar for SeniorAlexandro

I recently added hsProgressbar.dll to my Program, it worked fine, but then I decided to remove it from my Computer and also remove it from the references...however..the Warning is still there? How can I completely remove it, so that I don't get the error anymore? Thanks in advance.

Software Development assembly vb.net
Member Avatar for SeniorAlexandro
0
139

The End.