64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Tellalca

Hey; I'm trying to do a hang man game in Java. I newly learned some stuff about programming some GUI using Swing and AWT, but I'm not still clear with it. The problem is that all the drawing is done by a single function paintComponent() from the JPanel that I …

Member Avatar for mKorbel
0
178
Member Avatar for techie1991

Even after looking at a lot of books, I am not able to understand the problem in the following code: [CODE] //1.c static int y=23; void abc(int a){ printf("%d\n",a); } [/CODE] [CODE] //2.c #include<stdio.h> #include "1.c" int main(){ abc(12); printf("\n"); printf("%d\n",y); return 0; } [/CODE] I can understand that the …

Member Avatar for techie1991
0
236
Member Avatar for smrati.katiyar

[code] class complex { int real; int imag; public: complex(){}//why default constructor is always needed complex(int a,int b){real = a;imag = b;}// why can't we define only this constructor ~complex(){} }; [/code]

Member Avatar for Narue
0
726
Member Avatar for Mark_48

I HAVE TWO LISTS AND I AM LOOKING TO SUM THE VALUES IN THEM. I HAVE TRIED SO MANY DIFFERENT WAYS. THIS IS WHAT I HAVE SO FAR: [CODE] for (int l = 1; l < list1.Count; l++) { string[] lineValues = list1[l].Split(','); float intValue = float.Parse(lineValues[l]); for (int k …

Member Avatar for abelLazm
0
131
Member Avatar for Eng_suha

This is the full code and the single error!!!!! 1>d:\s\o.o\hws\new folder\shop\shop\main.cpp(37): fatal error C1075: end of file found before the left brace '{' at 'd:\s\o.o\hws\new folder\shop\shop\shop.h(8)' was matched [code] #include<iostream> #include<string> using namespace std; #ifndef SHOP_H #define SHOP_H class Shop{ friend ostream &operator<<(ostream &output,const Shop &S){ output<<"\nThe name of the …

Member Avatar for Eng_suha
0
141
Member Avatar for Dragon840215

Hey guys I need to store a single string into Memory for later use on different pages to be able to create a log file for my app. so on my 1st form(Login Form) i need to pass the Username to Memory and then read it from the memory later …

Member Avatar for kvprajapati
0
154
Member Avatar for phplover

Hi, I have created what i think is correct is one mysql_query with multiple counts. Could someone please tell me if i have done it rite ? plus how would i be able to access each count query using PHP so i can display each count query result? If it's …

Member Avatar for phplover
0
1K
Member Avatar for Sydney123

Hi The below script does the job I am looking for I am not to sure how to make the drop down dependant ex ; Val 1 in box one return Val1 in Box 2 etc.. any idea someone Sydney [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> …

Member Avatar for Sydney123
0
99
Member Avatar for Banjoplucker

[url]http://paste.pound-python.org/show/941/[/url] Having trouble getting a loop to write to a series of newly created sequential blank .wp files. Grateful for any help, thank you. Regards & a Happy New Year! Banjoplucker.

Member Avatar for djidjadji
0
111
Member Avatar for diafol
Member Avatar for tarantulaturk

Hi all, I use a program (OpenGrads) to run on the command prompt in OPENSUSE. It worked on Windows very well but I cant run the command on linux. System commands works without any problem. But the specific command that is 'grads' doesnt work. I used system(), exec(), shell_exec() functions …

Member Avatar for tarantulaturk
0
175
Member Avatar for ChrisHunter

Hi my problem is that i'm making a mobile app and i need to seperate the following string: ChrisHunter21 into: Chris Hunter 21 What is the easiest way to do this in J2ME ? i had a look at the Ostermiller one but didnt understand it. Thanks Chris

Member Avatar for peter_budo
0
220
Member Avatar for TinyBelly

I've tried many time to solve this problem...but still not successful, I'm newbie..so anyone of guys can help me check this problem... [LIST] [*]Button "Back" is big as frame [*]Seems no TextField for NoOfTicket [/LIST] [CODE]import javax.swing.*; import java.awt.*; //import java.awt.event.*; public class ticketReservation extends JFrame { private JLabel jlbWelcome, …

Member Avatar for TinyBelly
0
173
Member Avatar for xanawa

i am trying to get the picture string from the database and when it is a null it gives me this error. [COLOR="Red"]Unable to cast object of type 'System.DBNull' to type 'System.String [/COLOR] [B]This is my code[/B][CODE]public List<Item> GetAllItemFromMenuID(List<int> ListOfItemIDs) { conn.Open(); List<Item> listOfItems = new List<Item>(); try { foreach …

Member Avatar for xanawa
0
83
Member Avatar for vedro-compota

Hi guys! is it possible to call parameterized constructor from derived class no-parameters constructor? To be clear - I want to override the most simple exception constructor (withpout parametrs) by other one - with string-parameter for class - [CODE]public class SetEception : ApplicationException[/CODE] thanks in advance)

Member Avatar for vedro-compota
0
106
Member Avatar for Behseini

Hi I am trying to link selected item from one list box to another list box and make the second Item selected there as well. Lets say I have 2 list box populated by the city names in two different listbox in different orders and from different source, now I …

Member Avatar for Behseini
0
2K
Member Avatar for kirtee2209

hi..im doing a C# windows form application in visual studio 2008 and for the database im using SQL EXPRESS 2005..i need to create a crystal report. my question is when i start creating a new crystal report, using wizard, i get 1 window where i have to choose Data: i …

Member Avatar for abelLazm
0
920
Member Avatar for computerbear

I have never run into this problem before and I am frustrated. What am I missing? I am trying to initialize an array of five social security numbers. It does fine until the fifth one, then throws an error saying something about the indexer out of bounds. SSN has to …

Member Avatar for spdesigns
0
136
Member Avatar for computerbear

I have Googled and looked and looked. What is the best cleanest way to format a social security number to look like xxx-xx-xxxx? And as long as I am asking, how about how to ensure that a nine digit number is entered? Thank you!

Member Avatar for spdesigns
0
3K
Member Avatar for november_pooh

Hi all, I try to read file from file.. i put the file at drive D:\test.txt Please help me.. Thanks. Best Regards

Member Avatar for Jx_Man
0
356
Member Avatar for ptara1

I have a html form where a user can narrow down his or her's search. For example they want to find a person based off of a number of characteristics, say hair color, eye color, body type. These are selected by a drop down menu and there are additional radio …

Member Avatar for urtrivedi
0
355
Member Avatar for chudapati09

Edit: Never mind I figured it out. I used Math.pow(base, exponent) to figure it out I'm creating a calculator and I can figure out how to the power of two doubles. This is what I have: [CODE] public Power(Double base, Double exponent) { result = base ^ exponent; //result is …

0
70
Member Avatar for johnt68

Hello:( I have an assignment to build the booking and payment part of a Thearte Booking System. I have four classes linked to an MDF database - well they should be - the two that we have been given will will be and the two that I have done might …

Member Avatar for johnt68
0
581
Member Avatar for rohanvispute

Can anyone tell me what is the difference between case and decode. and which one is more beneficial

Member Avatar for hfx642
0
105
Member Avatar for eskimo456

Hi I am currently primarily programing graphics applications and am still fairly new to this. I know the relevance and can see the advantages of making items a template especially with things such as collision detection. I was wandering is there any advantage/disadvantage to doing everything as a template? Obviously …

Member Avatar for eskimo456
1
123
Member Avatar for G_S

Hello, This is a really simple question but I just don't see the error here: [CODE]def foo(): x = input('write something: ') if x == 1 or x == 2: print('OK') else: print('NO') print(x)[/CODE] Why does it keep printing NO? Also, I have a more complicated one: def foo(x, y): …

Member Avatar for G_S
0
115
Member Avatar for fglom

I'm trying to save everything to a .txt file with a new line after every string, but I can't get it to work for me. I tried using [ICODE]<<endl;[/ICODE] and [ICODE]"\n"[/ICODE] but it all gets written in a single line. So if I enter "John" for [ICODE]first[/ICODE], "Smith" for [ICODE]last[/ICODE], …

Member Avatar for fglom
0
179
Member Avatar for jlego

we have a mysql server running from mac os x. i dont like mac but the server has been here forever. a client machine received the 'too m any connections to server' error. my colleague restarted the mysql server - and now the mysql server service will not start. does …

Member Avatar for jlego
0
225
Member Avatar for mbarandao

Hello: I'm trying to figure out what exactly is causing this error: [code]Parse error: syntax error, unexpected T_STRING in D:\Hosting\7528136\html\request_confirmation.php on line 463[/code] this is my code: [code]<?php ini_set('display_errors',1); error_reporting(E_ALL|E_STRICT); //error_reporting(0); //error_reporting(E_ERROR | E_WARNING | E_PARSE); if ( isset ( $_POST['submit'] ) ) //If submit is hit { //here were …

Member Avatar for mbarandao
0
96
Member Avatar for 24x24

My assignment: develop a limited application to track the statistics of sports players. For each player, track first and last name, points scored, assists made, and penalty rate. Design and implement an object capable of recording this info. Implement this object as Player. Must allow user to enter new player …

Member Avatar for yancouto
0
226
Member Avatar for SoftwareGuy

Hello. I've seen some tutorials, but I can't find one that particularly suits my needs. What I'm trying to do is this: I have a form that contains an object. I want this object to be able to modify its parent form when an event for it is thrown. The …

Member Avatar for SoftwareGuy
0
234
Member Avatar for abathurst

Hi all, I'm not the best with coding and was wondering if some one can help me out. The page is inserting information into a database but when i added an extra section to insert i get the error [CODE] Could not find stored procedure 'Insert_PublicationsA'. Description: An unhandled exception …

Member Avatar for bill51
0
534
Member Avatar for BaSk

Hello, I'm trying to get a var from php into my jquery code, but I'm having no luck. Jquery: [CODE]$.ajax({ type : "POST", url : "sortProp.php", data : "f="+type+"&s="+filter, success : function(data){ $('#propHold').html(data); $('#propHold .prop:first').addClass('active'); alert(data.title); } }); [/CODE] Php: [CODE]$title = array("title" => "$propName"); json_encode($title);[/CODE] I can't seem to …

Member Avatar for BaSk
0
123
Member Avatar for G_S

Hello everybody I have a question: is it possible to compile ruby files into bytecode. Does ruby have something like .pyc files? I found some discussions online about generating .exe's from ruby files, but what I want to know if it is possible to compile .rb files just like you …

Member Avatar for G_S
0
159
Member Avatar for Mark_48

Ok so does any body have any ideas or hints on how to select a range of values from an array??? say: Array1[1,0] to Array1[10,0] so that would be the first values in each row from 1 to 10. ANy ideas?

Member Avatar for Mark_48
0
96
Member Avatar for CorruptionInc

I have to create a Pizza GUI that shows pizza size choices and topping choices for pepperoni and mushrooms and then calculate the total. I'm having trouble constructing the GUI. Down in the createCenterPanel method Eclipse is tell me that radioButtonPanel, checkBoxPanel, and pricePanel cannot be resolved to a type. …

Member Avatar for CorruptionInc
0
5K
Member Avatar for Mark_48

HAY people ive created the code as below but when i run the program it is displaying: system.Array[] or somthing like that instead of the value in the array. I though it mite be a problem when converting the string[] to string but i cant seem to find a solution. …

Member Avatar for Mark_48
0
140
Member Avatar for aaronmk2

I checked my php.ini file and there is no ; in front of extension=php_mysql.dll or extension=php_mysqli.dll. I think the I am getting this error because my figuration File (php.ini) Path is C:\Windows. How would I change it to C:\Apache2.2\php\php.ini? Also, once I have done this do I need to recompile …

Member Avatar for aaronmk2
0
177
Member Avatar for swathys

hi, I have made a web services app which i have install it in server. This web services is to check datetime form the server.....if the server time and my pc time is match it will proceed further to next step....i have set it to 5 min different...it is going …

Member Avatar for jlego
0
101
Member Avatar for micmo

Hi Guys, I'm trying to create a simple webpage which has a login form. When the user successfully logs in, I want a cookie to be stored with the name "MyCookie", and a value of "1". Then I want the login form to hide and instead display a textbox with …

0
105
Member Avatar for karthik_ppts

Hi Frendz, [INDENT]How to convert the direction in degrees to normal directions(North,East..) in php[/INDENT]

Member Avatar for karthik_ppts
0
226
Member Avatar for rpv_sen

Hi Friends Pls help me, i have posted the code below, i am trying to multiply 2 text box values from thisqty and prate and final value has to be show in thisamt text box, and also i have attachment the screen shot [CODE]<form method="post" action="#" enctype="multipart/form-data" name="billing"> <table width="1000" …

Member Avatar for rpv_sen
0
296
Member Avatar for doffen74

Hi. I am trying to develop a small webshop for some friends, and I tought it was working very well until I accidentally tested it in IE (works fine in Chrome and Firefox). When someone clicks the "add to basket" there is an On-Click that triggers a function. That function …

Member Avatar for doffen74
0
79
Member Avatar for 68thorby68

I have a simple database with 3 columns: id, event_date, event_name I have 9 rows in the database id event_date event_name 1 2010-01-17 Food 17th 2 2010-01-17 Bar 17th 3 2010-01-17 Football 17th 4 2010-01-18 Food 18th 5 2010-01-18 Bar 18th 6 2010-01-18 Football 18th 7 2010-01-19 Food 19th 8 …

Member Avatar for james_horn165
0
141
Member Avatar for ayesha789

I saved the link refrence in Databse like /PEDB/SupportDoc/5/PRFF or0444.pdf and used [ICODE]<a href=".$r1[10]." target=_blank>View</a>[/ICODE] to show the documents but when I click on view its not showing document because link break where space put in and show blank in explorer like /PEDB/SupportDoc/5/PRFF

Member Avatar for ayesha789
0
181
Member Avatar for NewOrder

i am going to start learning Android next week, and i was curious about it animation capability. can i put 3d Max, Maya or flash animation? what animation program is best to use, i am thinking to make games for the platform

Member Avatar for NewOrder
0
145
Member Avatar for soft_coder

Hi! I am a .NET developer. I have two consecutive web parts. Each webpart is inside an update panel. So the scenario is like there are two update panels one after the other. The problem I am facing is when one is fired the other is also firing. The code …

Member Avatar for soft_coder
0
111
Member Avatar for DasQuark

Hi! :icon_biggrin: I'm trying to program a personal project, but I've hit a bit of a bump in the road. I've got a Button, a Textbox, and a CheckedListBox; when the button is pressed, whatever is in the TextBox is added to the CheckedListBox. However, when the form is closed …

Member Avatar for codeorder
0
836
Member Avatar for didi00

Hi everyone! I want to send cyrillic letters with php, but it is not possible because php doesn't allow it. So, how do I covert the letters so that they could be sent. [CODE] <?php if (comments_open ()) : ?> <div class="comment block" id="respond"> <div class="holder"> <h2><?php comment_form_title('[B]Остави коментар[/B]', 'Leave …

Member Avatar for didi00
0
225
Member Avatar for sj5536

hi i want to add Scroll Pane to JTable [CODE]JScrollPane jScrollPane = new JScrollPane(table); jScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); jScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); add(jScrollPane,BorderLayout.CENTER);[/CODE] in the above code table is and Object of JTable with default model i write above code but that code display the scrollbar but they dont work

Member Avatar for sj5536
0
91

The End.