64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for 3cats

I have an if stmt which checks to see if a char value (upper or Lower) is equal to a value input by end user. My understanding was if you are using a char value in a conditional stmt you need to put single quotes around the char value. If …

Member Avatar for Salem
0
3K
Member Avatar for xavier666

I've come across two questions from my previous years college test papers. I just couldn't solve them [LIST=1] [*][I]Define rational number as an ADT (abstract data structure)[/I] [*][I]Write a suitable C code to sort a finite set of elements where an element may appear a large number of times[/I] [/LIST] …

Member Avatar for Narue
0
145
Member Avatar for carpenoctem

Haha, still not getting the hang of this, I am afraid. I have written a script: [CODE]#!/usr/bin/env python print ("Hello, world!") name = input("What is your name? ") print ("Hello, " + name + "!")[/CODE] I have saved it as hello.py. And I try to make it executable in terminal: …

Member Avatar for vegaseat
0
313
Member Avatar for rmontgomery

Looks like I can't stop having problems with SQL haha I'm trying to delete a value from a database using the following code, and I have no idea where it's going wrong. It gives the messageboxes saying the operation goes through ok, but doesn't actually delete the data. Here's my …

Member Avatar for rmontgomery
0
97
Member Avatar for bondgirl21

Hi, I wanted help implementing how to count vowels and preposition in a text file..this is what i have for counting words, the other are blank because i simply can't get it to work..Help is greatly welcomed.. [CODE]import java.io.*; public class FileIO { public static void main(String[] args) throws IOException …

Member Avatar for bondgirl21
0
1K
Member Avatar for krishnisilva

hi there, in my project i have a combo box with some values in it at runtime the user can write on that combo box,ho do i avoid this and let the user select only a value from the combo box. can some one help me with this, thanx

Member Avatar for krishnisilva
0
103
Member Avatar for tatt727

Hi, I have created a mock site for a shop which has a registration form which is validated and then, if all the items pass the validation it should move on to the next page. The validation of the individual form feilds work well, I just can't get the redirecting …

Member Avatar for tatt727
0
169
Member Avatar for batchprogram

I'm an experienced programmer of 5 years in Java & C#, but recently I decided to program in C++ as well. I'm familiar with proper code syntax and advanced programming techniques, but this compiler error i'm getting just stumps me beyond recognition, I've analyzed my code for syntax errors a …

Member Avatar for EddieBre
0
209
Member Avatar for Geodude0487

I was wondering if you could help me out, I'm trying to do a DB Add, Update, Delete program and I was using your program khanhtrung for assistance and got the ADD working perfectly but UPDATE/DELETE will not work whatsoever, this is my code for my delete button, and for …

Member Avatar for kvprajapati
0
164
Member Avatar for bravo659

Bravo659 Hello I need some assistance in the MDI ChildForm to save contents of the multiline textbox in the ChildForm and open the text file. It writes to the text file but not will not close nor open with the open existing file or the open file. Below is the …

Member Avatar for kvprajapati
0
861
Member Avatar for madmax007

