132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for svatstika

Hello everyone! I'm trying to understand the following code: [CODE]class char_queue { protected: struct charNode { public: char val; charNode* next; charNode(char ch, charList* ptr) { val = ch; next = ptr; } }; protected: charNode* begin; charNode* end; void clearCharNode(); public: char_queue(); bool find(char ch); virtual void add(char ch); …

Software Development c++
Member Avatar for svatstika
0
127
Member Avatar for Goyle

Hi, i am in need of some help with an assignment. The Question : [I]Write a program which will think of a word and ask the user to guess the word. The user may guess a letter at a time and your program will print out wherever the letter occurs. …

Software Development java
Member Avatar for Goyle
0
138
Member Avatar for deucalion0

Hey guys, I have a million questions but the main one I need ahelp with is that I have a method in a class that plays sound and I am trying to call that method in the mainscreen class. So I create a new instance of the class that contains …

Software Development
Member Avatar for nick.crane
0
120
Member Avatar for funfullson

Hello friends. In my project I need to know if some one is online or offline. and other problem is that some one are online but are invisible. At all how I can find the users state? for example users of yahoo or google. I realy know nothing about this …

Software Development python
Member Avatar for richieking
0
275
Member Avatar for dreamer_lek91

The question I am going to ask involves Mircrosoft Access and VB and I am stuck with it. This is the question: I have 4 peoeple: L, M, N, O, P there are 4 object: a, b, c, d, e L has: a, c, d M has: a, d, e …

Software Development microsoft-access visual-basic
Member Avatar for AndreRet
0
197
Member Avatar for LianaN

Hi! I have two classes: 1) Class A extends JPanel 2) Class B extends JFrame I would like to use some methods from Class A in Class B. How could I implement it? Thanks!

Software Development java
Member Avatar for LianaN
0
117
Member Avatar for suger

Hi guys I have 2 problems here: 1) Below code does not draw a black Polygon on the frame, only shows an empty Frame named "Poppy" 2) Once the frame shows, I can't close it by clicking "x" at the right top corner. Does anyone know why? Thanks heaps code: …

Software Development java
Member Avatar for suger
0
91
Member Avatar for cavern

hello everyone, i need help, can anyone help me to check out the coding?? [CODE] Private Sub cmdBatal_Click() paparan.Show Me.Hide Unload Me End Sub Private Sub cmdSimpan_Click(Index As Integer) If InsuData = True Then con.Execute "Insert into Pemilik(Na,Nokad,Warganegara,Notel,Harga,Tingkat) values ('" & txtNama.Text & "','" & txtNoKad.Text & "', '" & …

Software Development open-source visual-basic
Member Avatar for abelingaw
0
158
Member Avatar for Shaabangbang

Hi guys, i have to create a program that would store a persons full name, phone number, address, and postal code into a file named contactlist.dat, so far no problems, but im also supposed to use char for every single one, even the phone number, does anyone know how to …

Software Development c
Member Avatar for mfaisalm
0
231
Member Avatar for 000033858

Java Help - Need help making a program that checks if a letter appears consecutively in a string? I need help creating a java program that returns true if a letter appears consecutively in a string like for example : the "O" in noodles Also a program that returns the …

Software Development java
Member Avatar for jon.kiparsky
0
148
Member Avatar for shena

Hi all, I have two textboxes only in a form. At textbox1, upon pressing enter/carriage return it suppose to setfocus to textbox2 instead it's performing textbox2's keypress event by calling a command button. How to handle this? Where am i doing wrong? Please help. [CODE]Private Sub txtSNO_KeyPress(KeyAscii As Integer) If …

Software Development visual-basic
Member Avatar for AndreRet
0
2K
Member Avatar for tech9x

[code=c++] int i; string *opening; string *ending; int *num1, *num2, *num3, *num4, *num5, *num6; char chr, chr1, chr2, chr3; for(i= 0; i< sizeOfArray; i++) { getline(cin,opening[i]); cin >> num1[i] >> chr >> num2[i] >> num3[i] >> chr1 >> num4[i] >> chr2 >> num5[i] >> chr3 >> num6[i]; getline(cin,ending[i]); } [/code] …

Software Development c++
Member Avatar for jonsca
0
153
Member Avatar for svatstika

