199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for killerqb

I am trying to optimize my hash function, for a separate chaining hash table that I have created from scratch. My hash function is as follows: [CODE] int hash( const string &key, int tableSize) { int hashVal = 0; for(int i = 0; i<key.length(); i++) hashVal = 37*hashVal+key[i]; hashVal %= …

Member Avatar for Rashakil Fol
0
5K
Member Avatar for ahmedshayan

1. Create a class Account that has following instance variables: a. private account number (string) b. private account holder name (string) c. private balance (floating-point) d. private account opening date (string) e. profitRate (final, floating-point): 5% for all accounts Supply a default constructor, a parameterized constructor, and a clone constructor. …

Member Avatar for javaAddict
0
785
Member Avatar for jupiterrise

Howdy, I have an assignment which requires that I get user input for 3 different variables, each in it's own function. These three functions are called by another function, which is called by main to begin with. Each of these inputs have a range that the input must be in. …

Member Avatar for dan63043
0
159
Member Avatar for Xantox

So I would like to know if there's any way to do the following more efficiently: [CODE]while(g[0] = 0 || g[0] = 1 || g[0] = 2 || g[0] = 3 || g[0] = 4 || g[0] = 5 || g[0] = 6 || g[0] = 7 || g[0] = …

Member Avatar for Sky Diploma
0
120
Member Avatar for vhertie

how can i make a program that the computer will allow the usser to input a number.. then it will turn into a word? example: 1030=one thousand thirty

Member Avatar for vhertie
0
147
Member Avatar for Your_mum

Hi, I am trying to learn C++, and to a certain extent, yeah, it's going alright so far. but I keep getting problems with header files and the like, so I would be really grateful if you guys could help me out. 1) Can't: #include "stdafx.h" - fatal error:file or …

Member Avatar for Your_mum
0
184
Member Avatar for leegeorg07

Hi, using a snippet I found on here I have this code: [code] var password; var pass1="PASSWORD-HERE"; password=prompt('Whats The Magic Word?',' '); if (password==pass1) alert('That Is Correct!'); else { window.location="SITE-LINK"; } [/code] But I want to make pass1 harder to see so I want to encrypt it and use that …

Member Avatar for HenryGR
0
105
Member Avatar for ravikatare

Hi, I am new user of VB & Excel Programming, so i need some study material & site reference for getting materrial Please Help Me [email]ravialwayssmile@gmail.com[/email]

Member Avatar for AndreRet
0
107
Member Avatar for dvprez

I have a client that is posting a gzipped xml file on their site for me to download. I wrote the code the will unpack the gzip file. I'm stuck on how I copy the file from [url]http://www.ClientSite.com/feeds/20091020.xml.gz[/url] to my server. The file is 4mb, not sure if that makes …

Member Avatar for dvprez
0
109
Member Avatar for mcap61

OK, so i need help adding my total_points = temp1 + temp2 + temp3, but everytime they just equal 0. This is a student grade class average program, where you enter a student's info, it gets calculated, then you add the next, after entering all studen't you have to figure …

Member Avatar for rdrast
0
117
Member Avatar for coollife

In my combo box i have kannada words like karnataka kerala mandya mysore kannada something like this , On key press event of combo box if ka (kannada alphabet is pressed) it should list the karnataka or whichever matches the word how to do this

Member Avatar for AndreRet
0
319
Member Avatar for popi
Member Avatar for denniskhor

The modification code that i wan is: When: m = "i wan do something" i need a modification code when get m result... the code will automatic modify it become: "i[B]\\[/B] wan do [B]\\[/B]something"

Member Avatar for lukerobi
0
80
Member Avatar for musi80

hi all i need to make a upload option for user to upload .csv file using jsp then i have to read the .csv file and validate it. if i validation of row is correct then i have update in database else i have to show the error to the …

Member Avatar for patelakhil
0
740
Member Avatar for redpython

Hi all – I am running Python 2.6.2 in a Windows XP Pro environment. I am trying to write my first python/cgi script combo and they must execute on a Linux websever. After surfing the web I realize that MS-DOS and Unix systems use different methods to identify end-of-line information …

Member Avatar for redpython
0
141
Member Avatar for Zay

Hello; read this quastion , what do the last part mean ? do they mean to print the remine cookies that have to be produced to let the number be complated ! or to print the number of cookies that we throw ! -------------------------------------- [B][U]the quastion is :[/U][/B] A box …

Member Avatar for Zay
0
104
Member Avatar for th3learner

hello can any one please write code in simple language tht how to find vowel from string Thanks

Member Avatar for mrnutty
0
118
Member Avatar for twilitegxa

I have the following form, but my data is not getting inserted into my database. Can anyone help? [code] <%@ Page Title="Dorknozzle Help Desk" Language="C#" MasterPageFile="~/Dorknozzle.master" AutoEventWireup="true" CodeFile="HelpDesk.aspx.cs" Inherits="HelpDesk" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <h1>Employee Help Desk Request</h1> <asp:Label ID="dbErrorMessage" ForeColor="Red" runat="server" /> <p> Station …

Member Avatar for Ana D.
0
213
Member Avatar for Graphix

I am currently having a problem with my BB-code editor, like most things it works great in FF, but i have an issue with IE: whenever i select a word that has already been previously typed, it selects that word instead of the one i selected. Here is the selection …

Member Avatar for Airshow
0
285
Member Avatar for tipalm

Hello all I am trying to get a JButton to toggle the setVisible on a JPanel label with an image on it. Below is my code. Thx in advance! [CODE] import javax.swing.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class ButtonExample_Extended implements ActionListener { JPanel titlePanel, buttonPanel, dealerPanel, playerPanel; JLabel dealerLabel, playerLabel, …

Member Avatar for quuba
0
165
Member Avatar for lakshaypandey

I want to kno whether you can control an inpput by time in python. whether i can have a function which checks time n if input not given in that time then moves on?

Member Avatar for masterofpuppets
0
65
Member Avatar for udayangaS

hi, i,m newbe to hibernate. can any one explains how to do bi- directional associations in hibernate . cheers... udayanga

Member Avatar for udayangaS
0
63
Member Avatar for dumbncool

Hi guys, I'm trying to solve this interview question: "Write a function which, given n, prints all well-ordered integers of n digits. A well ordered number is one where the value of the i-th digit is less than the value of the i+1 digit." I've written the code where if …

Member Avatar for dumbncool
0
647
Member Avatar for kustrle

I would like to automatize for example Java Installer to install Java without any additional user input. When I run Java Installer.exe I see following picture (attached, 100.png) I would like my program (whatever, console or something else - I don't know what) to automatically press Install button and bring …

0
71
Member Avatar for cgaceta

Hey guys. Started C a couple weeks ago and I'm trying to learn how to implement functions. I need to make a function which returns a 1 if its a prime number and 0 if it isn't. This is the pseudo code given to us and I'm having trouble constructing …

Member Avatar for yellowSnow
0
121
Member Avatar for Azmatraz

I'm writing a pennies game in which a player and the computer take coins from a pile until only one remains. The trouble is I keep getting an error saying "warning C4700: uninitialized local variable 'nuCoins' used" though I thought after the user input a value it would be. Any …

Member Avatar for Azmatraz
0
164
Member Avatar for th3learner

[code=c] #include<iostream.h> #include<conio.h> #include<string.h> void main() { char s1[30],d[30]; int l; clrscr(); cout<<"Enter your name: \n"; cin>>s1; cout<<s1<<endl; l=strlen(s1); cout<<l; d=strupr(s1); cout<<d; getch(); } [/code] When i run this code , it shows Lvalue required error please help

Member Avatar for mrnutty
0
94
Member Avatar for MattyRobot

in openGL how can I make the left of the screen = 0 and the right to = 10 or somthing, and the top = 0 and the bottom = -10. because i dont like working with numbers only ranging from -1.0 to 1.0. i read [URL="http://www.opengl.org/resources/faq/technical/transformations.htm"]here[/URL] that the coordinate …

Member Avatar for mrnutty
0
85
Member Avatar for eggmatters

Hello all, I have used this code throughout this application with no troubles. I am creating a datatable, and the data is a result set returned from a sql query to an oracle 11g database. I'm creating a TableModel class that overrides the AbstractTableModel so I can add fetures to …

Member Avatar for ~s.o.s~
0
903
Member Avatar for anki.gulsvart

Hi. I really need help. I´ve written a program in java that connects to an ftp-server and changes files. as it is now i have a JPanel and i have to press a button and write the name of the file but i want the program to do this automatically …

Member Avatar for eggmatters
0
87
Member Avatar for tkud

Can i use borland c++ 5.5 to design graphic programs? if yes, please reference a book that i can use(ebook please).

Member Avatar for Ancient Dragon
0
100
Member Avatar for GadiK

Hi. I'm trying to debug a program that was written in Aztec C. I would like to use a familiar environment like VS2005. Is there any way to make VS2005 use the Aztec C compiler commands (from Aztec BIN folder)? If not VS2005, is there some way I can debug …

Member Avatar for Tom Gunn
0
195
Member Avatar for geg13

Hello, I am looking for some help with a program i am writing. It is supposed to ask you for the name of an object and the 'create' said object. It ends with an error message saying that the hard drive was wiped. The only problem is that i can't …

Member Avatar for Phil++
0
109
Member Avatar for PoisonedHeart

Hi guys, good day, just want to ask if there's a function that determines the number of days in a month, In a Roman Calendar, the days in a month are either 30 or 31, but if it's a leap year(every 4 years) the month of February is 29 instead …

Member Avatar for elkhartlynn
0
158
Member Avatar for Traicey

Hi All I am having a problem on finding a solution regarding the ff problem I need to do a search using a textbox and a datagrid, that means type in a text on the textbox and press enter and If a record is found the datagrid should point to …

Member Avatar for Traicey
0
176
Member Avatar for paranjyoti

Hi All, I am stuck in a module. I want to know how to get back the response and see it in alert message from $ajax->observeField in CakePHP. What do we have to write against 'complete'? Moreover, i dont know whether it can be done in $ajax->observeField or not. Any …

Member Avatar for paranjyoti
0
83
Member Avatar for mahela007
Member Avatar for dhanh90

I'm new to java.I write the code and dont know why its wrong.Someone can point out and modify it for me.thanks alot. Here the code[CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package OOP; import java.util.Arrays; import java.util.Scanner; /** …

Member Avatar for sneaker
0
324
Member Avatar for PixelHead777

I'm looking for some major help. I'm a decently new coder, taking a Python class independent study. I was writing a program for a two-player 21 game. (Like blackjack only I start with only one card... for some reason.) Only problem is, while the code doesn't seem to contain any …

Member Avatar for PixelHead777
0
207
Member Avatar for snapppy

Having trouble finishing the if else statment. Help would be so greatly appreciated. Do i need more const? Just confused all and any information is apprieciated Input if home use, commercial use, or industrial use Clear screen IF (home use) $5.00 plus 0.0005 per gallon used else if (commercial use) …

Member Avatar for Grn Xtrm
0
111
Member Avatar for nateuni

Guys.. I am trying to figure out Comparator so I can compare Strings in an object array (the object has other data types as well). I have been hunting around and have come up with this.. but I cant get it to work --> Can anyone point me in the …

Member Avatar for nateuni
0
98
Member Avatar for sfuo

Hi, I was wondering if anyone could help me figure out how to see who is connected to you when you are hosting a game on a specific port via c++. I know you can use netstat in cmd prompt and it shows a bunch of info of who you …

Member Avatar for lashatt2
0
135
Member Avatar for BlackPhoenix

[B]Title:[/B] WinSock connect() problem. Client thinks it is connected even when Server is down As of right now, my program incorrectly displays the status of the connecting socket. Because of the if statements seen below, even when the server is down, my friends can access a part of the program …

Member Avatar for lashatt2
0
2K
Member Avatar for agr.pallav

i would like to know the way we can make user enter a number in a menu reply perhaps so that he doesnt have to press the enter key...........i.e. the program automatically proceeds with the give value and doesnt wait for an enter key to be pressed. its easy in …

Member Avatar for Tom Gunn
0
164
Member Avatar for Ene Uran

I have two similar lists and want to create a new list with just the differences between the two. Is there an existing function or do I have to iterate with a for loop?

Member Avatar for Gribouillis
0
2K
Member Avatar for IFEEL

Hi, why would this not work? (example) [CODE] fileA.h: // declare the function void methodA(); fileA.cpp: // define the function void methodA(){}; fileX.cpp: include "fileA.h" // call it methodA(); <--linker error, can't find the symbol[/CODE] All my headers have the #ifndef guard. Thanks!

Member Avatar for IFEEL
0
98
Member Avatar for Umarmai

Hello, am currently workin on a project in form of a windows reminder, bt am havin serious problems with calling up the systems beep and sounds using shell. thanks 4 ur anticipated help.

Member Avatar for sknake
0
106
Member Avatar for TomMan

I am trying to compile this, but when I run g++, I get this: tom@griffindor:~/Projects/wermz$ make g++ -c -Wall -O3 main.cpp -o main.o g++ -c -Wall -O3 wermz.cpp -o wermz.o g++ -c -Wall -O3 logger.cpp -o logger.o g++ -c -Wall -O3 win_funcs.cpp -o win_funcs.o g++ -c -Wall -O3 lin_funcs.cpp -o …

Member Avatar for dkalita
0
261
Member Avatar for Shruti Tapadiya

I wanted to know how can I implement merge sort and quick sort using multithreading in c#

Member Avatar for sknake
0
274
Member Avatar for Umar Ali

[COLOR="Green"]Hello I have a problem with this code. I'm trying to connect to local dns server in order to get the ip of the hostname( that user would enter). For now, i'm just trying to connect to the local dns server, and this code gives me following 8 errors.. [COLOR="Red"]client.obj …

Member Avatar for Umar Ali
0
253

The End.