132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for BrianK123

I was writing an applet before and was displaying information in a JOptionPane. Useing \n, I was able to make the information display multilined like this: [CODE]Name1 Grade1 Name2 Grade2 etc.[/CODE] I unfortunately had to change my code from an applet to a JFrame and subsiquently my Labels to JLabels. …

Software Development java
Member Avatar for BrianK123
0
193
Member Avatar for mona515

I've been tryin to figure out how to pick numbers from the 'choices array' and put then into the results array. Can any body help me. I was thinking of adding a for loop but not sure. The code i got so far is below. import java.util.Random; import java.util.ArrayList; public …

Software Development java
Member Avatar for notuserfriendly
0
84
Member Avatar for matt443

the assignment is to create a class library for manipulating ConsLists. I haven't found a lot of resources on ConsLists, and I hadn't studied them or recursion before we were assigned this project. That said, this is a (non-functional) method that is supposed to store a ConsList of values less …

Software Development c#
Member Avatar for nadeemIqbalBajw
0
110
Member Avatar for Digvijaysinh

Hii everybody, i am developing window application in c# and .net and i want to know that how to write a join query for update of local database by the content of remote server database!. Scenario :- Suppose there is one database say softbuyweb at local machine and other database …

Software Development
Member Avatar for sknake
0
766
Member Avatar for chriswininger

I have an application which embeds an instance of word 2007 inside of it. Everything works fine except until I open a fresh instance of word 2007 from the start menu. Instead of opening a new instance of word it finds my instance and loads a blank document inside of …

Software Development vb.net
Member Avatar for chriswininger
0
130
Member Avatar for adamsn

Hi all I need help. I have written 3 different exe files. What I would like to know is how do I link them to run from one package . Thank you very much. Nicky

Software Development visual-basic
Member Avatar for adamsn
0
301
Member Avatar for TheOneElectroni

Hello everybody, I’m experimenting with PyQt, trying to learn it, and I’m a bit stuck with Signals and Slots. I don’t usually like just to repeat the examples you find in tutorials and guides because I think it’s more useful for learning to experiment concepts by yourself. Tutorials usually teach …

Software Development python qt
Member Avatar for TheOneElectroni
0
326
Member Avatar for bussaina

How do this Print the decimal, octal and hexadecimal values of all characters between the start and stop characters entered by a user. For example, if the user enters an a and z, the program should print all the characters between a and z and their respective numerical values. Make …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
307
Member Avatar for kvdd

I have a Client and a server application, very simple code and it is working. But with the client, I can send one time a message, do I want another, it does not appear at the server. No response, nothing. Here is my code: Client: [CODE=pascal] procedure TForm1.FormCreate(Sender: TObject); begin …

Software Development client-server pascal
Member Avatar for kvdd
0
240
Member Avatar for viki0077

Let class Customer { private: long id; string name; public: ... }; be part of a class definition. What is wrong with the following constructors ? Customer () { id(0); name(''X''); } Customer () ( long n, const string& s) : id(s), name(n) { } Does anyone know this?

Software Development c++
Member Avatar for viki0077
0
122
Member Avatar for hatemstar

hi ... An error: There is missing ; before * .. What does that mean .. Plz help me the project on the attachment

Software Development c++
Member Avatar for Comatose
0
108
Member Avatar for blerina12

Hi guys. I was wondering if you could help me with this code. I am trying to open a file and read character by character. The program compiles but when I run it it aborts with an access violation while reading from the file. I made the program output the …

Software Development c++ file-system
Member Avatar for blerina12
0
98
Member Avatar for TriceD

Hi all, here is a code snippet I'm having trouble understanding. [CODE]public notinheritable class myClass ------Public Delegate Sub mySubDelegate() ------Public Sub mySub(ByVal Text As String) -----------------If Me.InvokeRequired Then ------------------------Dim SI As New mySubDelegate(AddressOf mySub) ------------------------Me.Invoke(SI, New Object() {Text}) -----------------Else ------------------------ Text = "Something" -----------------End If ------End Sub End class[/CODE] Assume …