Hi, I want to develop a an application based on independent "CustomModule" that all derived from a base class "BaseModule" and that can send different kind of "CustomEvent" (derived from a "BaseModule" class) to each other. Each Module just knows that it is connected to others "BaseModule" (i.e. it does …

Member Avatar for madmax007
0
165
Member Avatar for guest11

hi all, I am developing the map tool application in vb.net where user can create maps. I gave the check boxes for show/hide the layers of map like village boundary(polygon), plot boundary(Polygon), roads(Lines), bore wells(points), dug wells(points), schools(points). I am using the function RedrawMap for displaying various layers of maps …

Member Avatar for Oxiegen
0
217
Member Avatar for Big-D2xL

Hi, I know this forum for a while and it has been helping me for a time, now I registered myself and I have a question to make you: I'm making a zone in my website where I can see a Top10 of links, products and news, and all of …

Member Avatar for Big-D2xL
0
190
Member Avatar for DancingDana

Hello, I've got this directory with files that contain a number in their file name. I need to check what the number is and then I need to move the file to a different directory. Right now I'm using shutil to do this, but for some reason it copies the …

Member Avatar for DancingDana
0
226
Member Avatar for phummon

Hello everyone, I’m an intermediate-level C++ programmer grappling with a fairly rudimentary problem. I’m creating a C++ object called FruitCart; FruitCart contains a number of integers categorizing the numbers of individual fruit in the cart. I also need FruitCart to contain accessor functions so other functions can set, retrieve, and …

Member Avatar for phummon
0
133
Member Avatar for sarfrazashfaq

Hi there I am translating PERL code into PYTHON Code My PERL code is if ( my $client = $dealing_clients->{ $data->{fundId} } ) And i translated it into python as if (client = dealing_clients[data["fundId"]]): But it is giving my following Error "Syntax Error While detecting Tuple" Any one know how …

Member Avatar for sarfrazashfaq
0
693
Member Avatar for carpenoctem

I am trying to run my first program/script (pardon my bad terminology, I am a newbie), and just doesn't work. I am using Ubuntu, and IDLE. and I have written: [CODE]print "Hello, world!" [/CODE] I saved the file as hello.py. Tried to click Run - Run Module, but then it …

Member Avatar for carpenoctem
0
101
Member Avatar for jonniebl

I am writing a program that needs to log in to a web site. I have used the following code in my event handler. [code] If WebBrowser1.ReadyState = WebBrowserReadyState.Complete Then WebBrowser1.Document.All("password").SetAttribute("value", Password) WebBrowser1.Document.All("email").SetAttribute("value", email1) 'WebBrowser1.Document.All("comments").SetAttribute("value", comment1) WebBrowser1.Document.Forms(1).InvokeMember("submit") End If [/code] the email and password fill in fine but the submit …

Member Avatar for Oxiegen
0
4K
Member Avatar for Archenemie

I need to make it so when i click the Do IT botton the variables ive shown take the values of the text control box ive selected, and after an hour trolling the internet and trying different lines of code i still have no clue. Does anyone have any ideas? …

Member Avatar for vegaseat
0
294
Member Avatar for nsutton

Ok so I'm working on an address book app in python. the user writes contacts into a txt file and can search for it and everything.(run the code yourself if you want to see what it does) now for my problem, under "#if editing" i want have the user search …

Member Avatar for nsutton
0
2K
Member Avatar for leegeorg07

Hi again i have programmed a thing that asks for 2 numbers and does a series of things to it.But i want to round the square-rooted numbers to about 6 digits e.g. 5.12345. How can this be done? Here is my code: [ICODE]from math import sqrt running = 'Y' while …

Member Avatar for vegaseat
0
491
Member Avatar for 3cats

We are just learning user defined functions. Instructor has us taking a prev assignment and pulling the calculations into functions. I thought I understood how to do the function, but guess not I''m getting the "error term does not evaluate to a function taking 0 arguments." I have been working …

Member Avatar for chiwawa10
0
159
Member Avatar for severman

Hi all. Does anybody knows how work with oracle DB in Visual Studio 2010 i was able to connect to the DB(meaning i can see the tables in the Server Explorer), but i cannot add the reference to the System.Data.OracleClient like it is able in VS 2008. Thanks!

Member Avatar for kvprajapati
0
451
Member Avatar for preetg

HI everyone I want to install joomla . but dont know how to do it.. i download from internet a zip folder., that contains files but i could nt find any setup in it... plz guide me how i can install it using easy way i tried it from so …

Member Avatar for saiprem
0
165
Member Avatar for jellybeannn

Hallo can someone please help me, I've got this table: Valuation Date Construction 30/03/2009 30,625.26 30/04/2009 269,825.04 30/05/2009 850,056.45 30/06/2009 1,922,475.06 30/07/2009 3,500,852.19 30/08/2009 5,757,055.16 30/09/2009 8,699,041.1 30/10/2009 12,232,330.17 30/11/2009 16,612,763.46 30/12/2009 19,166,542.19 30/01/2010 22,098,191.54 28/02/2010 33,539,289.47 30/03/2010 40,518,025 30/04/2010 48,372,377.98 30/05/2010 56,543,248.62 30/06/2010 65,507,314.28 30/07/2010 74,607,415.4 30/08/2010 84,352,063.34 30/09/2010 …

Member Avatar for jellybeannn
0
65
Member Avatar for viziroth

I'm writing a header file for a class project and one of the functions we have to add finds a patient's age from their birth date. I need to write the function without arguments or any user input and can't use a static date. I've figured out enough that I …

Member Avatar for viziroth
0
215
Member Avatar for Gospp

I'm looking for a DLL or a complete C# project with Client and server for sending and receiving XML-document. Google isn't my friend :( I'm thankful for any help!

Member Avatar for Gospp
0
102
Member Avatar for Billingsley

Hello, I've been trying to find a way, using Oracle Express, to return more than one column but have only one column be distinct. The following will make all three columns distinct. I want only the Job_ID column to be distinct. Can this be done in Oracle? [code=sql]SELECT DISTINCT Job_ID, …

Member Avatar for Quacau corp
0
23K
Member Avatar for white feather

[CODE] private Map<String , String> c = new HashMap<String , String>(); .... //regx to get mString c.put(mString.group() , mString.group()); ..... //regx to get mNumber c.put(mNumber.group() , mNumber.group()); ....... Set set = c.entrySet(); Iterator i = set.iterator(); while( i.hasNext() ) { Map.Entry me = (Map.Entry) i.next(); System.out.println(me.getKey() + " : " …

Member Avatar for white feather
0
177
Member Avatar for SgtMe

Hi. I'm just trying to make a simple analogue clock as I learn to use TKinter with python. I need to know the maths behind calculating the x, y values for drawing the end of the hands. I don't need to post the whole program, all you need to see …

Member Avatar for SgtMe
0
970
Member Avatar for nsutton

How can i use this code (below) to take the random numbers from the dice roll and change 6 to "A" and 5 to "K" and ect. [CODE]#Poker Dice! Noah Sutton 4/24/10 import random rounds=0 #roll dice def roll_dice(): #Dice variables dice1=random.randint(1,6) dice2=random.randint(1,6) dice3=random.randint(1,6) dice4=random.randint(1,6) dice5=random.randint(1,6) '1'=9 '2'=10 '3'=J '4'=Q …

Member Avatar for Hummdis
0
4K
Member Avatar for jokomamamita

Greetings all, Me and my friend are doing a group project and we encountered a problem lately. If you check out the site : [URL="http://www.meteor-idea.com"]www.meteor-idea.com[/URL] And you click on Login -> Signup -> Put everything blank and hit submit, you will notice an error message saying "Please insert userid." We …

Member Avatar for rajarajan2017
0
232
Member Avatar for cyon

How do I apply a function to a selective number of values in a list of lists using a list comprehension without filtering the values that are not passed through the function? Specifically, I have a list: [[4, 5, 6], [2, 4, 5]] And I want to square only the …

Member Avatar for TrustyTony
0
180
Member Avatar for Danthier

Pretty new to Python, but I have some background in C and VB. Just joined this site because I couldn't find anywhere else to get Python help! I'm working with VPython in the IDLE environment, and I'm having a problem changing a variable using a toggle switch and a function. …

Member Avatar for Danthier
0
293
Member Avatar for sweetypie123

Hi I am trying to find customers name that starts with "S" in my access database. If i run the following query in access its working fine. Select Lastname from employees where Firstname Like '*S*'; it displays two records which is right. if I use it in access it..its not …

Member Avatar for sweetypie123
0
136
Member Avatar for Ednt

Hi All, can anyone please tell me what's wrong in this code I'm trying to get some data from an access database and show them in a CheckedListBox The sql quary includes a variable('sport') and it's values is passed by the user when I run the following code an exception …

Member Avatar for kvprajapati
0
109
Member Avatar for Acute

Hi, Do you know a good, free to download book about AJAX (pdf, djvu, chtm?, any)?? Plz, give a link!!! THNX!!!

Member Avatar for Acute
0
112
Member Avatar for Hypalink

Can somebody help me understand how to retrieve user profile data when that user logs-in. I'm relatively new to this and am currently developing a site with javascript, ajax and php. For example in Facebook when a user logs-in their profile data is then displayed in their profile page. Im …

Member Avatar for Hypalink
0
2K
Member Avatar for sciwizeh

Hello all, is there simple way to check if a multimap contains a value, or am I going to have to loop through all pairs? thanks

Member Avatar for sciwizeh
0
113
Member Avatar for bustersox

I have having problems figuring out how to get this code to run properly. I cannot seem to get my do-while loop in the main method to repeat. Also, I am having issues with my getConsonants method. It seems to always count 1 less than there actually is. Lastly, not …

Member Avatar for moutanna
0
2K
Member Avatar for jamesonh20

I was just wondering if it were possible to link a sound to an option selected in a scanner class in java? For example: [CODE]import java.util.*; public class GameTest { public static void main(String[] args) { Game myGame = new Game(); Scanner myScanner = new Scanner(System.in); int size = 30; …

Member Avatar for jamesonh20
0
163
Member Avatar for kerek2

Hi all...i need your help regarding to change a new day and date after clock shown 00:00:00 AM......can anyone help me....i'm desprerated....tq

Member Avatar for kerek2
0
108
Member Avatar for theblastedfool

Hello guys, I have been working on this code for a few hours and I almost have everything working right. This project that I am working on is basically a password creator where a person enters their password and the program checks it to make sure that it meets certain …

Member Avatar for theblastedfool
0
110
Member Avatar for smcp

Hey guys, I'm currently working on an assignment to create a C++ Employee class that can compute the net pay salary of hourly based employees and also find the average net pay for a small company. As far as I know, I've done everything that I am required, but when …

Member Avatar for smcp
0
147
Member Avatar for bgx90

I need another set of eyes to look over this code. I must be overlooking something. I cannot figure out what the compiler's complaint is. When I try to compile, GCC gives me this error: sim.cpp: In function âint main()â: sim.cpp:21: error: ârunSimulationâ was not declared in this scope Can …

Member Avatar for NathanOliver
0
62
Member Avatar for vishalsnc

Cn anybody pls help me.. i have develoed application which is using JSP and servlet bt i want to make it acc to MVC2..

Member Avatar for chauhan_vipul87
0
189
Member Avatar for joshua91

could someone please help me in forming a loop as i am stuck... [CODE] def numbergen(): randomnumber = random.randint(0,100) print randomnumber def main(): Question = float(raw_input("Do you wish to play the Guess a Number Game?(Y/N)")) for Question: if Question == N: break else: print "randomnumber" main()[/CODE]

Member Avatar for Hummdis
0
158
Member Avatar for KadajXII

Dear All, I have search a lot of forum or blog for this problem and have yet come up with a solution.. Hope anyone can help me here... Thanks a lot!! I am using Ms Visual Basic 2008 Express Edition (vb.net) Here is my code: [CODE] Private Sub btnUpdate_Click(ByVal sender …

Member Avatar for KadajXII
0
97
Member Avatar for kneel

[code] #include <iostream> #include <list> #include <numeric> #include <algorithm> using namespace std; int main() { // create linked list of integers list<int> the_list; // input as requested cout << " Enter length of the list " << endl; size_t len; cin >> len; for(size_t i=0; i<len; ++i) { cout << …

Member Avatar for kneel
0
171
Member Avatar for sinister747

Hi All, I could really use some help in sorting vectors, i know the collections.sort(x) method will sort a vector of numbers etc however i have a vector full of objects and i need to sort them; the object contains details of a website please find the fields below; [CODE] …

Member Avatar for moutanna
0
136

The End.