64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for aditya027

class Superclass { void display() { System.out.println("Super"); } } class Sub1 extends Superclass { void display() { System.out.println("sub class1"); } } class Sub2 extends Sub1 { void display() { System.out.println("Sub class2"); } void display2() { System.out.println("Second method"); } } public class reference { public static void main(String[] args) { Superclass …

Member Avatar for aditya027
0
124
Member Avatar for lwaterfo

Hello, I am wondering, is there any way to create a form inside of a php page? If so, how? thanks, -l.

Member Avatar for lwaterfo
0
161
Member Avatar for daredevil786

*ptr++ and ++*ptr are they representing the same expression if not then how they are different according to precedence ?

Member Avatar for Adak
0
101
Member Avatar for kirennian

Take for example, the number 74.38145. The user inputs how many decimal points they wish to have displayed via the sprintf_s function. I can't for the life of me figure out how to best do this. I know how to display the float to a set number of decimal points: …

Member Avatar for kirennian
0
285
Member Avatar for watery87

Hi guys, i compiled a program but i have this vague error message that occured. Searching through google.com states that it might be due to many problems such as invalid pointers, etc, etc. Im a fairly new person to C prog, so i would like to seek your advise on …

Member Avatar for watery87
0
314
Member Avatar for jiraiya

Hi everyone, I'm having a little problem I'm sure someone can help me with. I'm trying to read in 10 png images and save them in an ArrayList as BufferedImage objects (I think this is the right way to go about it but if not plaease say so). Here is …

Member Avatar for jiraiya
0
2K
Member Avatar for new_programmer

I want detailed explanation about static int var; final int var; static final int var; Please explain it in the memory implementation level. If there is any mistake in these please explain. __________________

Member Avatar for masijade
0
427
Member Avatar for prathoven

Their is difficulty in changing the name of the columnheader of list view constantly by using the loop in button click method...Is their any way to change the textname by using loop??? :S

Member Avatar for prathoven
0
3K
Member Avatar for dexter1984

[CODE=cpp] while (j < i) { cin.ignore(); cout << "Please type enter to display: "; cin >> enter2; if (strcmp(enter, enter2) == 0) { cout << "ID: " << students[j].ID << endl; cout << "Name: " <<students[j].name << endl; cout << "Address: " <<students[j].address << endl; cout << "Telephone: " …

Member Avatar for ponce_jelie31
0
87
Member Avatar for hansan

Hello, [LIST] [*]I want to protect my external javascript(and css also) from outside people, who steal my javascript. [/LIST] [LIST] [*]but this is impossible using client-side language. [/LIST] [LIST] [*]so can anyone tell me a method to [B]hide external javascript(and css) by using sever-side language???[/B] [/LIST] thank you

Member Avatar for pres-pnoy
0
223
Member Avatar for Jaydenn

I'm making an application which searches all the lines of my text files in a directory, and writes the specific search match to my output box. The only problem is I need to split a string like this: [CODE]character-item = 0 996 1500000[/CODE] How it works: You search for the …

Member Avatar for Jaydenn
0
124
Member Avatar for trpsjt2008

Hi How To Make This Faster [CODE] Private Sub MonMove() For A = 0 To (Cnt - 1) MyControlArray(A).Location = New Point(MyControlArray(A).Left _ - 1,MyControlArray(A).Top) Next End Sub[/CODE] first i make A Hundred of PictureBox Later I use Array How To Make it Faster ,When It Appear More than 20 …

Member Avatar for trpsjt2008
0
119
Member Avatar for deven_a76

HI, I have a requirement where I need to compare the data in different database(tables having same structure/schema). I know manually I can execute the queries in each database, compare the results and it is done. As this execution is repetitive in nature, how I can automate this. Thanks In …

Member Avatar for deven_a76
0
107
Member Avatar for creeps

I've written the following binary search algorithm and it worked on [i]my[/i] tests. I want to know if there is something I'm missing, as this is the first time I try to write it, so give me a case in which it would fail, and I'll try fixing it. I …

Member Avatar for Adak
0
149
Member Avatar for cristi08

Example of GRAND TOTAL, TOTAL1 TOTAL2 TOTAL 3 SUBTOTAL 1, SUBTOTAL 2 SUBTOTAL 3 How many chairs we have in our village? Grand total chairs in houses =total chair in house A + total chair in house B Total chair in house A = TOTAL CHAIR IN ROOM 1 + …

Member Avatar for cristi08
0
158
Member Avatar for Suzie999

Hi. So far I have been moving along relatively steadily with my learning of C#. One thing I havently really bothered with yet is try and catch. The reason I havent looked into this is I dont really know in what cases I would need to use it. So my …

Member Avatar for Suzie999
0
194
Member Avatar for Rameshkeerthi

Hi, I'm getting trouble while implement the code of image rollovers. Please find the below code. [CODE] <a href="http://www.quackit.com/javascript/image_rollovers.cfm" onMouseOver="/pix/smile.gif" onMouseOut="/pix/nosmile.gif"> <img src="/pix/nosmile.gif" width="100" height="100" border="0" name="jack"> </a> [/CODE] My actual intention was image rollovers by using the onMouseover event handler to swap the first image with the second image. …

Member Avatar for peter_budo
0
108
Member Avatar for UzuNarU

Hi everyone. I am trying to figure out if it's possible to write a PHP or JavaScript that changes the background image every time the browser refresh button (or F5) is pressed. I haven't seen it done this way, however I have seen it done for banners and other images. …

Member Avatar for UzuNarU
0
213
Member Avatar for Xufyan
Member Avatar for jenzilla

Hi.. I've been trying to get this to work for hours now but I'm not understanding what to do. Basically I'm creating a quiz on python with 5 questions. I have a function that is only for the quiz. Another function is to display the highest quiz score. I want …

Member Avatar for Beat_Slayer
0
4K
Member Avatar for jjs319

I have created a website in Dreamweaver CS3 that includes mySQL databases. I have been using xampp, and have a test server running on my local machine. Everything seems to be working fine, and now would like to put the website online. I'm not sure how exactly to do that. …

Member Avatar for jjs319
0
387
Member Avatar for ish13

I am having a problem with the data I have collected. When I write the data to a file it is shown like this. (231.2314,32434.344,134.2342,345.345,1234.45) (2323.567,32.6754,12323.8776,12323.575,233.5673) now when I read data and put it in a list it looks like this. data = ['(231.2314,32434.344,134.2342,345.345,1234.45) \n','(2323.567,32.6754,12323.8776,12323.575,233.5673)\n'] is there any way i …

Member Avatar for TrustyTony
0
191
Member Avatar for TrueVb.NetNoob

Hi Guys! Lately starting to make a project which involving calculations in it, Unfortunately I got some trouble because the calculation which is displayed out is wrong. The main idea is that I set a event where you pay 5 "Gcoins" to play the "paper scissors stone" game against the …

Member Avatar for TrueVb.NetNoob
0
129
Member Avatar for qk00001

Hi people, I am trying to read a text file and count each words length. I have got these 2 things working, but I can't write the wordLength into text file. anyone can help me out. thanks a lot~~ there is the text file like: ------------- absent absolute absolutely absorb …

Member Avatar for qk00001
0
98
Member Avatar for ThrasherK

I am trying to finish this hangman game I started. I know how to do everything I have left to do except for one thing. When I run the program and start guessing letters for instance in the word technical, if I guess the letter c, it only puts one …

Member Avatar for VernonDozier
0
236
Member Avatar for aripurwahyudi

i have write a html code in dreamweaver i just make built in table in a form, by 4 coloumn and 2 row 1st row for the titling of part in row below each coloumn of second row containing 3-4 radio button that each radio button representation a value number …

Member Avatar for aripurwahyudi
0
834
Member Avatar for lewashby

[CODE]import pygame from pygame.locals import * from sys import exit from random import randint pygame.init() screen = pygame.display.set_mode((640, 480), 0, 32) while True: for event in pygame.event.get(): if event.type == QUIT: exit() rand_col = (randint(0, 255), randint(0, 255), randint(0, 255)) for _ in xrange(100): rand_pos = (randint(0, 630), randint(0, 479)) …

Member Avatar for vegaseat
0
260
Member Avatar for muppet

I have a table with information about the type of scrap generated on a bag making machine. Every time scrap in generated on either side of the machine (left or right, there are 2 packing machines on the one bag maker) a line is added to the table with the …

Member Avatar for tesuji
0
149
Member Avatar for TrueVb.NetNoob

Hi Guys! I coded my textbox to be only type in numeric numbers. But the backspace doesn't work when I run the program anymore, Can't delete what has typed in the textbox. Anyone can help me? Here is my code [CODE]Private Sub AmountTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) …

Member Avatar for TrueVb.NetNoob
0
200
Member Avatar for PythonNewbie2

Hey guys, I really appreciate your help so far! :) This one is a tough beast... I don't even know how to approach it. Let me give you a summary version and a detailed version. Summary version: There are all sorts of these XML files scattered within a bunch of …

Member Avatar for Beat_Slayer
0
186
Member Avatar for capsitan

Hello, I really need help with my payroll program. I just need to input the name, wage, hours, and then get an output with the results. The output needs to show employee name, rate, wage, and total pay. here is what I have written so far. Please help! I am …

Member Avatar for NormR1
0
159
Member Avatar for mr3army

Hi Im trying to get this code to fill in the forms (works without the code making the error) i have tried and tried but i have no clue can you please point out the problem and show me the solution or a fix i am being pushed to the …

Member Avatar for Geekitygeek
0
4K
Member Avatar for ablitz

Hi I can't get my toggle button to work so once again I'm here hoping for some good soul to help me. Below is my jQuery code. I have 2 css clasess 1st is play with a referenace to jpg play and the 2nd one has reference to pause.jpg. All …

Member Avatar for amko
0
4K
Member Avatar for gaurav_13191

I have the following code to find first and second largest elements of an array: [CODE] using namespace std; #include<iostream> #include<conio.h> #include<cstdio> #include<string.h> int* create(int); int maximum(int *,int); int second_max(int *,int); void freememory(int*); int main(void) { int *p,size; cout<<"Enter size of the array:"; cin>>size; p=create(size); cout<<"\nMaximum elemnt in the array …

Member Avatar for gaurav_13191
0
102
Member Avatar for Garrett2011

suppose we have following function: [CODE]void someFunction(int * araye){ for (int i=0;i<5;i++) cout <<araye[i]<<' '; cout <<'\n'; }[/CODE] can we pass an array to this function by following syntax, under upcoming c++0x standards? : [CODE]someFunction({1,2,3,4,5});[/CODE] if that's true, will we even be able to use this syntax in any case …

Member Avatar for vijayan121
0
263
Member Avatar for PixelExchange

Hello everyone. I have managed to connect a winsock client to a server application; however, I do not know how to display the results that are recieved inside of my "recv" buffer as a unified string, as apposed to the char array format it is currently in. I would like …

Member Avatar for PixelExchange
0
157
Member Avatar for Pundia

Hello, I'm new to this forum. Right now I'm developing a software based on Genetic Algorithms. I really have almost none experience, and I have a question. First of, this software is a prototype, a template. So the user can choose between a lot of choices (types of crossing and …

Member Avatar for Oxiegen
0
219
Member Avatar for cjmartin

For my application we use scan guns to scan barcodes to do various things. My issue is with tabbing. We scan a barcode that represents the ">" sign. When focus is on the combobox box and they scan the ">" sign it places the ">" in the combobox. How can …

Member Avatar for cjmartin
0
147
Member Avatar for Dcurvez

good morning guys I have a question that am hoping someone can answer for me I am using vs 2008, and have put the sql database into a program that is being built. the database fields all work fine...I am able to make entries, save it, close it out and …

Member Avatar for Dcurvez
0
106
Member Avatar for ppetree

I have a block of code from a prototype.js (ajax code) sample and I want to modify it in order to isolate a piece of the code to make it more maintainable: The original code looks like this ([COLOR="red"]red[/COLOR] is what I want to move):[CODE] function dofill( ) { new …

0
68
Member Avatar for kuchi

hi I can change dictionary values but I can't figure out to change the keys.. here is the scenario I want.. A dictionary is coming like this {'fstn':'Tim','lstn':'Parker','mdl':'W','dob':'19801201'} now I need to change to {'FIRST_NAME':'Tim','LAST_NAME':'Parker','MIDDLE_NAME':'W', 'BIRTH_DATE':'19801201'} please help me to change the keys..

Member Avatar for kuchi
0
360
Member Avatar for kuchi

Hi I'm very new to Python Language, I'm getting this error "AttributeError: 'str' object has no attribute 'internalSplit'" and don't understand why. please check the following code.. [CODE] sourceAction = str(sourceAction); identityInfoDict = dict(identityInfo); for key in identityInfoDict.keys(): if(key.find("GENESYS_DATA") >= 0): intDict = self.internalSplit(key,identityInfoDict)[/CODE] and the internalSplit is a function …

Member Avatar for kuchi
0
4K
Member Avatar for frogboy77

Hey there folks. New at this so forgive any mistakes, first post. I'm beginning to learn c++. Not so easy. After reading a few threads went to project euler. Problem i have is problem 3. " The prime factors of 13195 are 5,7,13 and 29. What is the largest prime …

Member Avatar for frogboy77
0
723
Member Avatar for TotoTitus

Hello everyone, I am doing a login form in ExtJS + PHP, but it does not work. (authentication failed each time) . Here's the code: ExtJS part: [CODE] <script type=text/javascript> Ext.onReady(function() { Ext.QuickTips.init(); var loginForm = new Ext.FormPanel({ url: 'login.php', title: 'Login to goodTalk', frame:true, bodyStyle:'padding:5px 5px 0', width: 252, …

Member Avatar for TotoTitus
0
351
Member Avatar for metropolisiii

Hi all, I'm hoping I'm posting this in the correct forum. I'm working on a project where a user purchases a downloadable item via Paypal. Once the user has made the purchase, he or she is return back to the site where the purchase is recorded to the database. Everything …

Member Avatar for Monster Killer
0
164
Member Avatar for sujimon

Hi Guys, I am trying to implement FormsAuthentication in my asp.net website. I am using VS-2005. The login page in my application is "Default.aspx" from this page I want to redirect the user to "FirstForm.aspx". However, if I type the address of the target page when in login page I …

Member Avatar for sujimon
0
189
Member Avatar for starlight849

Hello. I am having a problem. I am attempting to gather a group of file names from a directory. I am able to do this. I tested the code by having the list populate into a listbox and all desired items were added to the list. Here is my code: …

Member Avatar for starlight849
0
161
Member Avatar for jamesyrawr

this probably has a simple solution but i cant seem to see whats wrong with it [CODE]<?php //Form Data //error seems to occur here echo "<h1>Registration</h1>"; $submit = $_POST['submit']; $fullname = $_POST['fullname']; $username = $_POST['username']; $password = $_POST['password']; $repeat_password = $_POST['repeat_password']; if ($submit) { } ?> //between these two points …

Member Avatar for Zagga
0
113
Member Avatar for rhodi

I'm new to Python and I'm having a problem I can't explain. While running: [CODE] >>> open('word.txt') [/CODE] it returns: No such file or directory: 'words.txt', even if I have both files saved in the same place. I've tried entering the entire file location, but still no luck. Any help …

Member Avatar for vegaseat
0
87
Member Avatar for bbman

If I do something like: [CODE] Label _label = label1; _label.Text = "123"; [/CODE] Would label1 read "123"? Does this work for int and string? If not, how would I achieve this?

Member Avatar for bbman
0
104

The End.