132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Narayan15

I created a html form and i want to submit the form automatically. So i used Javascript. I add that html form in java using JEditorpane, but JEditorPane doesn't support javascript. i heard that there is Rhino package which supports Javascript. But I dont know how to add Rhino in …

Software Development java javascript
Member Avatar for Ezzaral
0
156
Member Avatar for DemonGal711

Alright, I need to create an N-ary tree that contains a list of words all of the same length so that we can create a word ladder from it. Given a word (like cat), we are suppose to put that as the root and from a dictionary we are given, …

Software Development c++
Member Avatar for DevC++4.9.9.2
0
785
Member Avatar for static

Hi everybody, I just want to know whether playing brainstorming game like Sudoku or chess can improve programming concepts. In my opinion, I don't think the way of thinking in programming concepts and in playing chess are the same. Let me know your discussion. Thank you all.

Software Development
Member Avatar for ddanbe
0
84
Member Avatar for mario.herbst

Hi everybody. I am a student in computers at the Hebrew University in Jerusalem. I started to work with Java - and working with Product Version: NetBeans IDE 6.5 Java: 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16 System: Windows XP version 5.1 running on x86; Cp1252; en_US I have an urgent …

Software Development ide java java-netbeans
Member Avatar for Ezzaral
0
100
Member Avatar for arka_15

Can anyone suggest a book from which I can learn Window based C programming ?

Software Development c
Member Avatar for Alibeg
0
68
Member Avatar for TriniBabe

please help i think d error is in inputtin d values into d linked list! D files are attached

Software Development c++ linked-list
Member Avatar for Nick Evan
0
75
Member Avatar for computercobra

I am trying to make a simulation of the enigma machine and was wondering if this is the right way to start the problem? Here's the main.cpp file: [CODE] #include <iostream> #include <ctime> #include <cmath> #include "enigma.h" using namespace std; int main () { enigma machine_1; return 0; } [/CODE] …

Software Development c++
Member Avatar for computercobra
0
2K
Member Avatar for amarjeetsingh

String test="abacedabcedbcdea" find the frequency of a , b ,c ,e and d

Software Development java
Member Avatar for javaAddict
0
124
Member Avatar for cproud21

I understand how to search and sort an array of int type. However I am confused how to sort/ search an array of object's in which I sort/search by a string in the object. (alphabetically) Here is the code I have so far, I want to search and sort the …

Software Development c++
Member Avatar for vmanes
0
2K
Member Avatar for loren41

[B]I have a text file that contains multiple records. Within the records, I am able to locate the line containing the desired text and read it into a string. Inside the line, I know the number of the starting character for the words I need. The length of the substring …

Software Development python
Member Avatar for sneekula
0
259
Member Avatar for seaders

Ok, I've a DLL that's hooked to pick up all Mouse and Keyboard events in it. What I then want to do is through all those to another window. I understand how to do simulate these events, with PostMessage and SendMessage, to the HWND, but what I'd like to do …

Software Development c++
Member Avatar for nucleon
0
712
Member Avatar for TriniBabe

U are given the data(startnode,end node,cost) for each edge on a separate line but u dont no how much nodes u hav b4 hand how u declare it? how do u link the nodes in an adjacency list using linked list and not d <vector>?

Software Development c++ linked-list
Member Avatar for DemonGal711
0
110
Member Avatar for ashkash

I have a number of files in a folder that are number as 1, 2, 3, 4, 5, 6, etc. I also have a text file in the same folder that identifies each of these numbered files and gives their path location. The text file looks like this: 1 C:\system\Apps\file1.exe …

Software Development data-structure shell-scripting
Member Avatar for mittelgeek
0
420
Member Avatar for cproud21

I have the following program that declares 100 Book objects... The way that I have it now, each item in the array is set to a default value. Is there a way to add only the items that are input by the user to the array? and not start off …

Software Development c++
Member Avatar for Danny_501
0
123
Member Avatar for madhatter84gn

I am running into an issue that involves sharing an XSD2Code generated class. I am working with one huge xml schema that I generated into a class in a common class library. The problem I am facing is multiple applications will be referencing this common class but I want to …

