64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for dark_sider_1

Hi there, So I'm given a programming problem for a class, and here's what's given: An n x n game board is populated with integers, one nonnegative integer per square. The goal is to travel along any legitimate path from the upper left corner to the lower right corner of …

Member Avatar for hfx642
0
282
Member Avatar for rayidi

Dear Friends, I'm Currently using php session ( $_SESSION[''] ), I want to use $_COOKIE Because when a user didn't click the logout button and he closed the website. still he is showing Online because i write the code at the logout page. So If we use $_COOKIE it is …

Member Avatar for diafol
0
191
Member Avatar for renzlo

Hi All, I want to search specific range of rows in datagridview. I want to search the entire third row of my datagridview. How can I do that? Here's my current code: [CODE]Private Sub cmdSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSearch.Click For Each row As DataGridViewRow In …

Member Avatar for Reverend Jim
0
157
Member Avatar for asif49

I instantiate a class called Company where I have a lot of the logic of my system, I'm unsure about what visibility the following objects should have.... [CODE] public class Company { private Scanner input = new Scanner(System.in); private Employee[] employee = new Employee[100]; private Job[] job = new Job[100]; …

Member Avatar for asif49
0
120
Member Avatar for aaro

hi im not great at programming and have been trying to fix this for ages. i am using a script to create thumbnails and display images it all works fine. the problem is for each record on my database, eg each page on my site i have numerical image folders …

Member Avatar for aaro
0
187
Member Avatar for kyriacos1986

I have been asked to create a method to merge two LinkedList. I am allowed to use only the following methods: From LinkedList: > addLast(E); > size(); From ListIterator: > E next(); > boolean hasNext(); > E previous(); > void remove(); The first list (list1) points to 2,6,7 The second …

Member Avatar for kyriacos1986
0
443
Member Avatar for khizer03

how to link the form so that it should display as soon as the computer gets started and the user should not access any other thing first he has to attempt the form then after successfully he can acess rest of the other option the form will be containing user …

Member Avatar for adam_k
1
138
Member Avatar for regogo

