132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Robert Walker

I can loop while the datatable is full, but get an error when it is empty. How do I know it's empty.

Software Development vb.net
Member Avatar for black_sun191
0
7K
Member Avatar for musikluver4

I just wanna be able to input 10 integer numbers, display the numbers, then be able to modify a specific number I have already entered, then display the new updated numbers again. [code] //Date: 4/6/2010 import java.io.*; public class EnterNumbers { public static void main(String[] args) throws IOException { BufferedReader …

Software Development java
Member Avatar for musikluver4
0
217
Member Avatar for bullsfan127

i have to write a program that takes input from the user and displays a simulated check we have to write the dollar amount in words and i cant figure out how to go about doing that. this is my code so far. [CODE]//******************************************************* // Include Files //******************************************************* #include<iostream> #include<iomanip> …

Software Development c++
Member Avatar for vmanes
0
195
Member Avatar for sfeinst

I am trying to learn xslt and I'm having difficulties trying to figure out how to process a file that is not built out as a hierarchy (except based on an attribute) and change it into a hierarchy. Using the following XML [CODE]<?xml version="1.0" encoding="UTF-8"?> <data> <h level="1">test</h> <p>some data …

Software Development xml
Member Avatar for fpmurphy
0
104
Member Avatar for deeep

Hello Guys, I have found many source codes to implement linked list. But all are inserting or deleting the node values after user's choice. I dont want that. Insertion should happen dynamically. I have a client program running on another system. I fetch the data from that system through my …

Software Development c client-server linked-list
Member Avatar for deeep
0
205
Member Avatar for Diamonddrake

I have been looking for the answer for 7 hours. So a quick google isn't going to cap this one. I Am working on a programming notepad app with intellisense like Visual Studio. only I have run into a big issue. In Visual studio the little intellisense window is its …

Software Development visual-studio
Member Avatar for Diamonddrake
0
2K
Member Avatar for bravo659

[quote] I am working on a homework asisgnment from school and need some help. I am stuck on coding to set a private field to my Box class with three constructors.. It's kind of confusing when dealing with more than one constructor. The following is the code for the box …

Software Development java
Member Avatar for vchandra
0
176
Member Avatar for chinnaedu

Hello all, i have a small problem with my application and i am stuck now.... i have data coming on a particular port and i need to trasnsfer that particular data that i received to another port on a different machine... The data that i receive is over udp and …

Software Development c++ tcp-udp
Member Avatar for chinnaedu
0
233
Member Avatar for vsagarmb

Hi, I am hosting a UDP server as part of my application on a thread. The problem is when I close the application it doesn't exit completely because the server is still running on the thread. [code=python] class pdu_parser(Thread): run_parser = True sock = None def __init__(self): Thread.__init__(self) def run(self): …

Software Development python
Member Avatar for jcao219
0
138
Member Avatar for johndoe444

What is the meaning of compiling a regular expression? Not only in java but also in other languages like python has compiled representation of a regular expression. Actually it always bothers me what happens when a regular expression is compiled? All I know is it makes further matching of patterns …