Hi everybody! I'm working on a following program: [CODE] #include "stdafx.h" #include <iostream> using namespace std; class char_queue { protected: struct charList { public: char val; charList* next; charList(char ch, charList* ptr) { val = ch; next = ptr; } }; protected: charList* begin; charList* end; void clearCharList(); public: char_queue(); …

Software Development c++
Member Avatar for jonsca
0
158
Member Avatar for iin_Tina

good morning ... I wanted to ask you, how to make file backup and restore sql server 2000 through visual basic 6.0 application already many forums I visit and ask, but until now there is no single person who can help me Can you help me? your help is much …

Software Development sql visual-basic
Member Avatar for AndreRet
0
2K
Member Avatar for Tsunami49

Hi there. I am creating a mock up of a physics library currently, and I am currently trying to deal with 2d arrays. Right now I am having issues with transposing the array. here is the code with the messy stuff cut out [CODE] //TMatrix.h #pragma once #include "main.h" class …

Software Development c++
Member Avatar for Tsunami49
0
108
Member Avatar for xcarbonx

Hi, I have made a basic calculator program, but need help with some minor things. I have created two radio buttons for the user to click on. If the first is clicked/selected, then the output would be formatted in floating point value (radFloat). If the second is selected, then the …

Software Development vb.net
Member Avatar for Netcode
0
130
Member Avatar for DoubleShot

I have read all sorts of positive reasons for using the PreparedStatement type in Java when working with SQL. Does anyone know of any reason why you'd ever choose the Statement type instead?

Software Development java
Member Avatar for masijade
0
92
Member Avatar for titan5

I have a file say which has 5000 characters. I am reading the first 1000 characters and closing my file. I want to delete these first 1000 characters from the file. How can I do that?

Software Development java
Member Avatar for masijade
0
90
Member Avatar for ChristinaS

Hi! I'm trying to find min variance (both value [U]and[/U] index). I have x# of product defects tracked over y# of days. prod1 prod2 prod3... Day1: 1 1 1 Day2: 1 2 2 I have arrays that store max & min defects, by product#. minVar = maxDefect[]-minDefect[] gives me the …

Software Development c++
Member Avatar for ChristinaS
0
193
Member Avatar for gunjannigam

I have saved generated an image using a byte[] by using [CODE]Toolkit.getDefaultToolkit().createImage(image);[/CODE] where image is a byte[]. The image generated by this is of java.awt.Image instance. Now I want to save this image into my local hard disk as JPEG (the image was decoded as JPEG). How would I do …

Software Development image java
Member Avatar for gunjannigam
0
162
Member Avatar for bio-grad

I need some help setting up a perl script which will provide the statistics on some data I have in an excel file. My plan was to copy the excel file into a text file (with tab delineated columns) and run the script off of that. I downloaded a simple …

Software Development perl
Member Avatar for anushaahenry
0
272
Member Avatar for Unidennn

Hi, i have a problem with passing the array of structs into another function. Line 15 and 20 - errors. Here the code [CODE] #include<stdio.h> struct point { int x; int y; }pointar[3]; typedef struct point POINT; struct circle { int x; int y; float radius; }circlear[3]; typedef struct point …

Software Development c
Member Avatar for Adak
0
203
Member Avatar for dvspinay

Here is my initial code. It is linking, but giving me an error code that I can't comprehend. I have to basically write a program to do the following: In main declare a Player Name array and a score array. Declare the size of the arrays to be 100. In …

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
167
Member Avatar for geryin

This was part of a questionnaire. I have no idea what they are asking... my closest guess is float rational please help! thank you.

Software Development c++
Member Avatar for Ancient Dragon
0
146
Member Avatar for hqrtt

Hey guys, I'm a newbie in C and I've got to make an app: Users enter 10 numbers; I've got to compare them; At the end tell the user if a) Number are decreasing (ex: 10 9 8 7 6 5 4 3 2 1 0) b) Number are creasing …

Software Development c
Member Avatar for Snehamathur
0
124
Member Avatar for manshipboy

