199,114 Archived Topics
Remove Filter ![]() | |
Hi basically I'm current doing a connect 4 program that consist of 3 separate programs Connect4Model, Connect 4 Column and Connect4View... I'm trying to compile and run my connect4View program but for some what reason I'm unable to do so. Below I have supplied the code for the 3 programs. … | |
Hi guys.. I am having some problem with snake game project using JAVA Applet. I already have the sour code of a snake game from my friends, but I failed to make it functions probably under a JApplet. I need to do a similiar UI like click a start button. … | |
Hi i just have a question, i was doing the pass midterm the question is asking that " Write a class Jacket, which has a boolean instance variable isReversible and a static int variable numJackets. There are no methods " correct Ans: public class Jacket { private boolean isReversible; private … | |
Hi. I made this program to capture the current screen in C#. In Visual Studio 2008, it worked perfectly, but now with VS 2010, I get the following exception: ExternalException - a generic error occured in GDI+ on the line where I save the bitmap: bmp.Save("screen.jpg"); I have looked everywhere … | |
Hi, I am building my first VB2008 application and I am trying to figure out a way to make some check boxes being checked when an entry from a combo box is selected on top of these check boxes. More specific, I am trying to describe the services offered in … | |
Hi all plz help i need to search my database using data from the combo box which works fine the problem that I an experiencing is that FIND function gives me a runtime error, saying the string is not in the correct format plz help. here is the code that … | |
Ok, I know most of you will read this and think I am a liar, but I am really just trying to practice with multiple classes and methods. So I picked out a programming challenge from my book to see if I could get through it. I wrote the class … | |
Hey lads, Firstly apologies for the long message. I just thought it might be easier to explain my issues. I'm doing a website for myself and have been getting some amazing info from this forum. I've moved onto the database part to it. Now, for my website, user can sign … | |
Hello everybody! My name is Matic and I've been checking these forums for quite a while now. I know C++, C# and a few other languages. I really did not know where to ask this question, and I think this is the right place. The problem is, I changed my … | |
hi experts i m facing a problem , i m using these code for inserting data, but showing error “[B][U]The Conversion of the char data type to a date time resulted in an out-of-rang date time value . The Statement Has been terminated[/U] [/B] “ Their is "[B]ro_date[/B]" is [B]datetime[/B] … | |
I have an array, which i want it common to both the f1.cpp and f2.cpp . since f1.cpp will be used to store some values in it and f2.cpp has to use it for some other computations , is there any way i can share these 2 variables . well … | |
Hi guys, Does any body know of a good Quick ColdFusion Reference on the App Store. | |
I keep getting NoClassDefFoundError so I cannot check if the rest of my program works. It works on the school computers but it does not at my house. I set up the path and classpath variables how my teacher told me for derby but it still will not work, any … | |
Hey everyone, I just got a solution from here, but I think I spoke to soon, as I ran into another problem right away. I have been playing around with it for a couple days now, and just hoping that someone could explain or see why it isn't working. I … | |
Basically, I am having trouble figuring out how to work my if statements. The only one that works is the final statement and that is due to it not having the [CODE]if("#".equals(e.getActionCommand()))[/CODE] statement. So, how should I go about allowing the user to select the quantity in the combobox and … | |
hi helper.. i tried search many time to search this but still dont have the answer here is my code.. [COLOR="Green"]textBox11.Text = Convert.ToString(textBox3.Text) - Convert.ToString(textBox4.Text); [/COLOR] and it error : Operator '-' [COLOR="Red"]cannot be applied to operands of type 'string' and 'string' [/COLOR] please help me..im new in programming | |
i want a print button to be able to print out details of a php form by connecting to a printer. can someone explain this to me with an example code please? | |
Hello, I'm working on a problem (Huffman Tree encoding/decoding) and I need to covert and Int to a char. I was trying to use [CODE] char temp = static_cast <char> (index); //index is an integer [/CODE] it compiles but if I try to print, it crashes so obviously that idea … | |
I am writing a hangman program for class and so far I am able to read in and randomly pick a word from the file. The problem I am facing is counting the number of letters in the chosen word. Once I get that I can work on the rest … | |
I'm not sure exactly what I'm looking for or whether it exists, but I was hoping to get any ideas from the assembly experts here. I do know basic x86 and ARM assembly from classes but have not used them much in "real life." Ideally, what I would like is … | |
I am trying to place a friend function of a template class named sort in its own header file. I keep getting errors when compiling my test program. I have tried different things to fix it, but nothing works. My experience with template classes is limited as is my knowledge … | |
Hi All, I am new to C language and am suppose to write a program that gives me an even integer with cube greater than 40000 and also is divisible by 7. This is what i have... [CODE]#include <stdio.h> #include <stdlib.h> #include <math.h> int main(){ float a,b,c,d,e; a=pow(40000,1/3); while(pow(40000,1/3)<=a){ a=b; … | |
Hi everyone, I know this is a very beginner inquiry, but I can't seem to figure out exactly what it is that I'm doing wrong. I'm using this tutorial: [url]http://www.sthurlow.com/python/lesson05/[/url] to build a simple calculator program. My version of Python is 3.1.2 here is my code: [code] loop = 1 … | |
Hello, I am trying a better way to write what I have coded below, the idea is I have a one dimensional array with set values and a rectangular array that gets the number of items entered each into a text box. 1. Is there a simpler way to get … | |
ok, here's the thing: If I were to create a fileserver website like Microsofts SkyDrive then how should I structure the database? There are incredibly little information about database structure on the internet (web security too) and I've searched a whole lot. Should I create a table for every user … | |
When entering a value in dgv I want the Tab key to fire a routine. Works out ok only thing is I have to hit the Tab twice before it fires. Don't know why, is there a way to prevent it, so that I have to hit the Tab key … | |
hi, I have a simple monopoly style board game ready (in c++). I would like to ask you how can I add additional features to the game play such as ‘chance’ cards and ‘shake again’ squares. Is it possible to create a GUI interface for this game too? At the … | |
Having issues with this program. I've been trying to identify all the areas where data is created, then tried to destroy it likewise after using it. I've put a lot of delete[] coef (coef is a pointer double array to hold coefficients). The program will run half the time, then … | |
I currently have some code to show the latest update on my site. I have two problems: 1) how do I get the date to Display "04-13-10". I know the php code is date("m-d-y") But how would I incorporate that for an updated item? 2) limit the number of updates … | |
I am designing a cinema system I want to call a another class which has a arraylist method and then display the elements inside the arraylist. Please help I made two sample classes [CODE]Class cinema() . . . . public ArrayList<time> getTime() { for (Show show : getTime){ } return … | |
Hi All, 1)I want to watch a directiory in unix using a shell script. 2)In case any change happens to any of the files inside that e.g new file creation or new directory creation or any file modification we need an automated mail. 3)Mailing part i will take care 4)on … | |
hi........ can anyone tell me the connection strings to connect JAVA JAPPLET to sql server 2005 database and also the execution of SQL statement in java thanks | |
Hey. I'm making a Hangman and I have this code to retrieve a random word from a txt file: [CODE] private void ord() { Random random = new Random(); StreamReader read = new StreamReader("sweord.txt"); ArrayList lines = new ArrayList(); string line; while ((line = read.ReadLine()) != null) lines.Add(line); read.Close(); int … | |
Hi Guys, I am trying to create a game of a two way traffic with a human trying to move between the cars to the other side without being hit by a car. I can detect the collisions, but the main problem is my cars don't move. what maybe the … | |
Good afternoon all! (It is over here anyway, but chilly though) As per usual in a forum of this type, I find myself mindboggled by what is probably not that difficult to solve. Thus, I was hoping any of you could enlighten me. I am in the process of writing … | |
hi all do anyone understand hash function? how to use it in order i can count a digit number of size 10? then i separated it half half (into 5 digits each) :) | |
Hi I am trying to return a boolean value into another method, but it's not working. [CODE] public static boolean ItemFound(boolean item, String desc1, String desc2, JTextArea txt){ if(item == true) txt.setText(desc1); if(item == false){ txt.setText(desc2); item = true; } return item; }[/CODE] and inside the other method I have … | |
Hi everybody, I am kind of new to vb.net and have some problems with images. I need to show multiple images but the amount can be variable. So I know there is some kind of picturebox in vb.net to show an image. But how can I show multiple images without … | |
i have a forum, with new posts how do i use sessions for each user to determine if the posts clicked on and not? I'm guessing sessions because that is individual to the user... e.g. new post, then click on not new post. i can't assign this to the actual … | |
Is there a way to store multiple values to a key without using any extra modules? Here is the code I have so far: [icode] $key = $ref->{$uniqueKey}; my $systemKey = GetSystem($key); push @{$referenceTable{$key}}, $systemKey; my ($k, @v); # SET UP THE TABLE print "<table border='1'>"; print "<th>User</th><th>System</th>"; # EXECUTE … | |
Hello. Can someone explain what this InitialContext(): is looking for? [code] public JDBCSchoolofdbDAO() { try { Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup( ModelUtils.getResource("JavaCompEnv")); dataSource = (DataSource) envCtx.lookup( ModelUtils.getResource("DataSource")); } catch (NamingException x) { ModelUtils.log(x); throw new InternalError(x.getMessage()); } } [/code] [code] DAO=schoolAppModel.dao.JDBCSchoolofdbDAO #///////////////////////////////////////////////// # DAO=jsfdb.model.dao.JDBCSubscriberDAO #///////////////////////////////////////////////// … | |
Hello All; It seems that I have just run into a small issue that I am hoping can get resolved pretty quickly, as it is the only thing that is holding me back from completely this part of my task. In an ASHX file, I am needing to read a … | |
//*************************SERIOUS PROBLEM, NOT WORKING****************** [CODE]//DOUBLY LINKED LIST #include<stdio.h> #include<stdlib.h> struct dll { int info; struct dll *next; struct dll *prev; }; struct dll *head = NULL, *tail = NULL, *temp; void append(); void insafter(); void delete(); void display(); void main() { int choice; do { printf("Enter your choice:\n"); printf("1.Append Node\n2.Insert … | |
I'm relatively new to access and have a problem. I have multiple rows of information on a form, and each of these rows has a few text boxes and one combo box. The combo box needs to have different information in it based on another field in the row. The … | |
My assignment is as follow: Create a class IntegerSet. The IntegerSet can hold integers in the range [1-100]. Define one or more instance variables to represent IntegerSet properties and store elements. Additionally, provide the following methods: a. One or more constructors. b. Method void add(int) inserts a new element to … | |
Hi, I wonder if there is any syntax that can detect if any Browserwindow is open on the computer and then close this/these windows. I use Firefox and then would want to detect if any Firefox browserwindow is opened and then close them if any is open. Thank you! | |
what AmI missing? I am simply trying to read in an array from a txt file and count the words. What am I doing wrong....here is the function[CODE]int countwords(ifstream& infile, int wordcount[MAX_WORDS]) { int count = 0; for( int i=0; i < MAX_WORDS && infile; i++) { infile>>wordcount[i]; count++; } … | |
I optimized very carefully program I was producing by producing the main tight loop functions half a dozen times with various implementation styles. Also i considered amount of passing information in call hierarchy in parameters or letting functions to trust proper initialization of the global variables. I got few interesting … | |
Hello Folks, I have developed a s/w on vb.net2008 and want to make a setup of it so that my client could easily install it in her system without having .net framework installed in it. If anybody could provide me a step by step method i would appreciate. Regards Indranil … |
The End.