132,725 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tien113

hi, i have some problem with my project, can u help me??? I google but no solution found...:( I used hibernate, strust 2 and spring to manage transaction. I want to try catch username in New.java, username is a PK, this pape throw can throw excetption error but the server …

Software Development java session
Member Avatar for tien113
0
2K
Member Avatar for ceyesuma

Hi My program is trying to load properties but it is saying it can not read a line of it. Does anyone have an idea why not? [code] dbProperties.load(dbPropInputStreasm); [/code] but error [code] Exception in thread "main" java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Properties.java:418) at java.util.Properties.load0(Properties.java:337) at java.util.Properties.load(Properties.java:325) error here -------> at model.dao.DerbyDAO.loadDBProperties(DerbyDAO.java:160) at …

Software Development apache java
Member Avatar for masijade
0
195
Member Avatar for pistol-pete

I have to create a class with a default and alt constructor to fill an inventory array of seven elements. Only one dimentional first error is a 1>e:\invclass\invclass.cpp\invclass.cpp\invclass.cpp(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int here is my class code why won't …

Software Development c++
Member Avatar for pecet
0
141
Member Avatar for thandwandim

For some reasons I'm getting no data populating in my crystal report. I have set the datasourse of my crystal report to the dataset. I filled my dataset with data straight from the database. My dataset is not empty, I always check it first before populating data to the my …

Software Development asp.net dataset vb.net
Member Avatar for Syeda.farwa
0
215
Member Avatar for ravens1

I am having trouble with an array. I have to enter some food items and their calorie values and then when finished I have to re enter the food item and then search the array to output their calorie values. My problem is how do I search an array. here …

Software Development c++
Member Avatar for rinku2142
0
120
Member Avatar for jgehlot09

I am writing a simple code in c to extract the values from string for ex-P23V32 gives me output of 23*32. But when I am trying to use the isalpha() and isdigit() to check whether the value is a charecter or a digit, the compiler return always zero. Here is …

Software Development c
Member Avatar for jephthah
0
211
Member Avatar for Hidden_mistakes

I am trying to get my racing game to recognise when two images have hit eachother when this happens I then want the game to display "Player 1 or 2 wins" and then quit the game. My code is very long so i will not post unless i need to. …

Software Development c++
Member Avatar for Hidden_mistakes
0
75
Member Avatar for Jeun

import java.awt.*; import java.awt.event.*; import java.text.*; import javax.swing.*; import javax.swing.border.*; import java.util.Arrays; import java.io.*; public class BankAccount extends JFrame { // Make these variables publicly available String file = ("THUS.txt"); public static String acctNumber ; public static String custid , acctDateOpened; public static double balance ; private static final String …

Software Development file-system gui java java-swing
Member Avatar for Jeun
0
237
Member Avatar for white feather

ok, so i have this [B]so far [/B] [CODE] String p = "(http|ftp|https):" + // sees if the proto is any of these " (\\:[\\w^\\:]+:)? " + // gets the sub-proto " \\/\\/" + // the two forward slashes "([\\w*.]+)" + // gets the subdomain(s), domain and tld "[\\:\\w*^"; [/CODE] …

Software Development java
Member Avatar for white feather
0
83
Member Avatar for janice777

basically a func named getString is supposed to ask user to enter a sentence, store sentence in the array, dynamically allocate a char array big enough to hold the sentence plus null terminator. then it should copy the sentence to the dynamically allocated array then return the pointer to the …

Software Development c++
Member Avatar for Salem
0
116
Member Avatar for Bangus

good day everyone, im currently using vs.net 2003 my problem is that i want to sort items in listview by date (mm dd, yyyy) format and sort by a button not in the column :?: please help me.. thanks in advance!

Software Development listview vb.net
Member Avatar for Bangus
0
570
Member Avatar for pritesh2010

hello i have big problem on sending Message to mobile. i had created one application where i'm storing the All the information of customer now when they placing order i want to send them message of their bill amount. and bill date. but i'dont no how to send message on …

Software Development vb.net
Member Avatar for kvprajapati
0
107
Member Avatar for malugirl4

I am working on this programming probability assignment for class and I am having trouble figuring out how to work this problem below. 1.) Design and write a computer-based simulation to find an empirical probability for landing on GO TO JAIL/Boardwalk.

Software Development java
Member Avatar for malugirl4
0
78
Member Avatar for emaduddeen

Hi Everyone, I never did custom events and would like to make a sub procedure execute via a custom event from another form that does not have the custom event defined. For example I would like to raise the event from my ok button in one form and have the …

Software Development vb.net
Member Avatar for kvprajapati
0
85
Member Avatar for yinyang

[COLOR="Red"][B]Do I use php or ssh? [/B][/COLOR]If so, please tell me how because I haven't got a clue as to either of them. I'm just a singer who started learning to design one site from the past few months. my site is yummyrestaurants.co.uk. [B]I read this [/B][URL="https://www.google.com/webmasters/tools/docs/en/sitemap-generator.html#execute"]article on how to …

Software Development google python unix web-design web-server xml
Member Avatar for radlinks
0
247
Member Avatar for Lee21

Guyz please help me on how to know the value of the specific character when i pressed the keyboard, a messagebox will pop out and tell's value of the character that I pressed. For example character a=65 "not sure if it's the real value of a" heres my code.. [CODE]Private …

Software Development vb.net
Member Avatar for Lee21
0
87
Member Avatar for Mikayil

Hi everyone, I am having problem with the relative path in VB.Net. My project contains PDF file that reside on the same directory as all project files. I am using WebBorwser control to open that PDF file. The code below shows what I am doing to display the PDF file, …

Software Development asp.net pdf vb.net
Member Avatar for Mikayil
0
3K
Member Avatar for polawyz

Hi my professor for an entry level C++ class recently assigned us a homework problem, but hasn't quite taught us how to approach this problem. The problem asks us to create a working C++ program that has a class called [ICODE]Fractions[/ICODE] that has two int data members called numerator and …

Software Development c++
Member Avatar for caut_baia
0
764
Member Avatar for sam8

Hi guys, I'm trying to count the comparisons in the mergesort algorithm so that I can compare it to other sorting algorithms. I've managed to get a count to work for insertsort but mergesort is being a complete pain! It's probably a very simple problem but I've experimented around with …

Software Development algorithm java
Member Avatar for sam8
0
472
Member Avatar for sam8

Hi guys, I'm trying to count and time the comparisons in the mergesort algorithm so that I can compare it to other sorting algorithms. I've managed to get a count and stopwatch function to work for insertsort but mergesort is being a complete pain! It's probably a very simple problem …

Software Development algorithm java
Member Avatar for sam8
0
465
Member Avatar for DumbProgrammer

Ok I've spent more time than you would believe on this one. I built the program, started from scratch. Over the course of the last week I've spent no shit about 30 hours on this and still cant get it to work right. What is suppose to happen is the …

Software Development c c# c++
Member Avatar for CanYouHandstand
0
129
Member Avatar for PDB1982

I'm new to VB, and I'm having some trouble creating an array of random numbers between 100 and 150 (where the numbers represent # of students). I'm not sure what I'm doing wrong, but my textbox is showing 0, no matter how many times I press the generate button. here's …

Software Development vb.net
Member Avatar for PDB1982
0
1K
Member Avatar for pok.kys90

Problem Statement: Consider a collection of songs in an MP-3 library where each song is characterized by artistName, songTitle, albumName, playTime (in seconds), musicCategory, and albumProducer – hence, you will need to use a struct data type to hold a song and an array of structs to hold the song …

Software Development c++ file-stream
Member Avatar for pok.kys90
0
206
Member Avatar for sarfrazashfaq

Hi there I have following hash related code in Perl that i need to translate in Python if ( exists $legs->{$reference} ) { logg(" 2nd leg of swapes: $ref - merging"); my $swap = merge_swap_legs( $legs->{$ref}, $fields ); $ref = new_fk_ref( $fxall, $ref, $swap ); } else { $legs->{$ref} = …

Software Development perl python
Member Avatar for leegao
0
244
Member Avatar for jnthn205

Here is an example of the return statement in question: [CODE]public boolean either24(int[] nums) { boolean n1 = false; boolean n2 = false; for (int i=0;i<nums.length-1;i++) if (nums[i]==2 && nums[i+1]==2) n1 = true; else if (nums[i]==4 && nums[i+1]==4) n2 = true; return !n1 && n2 || n1 && !n2; //<----what …

Software Development java
Member Avatar for moutanna
0
109
Member Avatar for goodwin912

I have finally got my program finished and going. Im now looking to make it look a bit better. While it is processing it shows and empty tk window. How does one go about putting something in here? I'd just like my users to be reassured it is actually working …

Software Development os-x python tkinter
Member Avatar for TrustyTony
0
678
Member Avatar for nwalser

The board game scrabble works by assigning points to wooden tiles arranged in cells on a board. It's described here:[url]http://en.wikipedia.org/wiki/Scrabble[/url]. We'll simplify this considerably, and consider the following question. We begin with the letter-scoring scheme from Scrabble: a = 1, b = 3, c = 3, d = 2, ..., …

Software Development java
Member Avatar for BestJewSinceJC
0
1K
Member Avatar for bubba-bo

Hi, I am trying to do an assignment about buying zoo tickets but I am becoming stuck on the last hurdle when trying to get the accumulate number. [CODE]import java.util.Scanner; public class ZooTaking { public static void main(String[] args) { // Create a Scanner Scanner input = new Scanner(System.in); // …

Software Development java
Member Avatar for bubba-bo
0
123
Member Avatar for cyberparadox

I am writing a command line dbm editor and have ran into a small issue. If I try to run certain commands (ie add, remove, display) when I do not have a file open, I get the following error: [icode] Traceback (most recent call last): File "C:\Users\William\Desktop\dbmEditor.py.py", line 35, in …

Software Development python
Member Avatar for cyberparadox
0
147
Member Avatar for ahmed.123

hello n is 10 numbers 10 50 25 75 2000 30 500 800 10 25 485 p.s var[i] is the variable contains all above numbers for example if the user enters 25 how do i print out how many times number 25 was enterd not in which index it is …

Software Development c++
Member Avatar for ahmed.123
0
92
Member Avatar for Sharon5

I have a difficult time with getting the programs started. I read the book but I am not getting anywhere. There just is not enough examples to help me. The book we are using for CSC 135 is called Java Software Solutions by Lewis & Loftus. We are starting on …

Software Development java
Member Avatar for BestJewSinceJC
0
490
Member Avatar for esash28

Hi everyone.. I am a new programmer to OpenGL using C++. I have an nxn grid having numbers in each cell of the grid.. I have to swap the content of two cells.. ie., the numbers in 2 cells selected, have to be swapped. I am not knowing how to …

Software Development c++ opengl
Member Avatar for daviddoria
0
931
Member Avatar for xcarbonx

[CODE] getline(inFile, st[i].name) while (inFile){ inFile >> st[i].id >> st[i].eng101 >> st[i].hist201; i++; getline(inFile, st[i].name); [/CODE] The above code only reads the first line of my input file, and the rest prints out zeros. My input file is set up like: John Wall 345505050 95 66 The output looks like: …

Software Development c++
Member Avatar for kenji
0
93
Member Avatar for vskumar19

Hello friends, I am writing an Application in pygtk ,there i got stuck up with this problem I want to open a text file using any editor using python Can any give some solution to this please ... Thanks in Advance ...

Software Development python
Member Avatar for hondros
0
11K
Member Avatar for johnnyd1986

Hey everyone, I need help with a Python issue. This is what I have so far: [CODE]scores = [] choice = None while choice != "0": print \ """ High Scores Keeper 0 - Quit 1 - List Scores 2 - Add a Score """ choice = raw_input("Choice: ") print …

Software Development python
Member Avatar for Gribouillis
0
145
Member Avatar for pichi89

Hey, I need a function that virtually increase the size of an array, by creating a new array with the size of the old array plus the default array size and copying the content of the old array to the new array, finally returning the new array. This is a …

Software Development c++
Member Avatar for Fbody
0
94
Member Avatar for jiraiya

Hi everyone, I've written a small program to convert combinations of English characters into their corresponding Chinese and Japanese equivalents, and it's working on my computer at home, so so far so good. However, I'd also like it to work on computers which don't have Chinese or Japanese fonts installed, …

Software Development java
Member Avatar for jiraiya
0
171
Member Avatar for yznk

I am writing a sort program and i am getting the error " error: no matching function for call to 'Object::setdepend(Object*&)' " in this line " graph[i]->setdepend(graph[atoi(buffer.c_str())]); " which is in my read function. I am not sure how to fix this, can anyone help? [CODE] #include <iostream> #include <fstream> …

Software Development c++ ios
Member Avatar for Fbody
0
1K
Member Avatar for Dcurvez

I have a question I am hoping someone canhelp me with. I have a form that consists of a Tab Control..that is filled with text boxes..a ComboBox..and a Notes Box. I just really dont know what extension to put in the SaveFileDialog :(. Can I just put something like *.* …

Software Development vb.net
Member Avatar for Dcurvez
0
95
Member Avatar for khan17

hi, i know tat enter and f1 keys can be pressed programmatically using "SendKeys" function. but now i just want to know whether it is possible to press the alphabet 'S' in the keyboard programmatically. Expecting reply. thanks.

Software Development
Member Avatar for ddanbe
0
151
Member Avatar for riahc3

Hey Im doing a loop with somthing similar to this: [code=C] char stn[25]; do { printf ("Insert a number:\n"); gets(stn); }while (stn!="123"); if (str=="123") { printf ("Good value!"); } [/code] Now if I input 123, it enters the if that prints "Good value!" and the program ends naturally. Now if …

Software Development c daniweb-bug
Member Avatar for jephthah
0
203
Member Avatar for bondzerg

HTML files use tags enclosed in angle brackets to denote formatting instructions. For example, <B> indicates bold and <I> indicates italic. If a web browser is displaying an HTML document that contain < or >, it may mistake these symbols for tags. This is a common problem with C++ files, …

Software Development c c# c++ html-css web-browser
Member Avatar for bondzerg
0
385
Member Avatar for mannoosh2000

Hello, I have got an assignment to modify an existing ISR. Can someone guide me how to do so? It is to write an assembly program that exploid an existing ISR and modify it. Thanx

Software Development assembly
Member Avatar for mannoosh2000
0
104
Member Avatar for bongoboia

Hi to all, I have a problem and can't understand why this happen... I'll explain all now. I'm not a very good programmer, I'm just starting and I'm doing a program that must run on linux like a daemon. The job of this program is to take all the characters …

Software Development c
Member Avatar for nezachem
0
162
Member Avatar for rcsamich81

Hi, I'm trying to hide 5 to 12 buttons on a form until a screenshot is saved to the clipboard. I have it set right now so the user clicks a button(btnSavePDF) and then whichever buttons are visible are made not visible. But I haven't a clue how to restore …

Software Development gui vb.net
Member Avatar for rcsamich81
0
3K
Member Avatar for moni94

Hi. I made a program for tcp chat but I'm really confused with which IP to use. I can send a message to myself by sending a message to a local IP such as 127.0.0.1 or 192.168.1.100. When I tried with my external IP (the one from whatsmyip.com) I get …

Software Development
Member Avatar for Mattan360
0
113
Member Avatar for veeresh.k

hi... 'm findin it difficult to access system date in a c program.. pls help me... N also to write code fo airline reservation in c...

Software Development c
Member Avatar for Salem
0
121
Member Avatar for xerreck

Hello everyone I am working on a secruity program Demo. The program should allow the user to enter a message, one character at a time. The program should then display the corresponding digit or punctuation according to the ASCII character set. For example, if the user enters the letter a, …

Software Development assembly
Member Avatar for xerreck
0
157
Member Avatar for StratmanPereida

I need to make this into a multi-dimensional array. I know I need to change presArray = Table1Builder(60, "STR") to presArray = Table1Builder(60,3, "STR") I am not sure how to load it. Do I need three load statements? Help Please! [code] # Import string to use split function. import string …

Software Development python
Member Avatar for StratmanPereida
0
185
Member Avatar for Ultratermi

Hey, I wanna use OpenReadAsync instead of OpenRead because its blocking my Form.... But i cant get it work.... Ok... Im programming in C++/Cli but its not rly different. [CODE] IO::StreamReader^ sr = gcnew IO::StreamReader(webClientOther->OpenReadAsync(gcnew Uri("Site"))); [/CODE] In C#? [CODE] IO.StreamReader^ sr = new IO.StreamReader(webClientOther.OpenReadAsync(new Uri("Site"))); [/CODE] I hope I …

Software Development
Member Avatar for Ultratermi
0
341

The End.