I am trying to generate a new checkbox in a different form. [code] Public Class frmAdd Public Sub btnitemadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnitemadd.Click Dim chklowerleft As New CheckBox Dim chkhandleft As New CheckBox Dim indexcounter As Integer = 4 If chkleftlowerarm.Checked = True Then frmMain.chklistLA.Items.Add(chklowerleft, …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
143
Member Avatar for burcin erek

I made a simple color finding game. the problem is that my color input guess is not good so complex I want them in one line and also I want to see my tries at certain places. can you help me thanks in advance. [CODE]#include <cstdlib> #include <iostream> #include <string> …

Software Development algorithm c++
Member Avatar for mrnutty
0
137
Member Avatar for 123balboa123

HI everyone I have a little problem with an exercise I have been given for homework. We were given sample server, client, compressedmessage, encryptedmessage documents to build upon. Now what is meant to happen is the server listens on port 2000 for incoming client requests, once a client makes a …

Software Development client-server java
Member Avatar for 123balboa123
0
114
Member Avatar for KLane

I have written the program below to calculate Standard deviation and mean of a given file of data. If I run it gives the wrong answers. Can someone help me go along? #include <cstdlib> #include <iostream> #include <cmath> #include <fstream> using namespace std; class Statistics{ double x; int n; double …

Software Development c c# c++
Member Avatar for mrnutty
0
118
Member Avatar for tech9x

here is my code [code=c++] int main() { int i; char * cstr; char * p; string *userInput; int sizeOfArray; cin >> sizeOfArray; add(i,userInput,sizeOfArray); system("PAUSE"); } void add(int i, string *userInput, int sizeOfArray) { string Input; char * cstr; char * p; userInput = new string [sizeOfArray]; for(i= 0; i< …

Software Development c++
Member Avatar for Zjarek
0
280
Member Avatar for tomtetlaw

When I open a file, the file is valid (passes if (!file)). But when I use it with fgets, fgets fails. When I called ferror the return value is 32. I looked that up and it means broken pipe. What does this mean and how could I fix it? This …

Software Development c
Member Avatar for tomtetlaw
0
83
Member Avatar for vlad44

Hi everybody, I'm totally newbie to python I've seen some tutorials and think that is an easy to learn language but I couldn't figure out the real function of scripting language I've read some brief notes about the function being to control an existing application . But I couldn't understand …

Software Development python
Member Avatar for vlad44
0
133
Member Avatar for YahRioO

hi Using while, write a program that keeps reading integers from user until he enters -1 then prints the average of all entered numbers (-1 should be ignored). this is my solution, but i dont know why he gives me wrong average? [CODE]#include<iostream> using namespace std; void main() { double …

Software Development c++
Member Avatar for Clinton Portis
0
277
Member Avatar for blknmld69

[B]I have my program working but i need to replace the JOptionPane.showMessageDialog(null, "The cost is " + totalCost); and just have the totalCost output to the totalCharges textfield. [/B] [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; public class DormAndMealPlanCalculator extends JFrame { private JPanel dormPanel, mealPanel, buttonPanel, totalChargesPanel; private JComboBox …

Software Development java java-swing
Member Avatar for Gerbiler
0
176
Member Avatar for TahoeSands

In my journey "back to the basics" to get a more solid foundation for my Java skills, I am curious about the difference between using the existing content pane of a JFrame vs. creating a new content pane in a JFrame. I have two chunks of code... The first uses …

Software Development java java-swing
Member Avatar for Gerbiler
0
214
Member Avatar for c_shaft05

I've been messin with python for little under a month now. I've come across one of these sample questions that make you think, stating to compute and print a table of Celsius temperatures and Fahrenheit equivalents ever 10 degrees... well i guess the main thing is i need help trying …

Software Development python
Member Avatar for Duskic
0
435
Member Avatar for DallasFan3

Ok, well Iam doing a program where I have to write a program that will read in a list of positive integers (including zero) and display some statistics regarding the integers. Your program must store the all of the integers in an array. The maximum number of integers that you …

Software Development java
Member Avatar for DallasFan3
0
135
Member Avatar for KLane

Someone Please help with this. I want to make a class Statistics and read from an external file and find the mean and standard deviation and below is what i have so far. any suggestions? [code] #include <cstdlib> #include <iostream> #include <cmath> #include <fstream> using namespace std; class Statistics{ double …

Software Development c++
Member Avatar for daviddoria
0
104
Member Avatar for gahhon

[CODE]void InputFunction() { system("cls"); printf("\n"); printf("\t\t ***************************************\n"); printf("\t\t ***************************************\n"); printf("\t\t *** ***\n"); printf("\t\t *** WELCOME TO ***\n"); printf("\t\t *** CLASS ATTENDANCE SYSTEM ***\n"); printf("\t\t *** ***\n"); printf("\t\t ***************************************\n"); printf("\t\t ***************************************\n"); printf("\n\n"); fflush(stdin); printf("\t\t What Is The Course Code? "); scanf("%s", SubCode); fflush(stdin); fflush(stdin); printf("\t\t How Many of The Total Weeks? …

Software Development c
Member Avatar for Kamatari
0
118
Member Avatar for Rez11

Palindrome detector. Palindrome is any word/sentence/phrase that reads the same foreword and back. I'm in the middle of creating a program that accepts a sentence, phrase, or word. Then checks to see if it's a palindrome, I'm just having trouble on what to pass to my function. The function must …

Software Development c++
Member Avatar for Rez11
0
127
Member Avatar for Unhnd_Exception

Heres a way to eliminate flickering or create a fade effect on a panel or anything else. If anyone has a technique that would be more effective, please post it. When double buffering doesn't fix a flicker problem on a panel you can use a picture box to mask it …

Software Development vb.net
0
58
Member Avatar for Simplified

Hi All I'm getting very odd behaviour when using file.write(variable) - what happens is that if I print out the variable using the print function I get this: [ICODE]4CE1FFC64101843801[/ICODE] ... which is what I expect. However, when I try to write this to a file (using the variable 'valid' to …

Software Development python
Member Avatar for Simplified
0
108
Member Avatar for iamdabobo

I'm working on a calculator in python. Introductory college course, so I know some stuff, but I'm far from being an expert of any sorts. This is a scientific/graphing calculator, so I'm parsing a whole string of input. Say the user inputs integ(3*x+3,0,1) (integrate 3x+3 from 0 to 1). My …

Software Development python
Member Avatar for Gribouillis
0
2K
Member Avatar for atla

I'm pretty much a complete beginner. I'm trying to get a 'timer' or 'clock' that pretty much just counts how long you have the window open by using a loop that adds 1 to "a" for every second, and adds 1 to "b" for every 60 seconds (while subtracting 60 …

Software Development python
Member Avatar for richieking
0
170
Member Avatar for svatstika

Hello everybody! I'm trying to understand following code. [CODE] #include "stdafx.h" #include <iostream> using namespace std; class Circle; class Square; class Triangle; class Shape { public: virtual bool Check(const Shape&)const = 0; virtual bool Check(const Circle&)const = 0; virtual bool Check(const Square&)const = 0; virtual bool Check(const Triangle&)const = 0; …

Software Development c++
Member Avatar for Ancient Dragon
0
264
Member Avatar for radnam

Hello, I am developing a software which will connect to a SQL SERVER situated at Head Quarters over a VPN connection.But for times when VPN is disconnected I want my applications at the branches to connect to a local Sql Server installed at a local server. Now all the applications …

Software Development app-store vb.net
Member Avatar for crapulency
0
192
Member Avatar for stark025

Hello all, I've recently been asked to demonstrate the difference between Turbo C++ 3.0 and Visual C++ 2008. I'm not really familiar with the current coding standards, so I've enclosed a sample of Turbo C++ code. Please point out which functions are deprecated as well as their replacements. [CODE="C++"]#include <iostream.h> …

Software Development c++
Member Avatar for stark025
0
261
Member Avatar for oksbwn

hello friends actually i want to know which compiler is best suitable for gui development using c.please send the web adress to download that and send how to configure that.

Software Development c gui
Member Avatar for Ancient Dragon
0
162
Member Avatar for gyst

Hello all. I've written a program to solve sudoku puzzles. I had it working for int, see below. [CODE] typedef int element; typedef element game[GAME]; [/CODE] I changed [I]element[/I] into [B]short[/B], and then it exits with a segmentation fault. I then changed [I]element[/I] into [B]char[/B] and I got an immediate …

Software Development c
Member Avatar for Ancient Dragon
0
117
Member Avatar for tawes01

I have a dialog-based application that just has a big edit box. I want to make a quotation mark bold right when it is typed. How can this be done? I am using dev-c++ 4.9.9.2 (I don't know how to make single characters bold, let alone how to capture the …

Software Development c++
Member Avatar for Ancient Dragon
0
146

The End.