Software Development vb.net
Member Avatar for TriceD
0
118
Member Avatar for viki0077

Does anyone now answer to this: Suppose class X includes a data elements common declared as public. How can it be accessed by all functions in the same name space ?

Software Development c++
Member Avatar for kbshibukumar
0
161
Member Avatar for Omega037

I have been having a serious problem relating to memory allocation and arrays/vectors in C++ using the G++ compilier on both a windows machine(Dev-C++) and linux(debian). I would post all the code, but it is proprietary technology(I'm a Graduate Student) and therefore I can't share it openly without permission. That …

Software Development c++ debian
Member Avatar for StuXYZ
0
192
Member Avatar for shahab.burki

Hi, Can we declare Char Array in Java instead of String Arrays? So we can manipulate them? or we have to use Strings and then use charAt() method for it? Thanks

Software Development java
Member Avatar for stultuske
0
145
Member Avatar for ITech

i am a newbie to the vb timer control..can any one give me few samples of vb timer usage and yeah one more thing how to make a progress bar using timer..:|

Software Development visual-basic
Member Avatar for marakulyo
0
113
Member Avatar for k2k

hi, i actually had done similar programs many times and don't know why eclipse gave me strange output this time. anything possibly wrong? thanks [code] class RobotShop { public static void main(String[] args) { try { Scanner reader = new Scanner(new File("air.txt")); String robotName = null; String serial = null; …

Software Development java
Member Avatar for stephen84s
0
115
Member Avatar for viki0077

Please can anyone tell me in few words What is wrong with the following class definition? whait's missing, etc. [code] Class Numeric { private: long x; public ... void set (long n) const { x = n; } long get () { return x; } const } [/code]

Software Development c++
Member Avatar for winrawr
0
279
Member Avatar for thegreatkk

hi, i am new to .net... i created the [B]many datagrid view at run time[/B], My datagrid view have a check box. when user clicks that check box. i need to get that row information.. how can i set the event handler for all datagrid view...... i think u can …

Software Development
Member Avatar for thegreatkk
0
170
Member Avatar for Manutebecker

For instance... I have the class Deck, which represents a deck of cards, and I want another class, derived from that, called cards, I want class Deck to have a class array called Cards[52], so I can assign all the different values and strings to the individual Cards class instances …

Software Development c++
Member Avatar for DemonGal711
0
127
Member Avatar for deepalici0us

I am using Microsoft Visual C++ to write a program, i am trying to As records secretary for Cougar High School, you have been asked by the principal to prepare a report on the grades of some of the school's top athletes. Specifically, you must print each of the athlete's …

Software Development c++ file-stream
Member Avatar for vmanes
0
267
Member Avatar for aodpreacher

Hi i have a java class called City and in this class i have this. [CODE] public class City { /** * read the file and make 10 objects * */ private String name; private double population; public City(String name, double population) { super(); this.name = name; this.population = population; …

Software Development file-system java
Member Avatar for BestJewSinceJC
0
137
Member Avatar for riahc3

Hey Im already generating numbers correctly from 0 to MAX_INT. But Id like to know how can I change that range (including negetive numbers) And while already on the subject, why does this code only generate numbers in the VERY high 90s? [code] int main() { int array[100]; srand(time(0)); gen(array); …

Software Development c
Member Avatar for Rashakil Fol
0
132
Member Avatar for vinoth_python

Hi, I'm doing python studies to write test automation scripts. As a part of that I want a script which should identify the NAT type of my network.. Please help me out in this regard... Thx.

Software Development python
Member Avatar for vinoth_python
0
104
Member Avatar for Eager_Beever

Is it possible to Format the Text of a TextBox to display 3 digits even if the user has entered only a single digit? e.g. the user entered "5", but I want to display it as "005". I don't want to use MaskedTextBox. In VB 6, it was as simple …

Software Development
Member Avatar for Eager_Beever
0
166
Member Avatar for rohit joshi

hi can anyone pls suggest me website through which i can safely download a c++ software?

Software Development c++
Member Avatar for jbennet
0
159
Member Avatar for waferstix

hello there! i badly need help on this. how do i implement a power function that: a. does not use the cmath library b. does not use repetitive multiplication c. USES repetitive Addition thanks in advance! :S

Software Development c++
Member Avatar for daviddoria
0
40
Member Avatar for jared717

I am new to C. I won't to understand how this program works. I found it and don't understand how to run it. When I do it says: Missing name for redirect. Here is the code. [CODE] #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { FILE *from, *to; …

Software Development c open-source
Member Avatar for abhishaki
0
195
Member Avatar for ScienceNerd

Could someone help me with this? This is the warning message [url]http://s5.tinypic.com/28ilonq.jpg[/url] Variables [url]http://s5.tinypic.com/n1a5fk.jpg[/url] I know it should be an integer for the total_gal_paint, but it keeps giving me that message

Software Development c++
Member Avatar for daviddoria
0
121
Member Avatar for nishidh

[CODE] # Makefile for Nikunj C. Oza's code. # # Definitions of basic variables. CC = g++ LIB = -lm # CPPFLAGS = -O2 CPPFLAGS = -g # File set (only one right now) OBJ1 = bagdtstump.o bagging.o baggingnb.o bagnn.o boostdtstump.o boostdtstumpave.o boostdtstumpave2.o boostdtstumpave3.o boosting.o boostingac.o boostingave.o boostingave2.o boostingave3.o boostdttotal.o …

Software Development c++ ide
Member Avatar for daviddoria
0
163
Member Avatar for bhavya_talluri

hi i just want to know how to write a c program for heap sort. please help me

Software Development c
Member Avatar for abhishaki
0
115
Member Avatar for omni504

I'm not really sure if this is the right place or not for my questions, since i'm a complete noob when it comes to python and all. But its a real simple question, and help would be appreciated. I've been reading "Python for Software Design: How to Think Like a …

Software Development python
Member Avatar for omni504
0
154
Member Avatar for Gregg Wilson

Hi, I am a very old chemical engineer who just put away my slide rule. In a program I am writing, I have: Dim VV(30) As Double, SHR(30) As Double, SGR(30) As Double . . I = 1 Call PHYSPROP(VV(), SHR(), SGR(), TF(), 1, 0, 0, 0, 0, I) The …

Software Development visual-basic
Member Avatar for Comatose
0
235
Member Avatar for number87

So, what Im trying to do here is a client server socket program. The client will ask a question to the server. For example, How are you? Then the server opens a text file, compares the string from the client and outputs the answer to the client. My text file …

Software Development c++ client-server file-system
Member Avatar for number87
0
156
Member Avatar for thacravedawg

I have a small app im working on that allows users to input data into an access database. This data represents incoming and outgoing items. Currently, the user can input all incoming and outgoing transactions, but I haven't been able to set them up to cancel each other. What I …

Software Development dataset
Member Avatar for thacravedawg
0
100
Member Avatar for cproud21

I have the following array that prints out the amount of rainfall for each month, and then uses a bubble sort to sort it in ascending order... How can I display the name of the month along with the value that is already displayed? [ICODE]#include <iostream> using namespace std; void …

Software Development c++
Member Avatar for rudasi
0
120
Member Avatar for transplantedNYr

So I am going through the "Getting Started Using Java RMI" and I get stuck at the following spot... [CODE] [B]javac[/B] -d [U]destDir[/U] Hello.java Server.java Client.java [/CODE] I use... [CODE] [B]C:\"Program Files"\Java\jdk1.6.0_11\bin\javac [/B] -d [U]C:\"Documents and Settings"\"Andrew Carrara"\Desktop\test\mysrc\example.hello[/U] Hello.java Server.java Client.java [/CODE] I get an invalid flag error. What exactly …

Software Development client-server java
Member Avatar for transplantedNYr
0
135
Member Avatar for Andrewsc1

Im new to java and just trying to figure out the basics. i cannot figure out what is wrong with my program. Any suggestions on whats wrong? [code]4import java.util.Scanner; 5 6public class Lottery 7{ 8 public static void main(String[] args) 9 { 10 //Generate random lottery numbers 11 int lottery …

Software Development java
Member Avatar for Andrewsc1
0
143
Member Avatar for youngstorm

Hi, I have an int method that checks an array for a certain number. If that number is NOT found I won't to 'return null;'. I get this error "incompatible types" "found : <nulltype>" "required: int" How can I resolve this? thank you, Michael

Software Development java
Member Avatar for youngstorm
0
126
Member Avatar for strobon

can someone pointing me how to get a command in checkbutton1 be executed after user check it and hit ok button?.for example: in the attached picture, if user check the 'open terminal button' and hit execute,the program open terminal window.

Software Development python
Member Avatar for strobon
0
130
Member Avatar for rekhamanoj

kindly help me to resolve this error. I have a function inside a namespace in my header file . This is my header file #ifndef _MATPACK_H_ #define _MATPACK_H_ //-----------------------------------------------------------------------------// #include "scene.h" // class Scene #include "mpmatrix3d.h" // 3d matrix template classes #include "vector.h" // vector and matrix classes #include "mpspecfun.h" …

Software Development c++
Member Avatar for daviddoria
0
129
Member Avatar for shanexuan

can anybody help me?currently i had wrote a coding for trash recycle system.to make thing more interesting,I wish to add simulation in that coding,however,I failed to do it,since my visual C++ is just still basic only.Hope U all can lend me a hand,please.thanks

Software Development c++ visual-basic
Member Avatar for StuXYZ
0
106
Member Avatar for MJV

Im trying to assign a decimal value of 1 to a variable if a check box is checked but I having trouble getting it to work. Here is my code: decimal nitrodsgn; decimal lnitro; decimal unitro; if (nitrogenLowerCheckBox.Checked) lnitro = 1; if (nitrogenUpperCheckBox.Checked) unitro = 1; nitrodsgn = (lnitro + …

Software Development
Member Avatar for sknake
0
93
Member Avatar for scott_rider

Is there a method I can grab parent/grandparent nodes? The examples I have found appear to use only xpath statements to select nodes. Some of my failed attempts: /table/tr/td/b/font[self::text()="Nohup Files"] /table/descendant::font[self::text()="Nohup Files"] <table> <tr> <td><b><font>Nohup Files</font></b></td> </tr> </table>

Software Development java
Member Avatar for Ezzaral
0
103
Member Avatar for scott_rider

I want to get the table node where its decendent node="Nohup Files". What I have so far is table/descendant::font[self::text()="Nohup Files"] table/tr/td/b/font[self::text()="Nohup Files"] but neither works. <table> <tr> <td><b><font>Nohup Files</font></b></td> </tr> </table>

Software Development xml
Member Avatar for scott_rider
0
142
Member Avatar for ITBarbie

I am writing a script (a full-fledged program, actually) in PYTHON (version 2.5; the current version is 3.0 but there are some performance problems -- 3.0 is slower than 2.5; go figure). The program allows a user to open a file in WORD. I have tested this program on an …

Software Development microsoft-office python
Member Avatar for leegeorg07
0
101
Member Avatar for mtramnes

I have a perl assignment I have a question about. I have to take a text file (gettysburgh.txt) and I have to alter it. I think my code is correct but when I run the program it says no such file exists. The file is saved on my computer so …

Software Development perl
Member Avatar for KevinADC
0
172
Member Avatar for Alex_

Hello everybody, i need a polygon formula to draw one. I want to make a function that will draw a polygon , depending on how many vertex's it has. I'm not good at math so i can't figure it out how to do it. Though, i do understand that it …

Software Development c
Member Avatar for Alibeg
0
178
Member Avatar for Y2K_MASTER

Hey guys, I'm making a program that takes 3 sets of coordinates from a user to make a triangle. It then calculates the length of each side, the perimeter of the triangle, the area of the triangle, and the 3 angles. I have it all coded, except for the area …

Software Development java
Member Avatar for Y2K_MASTER
0
158

The End.