Software Development c c# c++ xml
Member Avatar for madhatter84gn
0
95
Member Avatar for Danny_501

Can someone tell me why my print array method won't print strings. It works with an int array, but only prints a few strings. [CODE]template < typename T > void printArray(T * const array, int size) { for (int i=0; i < size; ++i) cout << array[i] << ' '; …

Software Development c++
Member Avatar for Danny_501
0
175
Member Avatar for gabec94

Hi, does anyone know what is wrong here? The program is supposed to find the largest number entered, and the 2nd largest number entered. The process for assigning the 2nd largest is not working, I do not think I am evaluating it correctly, and suggestions? [code=java] package random; import java.util.Scanner; …

Software Development java
Member Avatar for masijade
0
236
Member Avatar for shers

Hi, I'm working on a multi user VB.Net windows application with back end as SQL Server 2008 Express. The SQL Server is installed on the intranet network drive. This is the connection string I will be using. Is this correct? Data Source=.\SQLEXPRESS;AttachDbFilename=Q:\Database\PrintDB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True Thanks

Software Development vb.net windows-server
Member Avatar for shers
0
136
Member Avatar for VelcroMan

Hi, i want to match a function-call in a text file. Which means: [CODE]print(); pRinT54(); print (); print () );[/CODE] I'm using this regexp, which only matches if there are no spaces: [CODE]((?:[A-Za-z_][A-Za-z_0-9]*)(\\s*)(\\(.*\\))(\\s*)(;))[/CODE] Sorry for the ugly regexp :( Anyone have any idea why it doesn't match if there are …

Software Development
Member Avatar for pritaeas
0
101
Member Avatar for Icebone1000