Hi, Im new to java im trying to study sorting methods specifically bubble sorting i found this code online but couldn't understand what it means. can someone kindly comment the codes so I can uderstand it well. TIA here's the code [CODE] public static void sort( int a[], int n …

Member Avatar for JamesCherrill
0
121
Member Avatar for Danny159

Hey, I have the following code: I am trying to make it so when you tick the box it changed the result to what you clicked, then if you untick it it changes the result back... There will be multipal tick boxes on a page... Here is my code... [CODE]<script …

Member Avatar for Danny159
0
218
Member Avatar for sandman64

This is a class for a bigger project. I programmed it sepratly so that i know it will work when i include it in the project. This is a Palindrome project. SO i want to know if the a word is a palindrome or not. I get the program to …

Member Avatar for JamesCherrill
0
199
Member Avatar for TrueCoding

Hi Im currently a student trying to figure out how to search a 2D Array in C#. The program that Im trying to make is an Address Book. Basically I want to search the array for a keyword such as "First Name", I then want to be able to print …

Member Avatar for Antenka
0
376
Member Avatar for auwi987

hello guys how properly push,pop,display a char array into another char array, when come to int i can do but in char array its to hard to analyze.. pls guy need some help. thnx in advance

Member Avatar for Narue
0
175
Member Avatar for TurkAlush

Hey Guys.. I am going to make a program that can ask for age, an then verify if the persons age is old enough.. The age limit has to be 18 years old, so the program asks for age, and then it will let person pass the age verification pass.. …

Member Avatar for TurkAlush
0
92
Member Avatar for alaa sam

hi I'm trying to make a help menu which open a new form when it's clicked but I don't how to link them together , so anyone can tell me what function call I should use?? I've tried Application.Run but i get errors.

Member Avatar for ChrisHunter
0
89
Member Avatar for Danny159

Hey, I have 2 scripts, one processes an ajax request and sets a session in that script but I cant seem to get the session to work in another script... (echo the session out) on the same server just a different file? Can anyone help? Dan

Member Avatar for Danny159
0
92
Member Avatar for javanewb

Hello, this is my first post. I have this homework assignment, and it is completed and it works! my question is just if anyone has any suggestions to clean it up or make it more efficient? I have two seperate files GuessTheNumber.java which is: [CODE]// GuessTheNumber.java //Written by Sean Kelley …

Member Avatar for frank33
0
235
Member Avatar for Ashenvale

Hey guys :idea: This is my code [CODE]studNo = JOptionPane.showInputDialog(null, "Enter Student Number: "); studName = JOptionPane.showInputDialog(null, "Enter Student Name : "); prelim = Float.parseFloat(JOptionPane.showInputDialog("Enter Prelim grade : ")); midterm = Float.parseFloat(JOptionPane.showInputDialog("Enter Midterm grade : ")); finals = Float.parseFloat(JOptionPane.showInputDialog("Enter Final grade : ")); overallGrade = (prelim * .2) + (midterm …

Member Avatar for stultuske
0
283
Member Avatar for blahbla

hi i want to be able to generate drop down menu's based on the database information these are the table information : [CODE] +--------+------------------+------------+ | tid | tname | sport | +--------+------------------+------------+ | 10000 | Boston Celtics | Basketball | | 10001 | New Jersey Nets | Basketball | +--------+------------------+------------+ …

Member Avatar for blahbla
0
160
Member Avatar for saisakthi

Hi, I am very much new to cocos2d.. I am developing an application in android using cocos2d.. In that, [code]public class BaseLayer extends CCLayer { ChildLayer cl = new ChildLayer(); this.addChild(cl); } public class ChildLayer extends CCLayer { public ChildLayer() { CCLayer.node(); } . . }[/code] In this, arrowed line …

Member Avatar for saisakthi
0
240
Member Avatar for kalookakoo

I'm having trouble figuring out how to implement where boundaries are (platforms/landings/ceilings). I have an image running across a background image. When the image gets 3/4 of the way to the canvas, it stops moving and the background image scrolls. Same things going backward at 1/4. So with two different …

Member Avatar for kalookakoo
0
407
Member Avatar for Draucia

I know this is php but it has MYSQL in it and I didn't really know where to post it. :$ The problem is, I have a check that checks if the username and password inputted matches the database's username and password. [CODE] if ($username==$dbusername&&$password=$dbpassword) { echo "Welcome, <b>$username</b>."; }else{ …

Member Avatar for Draucia
0
160
Member Avatar for azegurb

Hi all, I have taken from net MVC tutorial, but it is in German language. Can anyone explain it me why there were joined two superglobal? What is a purpose? its below [CODE]<?php // unsere Klassen einbinden include('classes/controller.php'); include('classes/model.php'); include('classes/view.php'); // $_GET und $_POST zusammenfasen, $_COOKIE interessiert uns nicht. $request …

Member Avatar for diafol
0
3K
Member Avatar for ppatryk

Hi, i have a form with data and I am tryin to save and load data using a texfile, any suggestion how I could start this as Im not too sure, thanks

Member Avatar for zachattack05
0
159
Member Avatar for nyuszi

hi, i need a little help. i have a 2d array adn i want to write out each rows minimum number. but something isnt good cause if the minimum is in the last position it says that the first number is the lowest. heres the code: [CODE] void minki(int k,int …

Member Avatar for nyuszi
0
142
Member Avatar for THEPalletizer

Having issues with my English to PigLatin Converter. I can get the code to execute correctly on one word but once i do 2 or more words it adds the first letter [0] + 'ay' to the last word in the line.... any suggestions? [CODE]def main(): # Create a list …

Member Avatar for THEPalletizer
0
399
Member Avatar for ddellostritto

Hi All - I am creating a registration system (for events) and want to send the user a confirmation mail along with a list of the people he registered to attend the event. In one point of the process they indicate how many people they want to register, I use …

Member Avatar for ddellostritto
0
99
Member Avatar for nsyncpilu

Hy , I have to encrypt a message and then decrypt it. I have this code , but i need to save the encrypted string in a database and the code generates a random key every time. I could save the string and the key in the database but that …

Member Avatar for nsyncpilu
0
442
Member Avatar for Mehnad

here is my entire code. now, the only problem I have stumbled upon is in the last method, getRow, where i have to extract a row from an array of string. could anyone please help me with this, i've been stuck for hours, not knowing why it calls "missing return …

Member Avatar for Mehnad
0
460
Member Avatar for mxa92

[code]public Boolean CollisionCheck(float x1, float y1, float width1, float height1, float x2, float y2, float width2, float height2) { float left1 = x1; float left2 = x2; float right1 = x1 + width1; float right2 = x2 + width2; float top1 = y1; float top2 = y2; float bottom1 = …

Member Avatar for gusano79
0
391
Member Avatar for beantine

I've been tearing my hair out over this for quite a while now. What I'm trying to do is populate the struct array from within a function but I cannot figure out how to do it. Everything I've tried throws up a syntax error. Ideally the data should be entered …

Member Avatar for WaltP
0
2K
Member Avatar for salah_saleh

Hello!, I know this my be slightly unrelated question but it's very simple questions and I know many of you will find it very easy. I want to pass several txt files to my c code using make file, but I can't make it right, so please help me in …

Member Avatar for Fbody
0
446
Member Avatar for trektrak

I would love to know, if it's possible to get a specific data from a specific mysql table.. Let say on the table itself has a Varchar ... mixed of words and floats.. and then ... I want to pull only the float from the table using php... can it …

Member Avatar for trektrak
0
145
Member Avatar for aaloo

i am getting this error Notice: Undefined index: firstName in C:\xampp\htdocs\flasblog\test.php on line 3 Notice: Undefined index: lastName in C:\xampp\htdocs\flasblog\test.php on line 3 here is my php code [code] <?php include_once"scripts/connect.php"; ?> <?php $text=$_POST['firstName']." ".$_POST['lastName']; $to="anubhavjhalani09@gmail.com"; $subject="Message from php"; //data insert into database $sql="INSERT INTO entries (contents) VALUES ('$text')"; echo …

Member Avatar for Biiim
0
3K
Member Avatar for divyakrishnan
Member Avatar for dean8710
0
95
Member Avatar for logicmonster

I'm getting into some territory I have never treaded before.... What I have is an Abstract class "Person" with an abstract class "Employee" that extends "Person" and then three concrete classes within "Employee" named: Agent, Accountant, and WebDesigner. sudo: [CODE]abstract class Person{ abstract class Employee extends Person implements myInterface{ class …

Member Avatar for logicmonster
0
263
Member Avatar for craizile

I have a project to make a Phone Book Program using Hash Table, but I have to use two different type Hash Table, Hash Table .Net Framework and our own Hash Table. Does anyone know how to add, edit, search and delete the Hash Table? thanks a lot for your …

Member Avatar for craizile
0
112
Member Avatar for kothaisaravan

Hi, I needed to create in-cell dropdownlist in excel using VB.NET, So i used the code, With xlWorksheet.Range("H2", "H101").Validation .Add(Type:=Microsoft.Office.Interop.Excel.XlDVType.xlValidateList, AlertStyle:=Microsoft.Office.Interop.Excel.XlDVAlertStyle.xlValidAlertStop, Operator:=Microsoft.Office.Interop.Excel.XlFormatConditionOperator.xlBetween, Formula1:="Maintenance Planning") End With It works fine with Excel 2003, but it does not works on Excel 2007. It shows below message, Excel was able to open the …

Member Avatar for kothaisaravan
0
445
Member Avatar for kothaisaravan

Hi, I cant able to save an excel file from VB.NET. I used the code below: SaveFileDialog1.Title = "Save Excel File" SaveFileDialog1.Filter = "Excel files (*.xls)|*.xls|Excel Files (*.xlsx)|*.xslx" SaveFileDialog1.ShowDialog() If (SaveFileDialog1.FileName <> "") Then [COLOR="Red"]xlWorksheet.SaveAs(SaveFileDialog1.FileName)[/COLOR] End If Error occurred in the highlighted line as "Exception from HRESULT: 0x800401A8". I cannot …

Member Avatar for kothaisaravan
0
5K
Member Avatar for begueradj

Hello people, I designed this class: [CODE] package aiproject; /* * This class has the task to read the data stored in a file called "fichier.txt" * line by line. * The read lines will be put inside a List called lignesDeMonfichier * Also, this class counts the number of …

Member Avatar for JamesCherrill
0
326
Member Avatar for rayidi

Dear Friends, I'm developing a website that can show online users, When ever a user logged we can update the status to "Online" On our database. Now i'm using AJAX. Is it possible to show the online users without refreshing a page ? That means timed interval for a ajax …

Member Avatar for rayidi
0
549
Member Avatar for rayidi

Dear Friends, [CODE]<a href="javascript:void(0)" onclick="javascript:chatWith('babydoe')">Chat With Baby Doe</a>[/CODE] Please convert this into regular php expression please. Thanks in advance

Member Avatar for pritaeas
0
131
Member Avatar for jdm3

Hello everyone, I'm working on an assignment that requires a game that drops multiple objects that need to be caught. I'm using multiple classes and the current one is raising a type error. " File "C:/Users/Joe/Documents/School/I-210/Final/game.py", line 118, in main gift = Present() TypeError: __init__() takes at least 2 arguments …

Member Avatar for jdm3
0
833
Member Avatar for haanjae

hello, i want to show the client's ip and machine name in ListView. Please help, Thank you. i also created code the collection for the listview collection [CODE] class ClientCollection { public string userIpadd { get; set; } public string userPcname { get; set; } public ClientCollection() { } } …

Member Avatar for haanjae
0
1K
Member Avatar for Dante2

Ok, I am walking my way through an instructional php book and basically going over the basics again. After I finished doing the script the way the book said to do it, I kept getting a header error saying that the headers have already been submitted. The book had my …

Member Avatar for Dante2
0
202
Member Avatar for dean8710

I have upload files over the live domain. and some files are process files. how I can limit the permission of the files so user cannot type that file's name on the url address bar? example of file permission code, 0755, 0644 Can someone gives me the list, and the …

Member Avatar for dean8710
0
192
Member Avatar for hovestar

I have a problem calling up my compturn() function. Here is my code: [CODE]import random def compturn(): print 'Computer turn:' comp = str(random.randint(1, 9)) if comp == a: compturn() elif comp == b: compturn() elif comp == c: compturn() elif comp == d: compturn() elif comp == e: compturn() elif …

Member Avatar for woooee
0
205
Member Avatar for javabeg123

hello i have problem creating a Sequence application that generates a series of random numbers from 0 to 9 until a 0 is generated and then displays the length of the sequence of numbers. the output should look similar to this 3 6 7 8 9 0 Length of the …

Member Avatar for jazz_vill
0
110
Member Avatar for Daigan

Hi, I need help with arrays. Here's what I have so far.... [CODE]// The "Prefixes123" class. import java.awt.*; import hsa.Console; public class Prefixes123 { static Console c; public static void main (String[] args) { c = new Console (); String prefix; String word; String sentences; c.print ("Enter the prefix: "); …

Member Avatar for Daigan
0
147
Member Avatar for Sarcasm

Hi, I am starting out with python coding and was looking for some feedback. Constructive Criticism please. Here is my code for game "Word Guess". [CODE] # Word Guess # # Word guess, is a game where the user has five chances to ask # the computer if a certain …

Member Avatar for Sarcasm
0
214
Member Avatar for biojet

Hi all, I try to find the average of colum with perl. I find in forum that have the question [url]http://www.daniweb.com/software-development/perl/threads/328723[/url]. [CODE]use 5.010; my (@arr, %arr, $row); while(<DATA>){ @arr=split(/\s+/, $_); for (my $i=1; $i<=$#arr; $i++){ $arr{$i}+=$arr[$i]; } $row++; } say ("total of column $_ is $arr{$_} and average is \t", …

Member Avatar for biojet
0
187

The End.