Software Development java
Member Avatar for BestJewSinceJC
0
85
Member Avatar for bigbags911

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class TicTacToeV1 implements ActionListener { /*Instance Variables*/ private JFrame window = new JFrame("Tic-Tac-Toe"); private JButton button1 = new JButton(""); private JButton button2 = new JButton(""); private JButton button3 = new JButton(""); private JButton button4 = new JButton(""); private JButton button5 = new JButton(""); …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
131
Member Avatar for GAME

When I start debugging all my ribbon buttons get smaller. Here is the difference. [URL=http://img683.imageshack.us/i/helpp.jpg/][IMG]http://img683.imageshack.us/img683/5600/helpp.jpg[/IMG][/URL]

Software Development
Member Avatar for GAME
0
97
Member Avatar for martinjcloud

Hi im trying to allocate memory using malloc(). Also, im trying to make a copy of the string before i allocate it. So im using strcpy(). But im still having issues with compiling it. please help!! [CODE] #include <stdlib.h> #include "setup.h" char *run( const char * const str ){ strcpy(str) …

Software Development c
Member Avatar for martinjcloud
0
139
Member Avatar for dilbert_here00

Hi All, I have a popup window, which shows up after double clicking an installer. This window has 3 buttons: Back, Next & cancel. Using win32api I am able to get the window handles for all three buttons. I need to find out which of the buttons is enabled or …

Software Development python
Member Avatar for dilbert_here00
0
186
Member Avatar for idlackage

Dumb question, but I've searched everywhere and found nothing specific: is it possible for HSB values to translate directly into a colour (eg. a hue of zero equals red) instead of passing them through an RBG conversion? Also, dumber: I'm not understanding the arrrays people are using, for example [URL="http://www.squarebox.co.uk/users/rolf/download/ColourWheel/ColourWheelApplet.java"]here[/URL] …

Software Development java
Member Avatar for idlackage
0
97
Member Avatar for deanus

Hi I've just started out in c++, can anyone tell me how to use pointers which hold addresses of objects ? How do you access the object fields from this type of pointer, especially strings (array of chars)... I'm using a Dev c++ 4.9.9.2 compiler....

Software Development c++
Member Avatar for deanus
0
107
Member Avatar for falsedimitrii

I want to enable/disable a table cell based on the contents of another cell. e.g. if the reference cell value is "true", then enable the cell, otherwise disable the cell. I have set up isCellEditable() to do this and it works if the reference cell already has a value when …

Software Development java java-swing
Member Avatar for falsedimitrii
0
2K
Member Avatar for triplea_2005

Write a Java Class file for the class Account that represents a bank account. Usually, a bank account has a unique account number that is used to identify it. Your class should generate the account number automatically whenever a new account is created. The class should also store the account …

Software Development java
Member Avatar for triplea_2005
0
206
Member Avatar for bucwet

Hi all, This is a script that reads in text from a file and separates it into characters. It works fine as long as MAXSTRLEN is under 610000. However, I need it to read in whole books of text. Whenever I try to bump that number up above 610000 or …

Software Development c
Member Avatar for bucwet
0
237
Member Avatar for habib_parisa

Dear all, I am writting a code for high dimensional chebyshev interpolation. Since it is high dimensional, I MUST use extremely large arrays. Something like this: [CODE] #define DIM (int)2 #define TOTAL_STEPS (int)30 int main(){ double *a_data; long long a_dim; /** length of matrix a_data **/ int n; /** # …

Software Development c motherboards-cpu-ram
Member Avatar for jephthah
0
188
Member Avatar for Takarakujin

I want to hold user input strings in an array and be able to print it. Is there a way for me to hold string 1 in arr[0], string 2 in arr[1] and so on and so forth? heres what Im thinking [CODE] int p=1, r=3, l=0; char arr[255]; while(p …

Software Development c
Member Avatar for Software guy
0
81
Member Avatar for johndoe444

It is said in many places that comparing two floating numbers for equality can give wrong result and we have to take into account some epsilon value like this float f1,f2; if (f1-f2<epsilon) printf("gotcha"); So what is the reasonable estimate of epsilon? My intuition is that that has to be …

Software Development c
Member Avatar for jephthah
0
185
Member Avatar for Lukezzz

Hello, I am opening a new Form in my application and want to pass along a variable to Form2. I think I am pass along it correctly but are not sure how to receive it in Form2. How will that be possible ? [code] String^ ForwardVariable; private: System::Void button1_Click(System::Object^ sender, …

Software Development c++
Member Avatar for Lukezzz
0
268
Member Avatar for wittykitty

I have been trying to figure out for the life of me what I am doing wrong here, and I am coming up blank. My operator is returning the correct value in temp - as you can see highlighted in red, however, when I use the operator in main - …

Software Development c++
Member Avatar for wittykitty
0
117
Member Avatar for CodyOebel

So far no one has been able to tell me why this code is not working, or what I need to do to THIS code to make it work. Can someone simply show using MY code below where the problem is, and why it's not working properly? Problem: I am …

Software Development api c++ windows-api
Member Avatar for n.cramp
0
2K
Member Avatar for johndoe444

how does long and long long differ? The machine I am using has core 2 duo processor. It shows the same size (8 bytes) for both of them. Was short type ever was 1 byte and changed to 2 bytes later on? Was long and int ever was 4 byte …

Software Development c
Member Avatar for Ancient Dragon
0
204
Member Avatar for roin14

using switch and if ... else statements, write the two grading programs. consider the following grading system; 70-100 A 60-69 B 50-59 C 40-49 D 0-39 F

Software Development c++
Member Avatar for Robert1995
0
118
Member Avatar for artanbori

Hi struggling with java - we have a class Structures and Algorithims in which we are supposed to pick up java in 5 weeks Have been pouring over material and searching sites but trouble is when I start to write ends up nothing seems to work unless we copy and …

Software Development java
Member Avatar for artanbori
0
312
Member Avatar for nichedge

hey, im having trouble making a python program run using a window, honestly i dont even know where to start. I have to make a coffee program where there is a menu and the user has to choose between adding, modifying, searching, showing, and deleting any entrys made to the …

Software Development python
Member Avatar for nichedge
0
598
Member Avatar for johndoe444

In the following code: [CODE]#include <iostream.h> class Base { public: Base(){ cout<<"Constructor: Base"<<endl;} ~Base(){ cout<<"Destructor : Base"<<endl;} }; class Derived: public Base { //Doing a lot of jobs by extending the functionality public: Derived(){ cout<<"Constructor: Derived"<<endl;} ~Derived(){ cout<<"Destructor : Derived"<<endl;} > }; void main() { Base *Var = new Derived(); …

Software Development c c# c++
Member Avatar for Narue
0
167
Member Avatar for johndoe444

In some c++ source code I wrote this: [CODE]#include <iostream.h> using namespace std; [/CODE] [CODE]error: iostream.h: No such file or directory[/CODE] I compiled it using g++. But when I changed it to #include <iostream> it started working. Why?

Software Development c++
Member Avatar for craig_ka
0
145
Member Avatar for prade

hii i just downloaded a dev c++ compiler...& wrote the basic hello world program...whenever i try to compile ..my quickheal antivirus deletes it as a trojan...please help..i reinstalled it but gives the same result

Software Development c c++
Member Avatar for Ancient Dragon
0
171
Member Avatar for Slobodino

I need an algorithm for the following problem: There's a tree with N fruits each with its own weight w[i] and height h[i]. I can only reach a fruit if it's no taller than H inches. Also every time I pick a fruit, all the other fruits in the tree …

Software Development c
Member Avatar for craig_ka
0
131
Member Avatar for simbomatic

Hello, I'm curious to know whether it is possible to expose the functions of a C# application so that they could be used by another C# application in runtime. The thing I am referring too is quite similiar([I]might even be the same[/I]) as using an API. I have searched on …

Software Development api c#
Member Avatar for simbomatic
0
988
Member Avatar for scrappy57

hai friends can anyone give me an example of a program to hash using crypt(3) thanks linux learner.

Software Development c
Member Avatar for jephthah
0
389
Member Avatar for theABCasian

hey everyone ok so i have reached another road block any pointers are much appreciated the program will not compile due to eclipse not liking the int Password::passwordNumber(int i); int Password::passwordCapLetter(int i); in the .h any ideas demp.cpp [CODE] /* File Name: Demo.cpp Chapter No. 12 - Exercise No. 12 …

Software Development c++
Member Avatar for mitrmkar
0
172
Member Avatar for big_ch98

I keep getting that error when I open my form in which I have control that are dynamically created. ERROR 340: Control array element 0 doesn't exist

Software Development visual-basic
Member Avatar for billmaster
0
2K
Member Avatar for shantuli

hi, can anyone help me to solve the following java problem write a java program for holding a stack of up to 10 characters. pls help me. thanks you shantuli

Software Development java
Member Avatar for usurph
0
103
Member Avatar for chetanbasuray

I am taking date of birth as input from my form and storing it, I need to calculate the age from this date of birth. While this problem seems easy(I haven't tried it out for myself,used one of my friends code) I also need to increase the age of the …

Software Development
Member Avatar for ddanbe
0
101
Member Avatar for kenji

Hi, I'm trying to use the built in gcd method to calculate the gcd for two values. Unfortunately I can't seem to import the right module to get the method. [code=python] from fractions import Fraction ... x = gcd(a,b) [/code]

Software Development python
Member Avatar for kenji
0
184
Member Avatar for toll_booth

I'm trying to code the game of minesweeper. For some reason, the image won't display properly--and it isn't a case of a missing file, b/c I have a try-except code snippet that is set to print out an error message should this occur, and that isn't happening. So either it's …

Software Development image python
Member Avatar for toll_booth
0
489
Member Avatar for picabodaddy

Trying to learn Java on my own with the book "Starting out with java" The question is this Write a class that has three overloaded static methods for calculating the areas of the following geometric shapes: circles rectangles cylinders (it gives the formulas for the are of them) Because the …

Software Development java
Member Avatar for vchandra
0
3K
Member Avatar for evansjahja

Guys, I need help When I compile my code, I get [code]error: invalid operands to binary ^ (have ‘float’ and ‘double’)[/code] Here's some portion of my code: [code=c] #include <stdlib.h> #include <stdio.h> ... float freq; const float key_magic = 2 ^ (1/12); ... freq=440*(key_magic)^(atof(optarg)-49); [/code] Thanks

Software Development c
Member Avatar for 0x69
0
3K
Member Avatar for lewashby

Running Mono on Ubuntu 9.10 Main.cs [CODE]using System; using SdlDotNet; using SdlDotNet.Core; using SdlDotNet.Graphics; using System.Drawing; namespace TroutWars { class MainClass { public static void Main(string[] args) { Video.SetVideoMode(1024, 768); Events.Quit += new EventHandler < QuitEventArgs > (Quit); EventArgs.Run(); } void Quit(object sender, QuitEventArgs e) { Events.QuitApplication(); } } }[/CODE] …

Software Development ubuntu
Member Avatar for lewashby
0
1K
Member Avatar for ischuldt

I wrote this distructor one way, but the person who code reviewed it seems to think it's better and more readable the other way. I disagree. It's probably more a matter of preference, but what do you think... [code] RfPrinter::~RfPrinter() { if (!hub_.empty() && !name_.empty()) { clearbuf(rfunitlock); rul_hub = hub_; …

Software Development c++
Member Avatar for Fbody
0
136
Member Avatar for allaboutdrew

I am recently new to C++ and I wondered if someone could show me how to modify my program below. I want the program to test if there is more than 1 day that has the highest rainfall and susequently to output those corresponding days. Than you :) [CODE]#include <iostream> …

Software Development c c# c++
Member Avatar for gnarlyskim
0
125
Member Avatar for deraj8

I am trying to understand how draw graphics to the JPanel class but i have only been able to display one object at a time(unless i draw muiltiple shapes in my extended JPanel class but i dont want that!) [CODE]import java.awt.*; import javax.swing.*; /* Create a new graphics component that …

Software Development java java-swing
Member Avatar for mart@efun.ee
0
3K
Member Avatar for gregarion

Hey guys, i am having a problem solving a this part of my coding. Basically, what im doing is for the program to read a string, and if there is a value of 'M', the value of num will go up by 1000. Here my coding .... [CODE] string msg …

Software Development c++
Member Avatar for gregarion
0
257
Member Avatar for lishannx

ive set up a connection string and whenever the program hits myConnection.ConnectionString, it will appear such an error : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that …

Software Development tcp-udp visual-studio
Member Avatar for kvprajapati
0
178
Member Avatar for Riddlekid

I need to use Scanner and StringTokenizer to find a word then print that line in text area when found it. This is the Search Button's coding : [CODE]private void btnSearchActionPerformed(java.awt.event.ActionEvent evt) { try { Scanner scan = new Scanner(file); String search = txtSearch.getText(); while (scan.hasNextLine()) { line = scan.nextLine(); …

Software Development java
Member Avatar for Riddlekid
0
473

The End.