How I can do it? I want a constructor of a object to have parameters, this object is inside other class..the compiler say the class dont have proper default constructors..(error C2512) [CODE=C++] ... class Game{ private: Player P1; Player P2; public: Game(void);//constructor ... [/CODE] [CODE=C++] class Player{ private: int x;//player …

Software Development c++
Member Avatar for NicAx64
0
169
Member Avatar for denniskhor

Any one can tell me how to save text area thing to text file in arranged. like i save it.. become "Splited Result:New Sentence = sdsdsdsd sdsd sds.Tokenized Result:sdsdsdsd | sdsd | sds | Part of Speech Result:sdsdsdsd/KNK | sdsd/KNK | sds/KNK | i wan it become like tat : …

Software Development java
Member Avatar for sillyboy
0
160
Member Avatar for tygerberg

Hi I want to program a IM in java, but I don't know where to start. I can't find information on the net about IM programming. Could anyone please help me, I'm lost. I want to hopefully get the IM working from pc to mobile phone and vice versa. Any …

Software Development java
Member Avatar for stultuske
0
160
Member Avatar for Zohar

Hi, new to the forum, I am currently studying the basics of C++ and we have an assignment in which we have to code a Sudoku validator. Basically the validator will ask for a file to be input, it will read the file and the user will be able to …

Software Development c++
Member Avatar for Zohar
0
235
Member Avatar for U_A_G

I have a program to write and im stuck. It runs but not properly. idk i think my "if" "else" statements are the problem. here are some sample runs Enter employee ID ====> 123 Enter payroll status (s/h/c)====> s Enter monthly salary ====> 5280 Employee ID: 123 Payroll Status: Salaried …

Software Development c++
Member Avatar for DemonGal711
0
99
Member Avatar for aman_dba

hi friends i am connecting to sql server with java through eclipse as IDE. here's my base connectivity class to sql server public class BaseDAO { public Connection getConnection() throws Exception { String userName = "aman"; String password = "password"; String url = "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=amandb"; // step 1 Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance(); // Step …

Software Development ide java
Member Avatar for aman_dba
0
106
Member Avatar for power_computer

have to compute a function that calculates a sum in between a range let say user enters value of 10 and end value of 15 and then it is divided by a a divisor entered by the user say 2 I have the following code but its not working quite …

Software Development c++
Member Avatar for power_computer
0
166
Member Avatar for Zcool31

[code=cpp] template<typename T> //T is a type which supports the dereference operator void foo(T& param){ //the type of expression *param is defined at compile time U = *param; //U is the type which *param returns } [/code] My question is: How can I implicitly determine the return type of performing …

Software Development c++
Member Avatar for nucleon
0
98
Member Avatar for ericstenson

Hi- Does anyone have any good code to watermark an image in vb.net? I guess this would be effectively the same as overlaying a 2nd image on top of an existing image. Thanks, Eric

Software Development vb.net
Member Avatar for gauravmajithia
0
146
Member Avatar for cpsc1892

I'm studying for one of my exam's and this is my first c++ class and my professor gave one of these questions for our study guide... and I'm having trouble with it. And since our final is open book and open notes he's not giving us the answers, and i've …

Software Development c++ file-stream file-system linked-list
Member Avatar for cpsc1892
0
2K
Member Avatar for anandkrishnantc

I want to display a multiline text with certain font size. How to determine the font size in windows? How to convert it into point size? I want to print next line very close to the first line ., means the gap should be minimum. I have x, y co …

Software Development pascal
Member Avatar for m610
0
202
Member Avatar for power_computer

Im looking to learn more and powerful functions like winsock to use in my dev C++ programs, Im more into the field of making application like that I really would want to learn all the necessary functions in winsock to make a simple ping program, I googled and search this …

Software Development c++
Member Avatar for Ancient Dragon
0
179
Member Avatar for neoseeker191

When I run this program using the F or R choice the first output repeats twice, and I can't figure out why. The rest of the program works great. Prog8.cpp [CODE] #include "stdafx.h" #include "ModifyT.h" #include <iostream> #include <string> using namespace std; int main() { char ch; char exitLetter; char …

Software Development c++
Member Avatar for SeeTheLite
0
150
Member Avatar for macfrik

Hey guys, I'm new here. Hello. I have a question for you huys. I've been stuck here for more than 2 hours figuring this out. Problem Create a menu-driven "Guess the Number Game" that allows the player to choose from two options: Version 1 - allows unlimited guesses Version 2 …

Software Development java
Member Avatar for BestJewSinceJC
0
95
Member Avatar for pt_solar

This is the question asked, your help is very much appreciated : One of your professors has asked you to write a program to grade her final exams which consist only of 20 multiple-choice questions. Each question has one of four possible answers:A,B,C or D. The file CorrectAnswers.txt , which …

Software Development c++ open-source
Member Avatar for SeeTheLite
0
196
Member Avatar for pt_solar

hi I have a problem finding the lowest and highest selling product in this question. Can you please help me ? this is what I have . It also wants me to display the name of the salsa not how many jars were sold how do I include that in …

Software Development c++
Member Avatar for pt_solar
0
779
Member Avatar for chris5126

hi, i am totally stuck i need a script (that works in ksh under solaris 10) that takes the following output [code] d15 509MB c1t0d0s5 d13 7.0GB c1t0d0s3 d11 1.5GB c1t0d0s1 d10 10GB c1t0d0s0 d25 509MB c1t1d0s5 d23 7.0GB c1t1d0s3 d21 1.5GB c1t1d0s1 d20 10GB c1t1d0s0 [/code] and for the …

Software Development shell-scripting
Member Avatar for Aia
0
247
Member Avatar for SndSystm

Hello! I'm new here and I'm trying to make a craps game as a project. When i get to a certain function where the player rolls and makes a point, then has to match that roll, I keep getting stuck in a loop. I'll paste the function that this takes …

Software Development c++
Member Avatar for SndSystm
0
116
Member Avatar for blaklite

firstly hello to you all.. Secondly, im new(ish) to java and prone to doing silly things so i'm probably doing it all wrong BUT I want to be able to have a class that has as one of its members as an array of objects. When the class is instanced …

Software Development java
Member Avatar for blaklite
0
125
Member Avatar for turbomen

A given year is a leap year if it is divisible by 4. However there are a few exceptions to this rule, if any of these years are divisible by 100 they are not leap years unless they are also divisible by 400 - so 1990 is not a leap …

Software Development pascal
Member Avatar for FlamingClaw
0
91
Member Avatar for turbomen

I have got a question which come together with my answer but I found that it does not too match with the question. Can you help me to make it changes? Question: A letter of the alphabet is to be input from the keyboard, and a message output as to …

Software Development pascal
Member Avatar for FlamingClaw
0
104
Member Avatar for jackiejoe

I am trying to add data from an array into a jTable, I have seen [URL="http://www.netbeans.org/kb/55/vwp-databoundcomponents.html"]one[/URL] or [URL="http://blogs.sun.com/winston/entry/nb6_table_binding_enhancement"]two[/URL] tutorials which say go to the "Table Layout" page but I cannot find this page anywhere in NB (have been searching for ages now) so I cant get my array into my …

Software Development java
Member Avatar for BestJewSinceJC
0
87
Member Avatar for xcruiser

I have an assignment to submit tomorrow. It gives me compiling errors. About 62 in VC++ 2008 and 42 in VC++ 6. I have written this code in one single file and it works fine there. One error that I can think of is with the declaration of class variable …

Software Development c c# c++
Member Avatar for seanhunt
0
1K
Member Avatar for Dio1080

Binary Search tree help Can somebody explain to me what this code is doing step by step?, thanks [CODE=java] TREE-SUCCESSOR(x) 1 if right[x] ≠ NIL 2 then return TREE-MINIMUM (right[x]) 3 y ← p[x] 4 while y ≠ NIL and x = right[y] 5 do x ← y 6 y …

Software Development java
Member Avatar for Dio1080
0
107
Member Avatar for StillCrazy

Hi everyone. I am new to this web site. Found it while doing some research. My need is as follows: I am modifying a healthcare Practice Management System for a company in Jacksonville, Fl. and the client wants to be able to create basic BAR and PIE charts. There is …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
98
Member Avatar for meistrizy

Thanks in advance for your help. The problem is this: I am supposed to read an array from a file and ask the user to input a name to search for within the file. If the name is there then return the position number in the file, if not output …

Software Development c++ file-system
Member Avatar for meistrizy
0
140
Member Avatar for roryt

This problem is causing me a massive headache! I'm sure I can't be the first person to do this but I have searched the internet high and low for answers about this. I want to be able to display in a list as seperate fields: - A product name - …

Software Development dataset vb.net
Member Avatar for roryt
0
165
Member Avatar for Peyton

Hi there, The Wallis product is defined here: [url]http://en.wikipedia.org/wiki/Wallis_product[/url] I am having a problem with the following code, which attempts to approximate the product: [CODE]#include <iostream> #include <cmath> using namespace std; int main() { int n = 2; // initialise top counter as 2 for the first two terms int …

Software Development c++
Member Avatar for greg022549
0
1K
Member Avatar for phoenix2391

Ok, I'm not too sure if this would be considered a matrix, but what I'm trying to do promts the user for 2 characters, and one integer. For example, say you key in * G 3 the cout would be... *G* G*G *G* If you keyed in % $ 5 …

Software Development c++
Member Avatar for StuXYZ
0
83
Member Avatar for daviddoria

According to this: [url]http://www.parashift.com/c++-faq-lite/templates.html#faq-35.13[/url] One way to keep only the function declaration in the .h file is to do this [code] ////////// file: Tools.h #include <iostream> #include <vector> using namespace std; template <typename T> T Sum(vector<T> &V); [/code] [code] ///////// file: Tools.cpp #include "Tools.h" #include <iostream> #include <vector> using namespace …

Software Development c++
Member Avatar for tux4life
0
298
Member Avatar for Darkangelchick

Hey guys I have to create a python version of Tic Tac Toe, but does anyone know if it's possible to make this using Tkinter? I think I have to have it nice and bright and colourful, therefore TKinter is the only solution i can think of using Python. Any …

Software Development python tkinter
Member Avatar for woooee
0
651

The End.