199,114 Archived Topics
Remove Filter ![]() | |
I have been asked to create to check if a word is palindrome or not. But I am facing some problems. After the code you can see the messages that I received from the compiler. [CODE] import java.util.*; public class Palindrome { public static void main(String[] args) { [B]Stack<String> stack … | |
I was given a task of creating a lucky draw program. 1.Total numbers of accounts are 00001 to 99999. 2.But only 131 accounts will be chosen. 3.3 sections - 1 account for 1 car, 20 accounts for 20 iPhone, 10 accounts for 10 Samsung 4.Galaxy & 100 accounts for $100 … | |
May i know how to matching 2 array keywords? e.g I have 1st array keyword like kfc,mcd,fastfood,etc 2st array keyword like kfc,mcd If i want to get the matching keywords among these 2 arrays, how to i write the matching code? Thank advance for your help. | |
Hi there, I have a very simple schema where each node requiring HTML output contains 7 possible numerical variables (all within nodes N1 - N13). I need to output text and image content according to the number within each node. Below is a sample of my schema: [CODE] <?xml version="1.0" … | |
Hi, I am facing OutOfMemory exception in Java, Kindly help me to resolve this issue, really appreciate your help [U][B]ERROR: [/B][/U]java.lang.OutOfMemoryError: Java heap space [B][U]CODE:[/U][/B] [CODE] public Blob getBlob(String databaseInstance, InputStream inputStream) throws SQLException, Exception { applog.info("Entering getBlob"); InputStream stream = null; applog.info("inputStream : " + inputStream); stream = inputStream; … | |
im creating a custom button . when user select a image file for button image i want to add it to the project resource (in design time) . how to do this?? im currently drawing image using image location but its not a good solution. | |
I'm trying to make my first real project: A calculator, but when I press the "clear" button (the only button i've done so far) the JLabel doesn't go from two to zero, any help would be really appreciated :) code: [CODE]import java.awt.Color; import java.awt.GridLayout; import java.awt.event.*; import javax.swing.*; public class … | |
dear all net visitors how can i create a frame in web page using html | |
Hey guys. I'm trying to create a program which adds, searches & removes items from an array & i've been messing around with the code, trying to find answers on the internet but so far no dice. Could any of you help out? [CODE] void removeString(List& s, string strKey, const … | |
hi all, I have script that sums all textboxes value from dynamically added row, but still i have problem with the script. below listed two version of script [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title></title> <script type="text/javascript"> /*<![CDATA[*/ function addRow() { // grab … | |
Hey i have no idea whats goin wrong with this i think its to do with the fact that its in private but i have an error with calling weapon in the monster class (Monster.cpp) the error states that it is inaccessable :S here is my code: [CODE] //Monster.h #ifndef … | |
Hi, I am wondering if it is possible to "transfer" a Socket connection to another ServerSocket? So, say I listen for a connection on ServerSocket with port 1111. A connection is established, I know want to use a ServerSocket with port 2222 to handle this connection. Is he possible without … | |
Can some one help with this please. I need to update a Passengers Name, im using Strings not Char. [CODE] if (choice == 2) // Updates Record.. { merge_sort(0,N_PASSENGER-1); cout << "\n\t Enter the Seat Number:"; cin >> key k=binarySearch(passenger, 0, N_PASSENGER, key); // Search Array if(k>=0) cout << " … | |
I need Video Gallery With cPanel, i searched all over the World Wide Web and found nothing xD doesnt matter free or for money, im ready to pay for it, Video Gallery With cPanel to upload and edit and those things. :/ ![]() | |
[CODE]<?php include('header.php'); foreach($_POST as $key => $value) { $protectie[$key] = filter($value); }if(isset($_POST['submit']) && $_POST['type'] == "facebook") { $num1 = mysql_query("SELECT * FROM `facebook` WHERE `facebook`='{$protectie['url']}'"); $num = mysql_num_rows($num1); if($num > 0){ $mesaj = "<div class=\"msg\"><div class=\"error\">Facebook Pages has been added before!</div></div>"; }else{ mysql_query("INSERT INTO `facebook` (user, facebook, title, points, cpc) … ![]() | |
Hey there, I am trying to build a small survey for a homework assignment. So, I have the following code: [CODE] $con = mysql_connect("localhost","user", "mypassword"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("mydatabase", $con); $slq = "INSERT INTO results VALUES('', '', '', '', '', '', '', '', … | |
I have literally been banging my head on my keyboard out of frustration. I'm trying to display PHP sessions as values in my php form, but it's not going so well. here's what I have: [CODE]<?php session_start();?><html> <head> <title>Create An Event</title> <style> label {float: left; width: 100px;} input[type=text],textarea {width: 210px;} … ![]() | |
Hey Im currently working on a application server written in Java but to use information from a C++ program. The company seems to agree that rewriting thousands of lines of code would be time consuming and simply making libraries of key functions of the C++ program and then passing them … | |
Hi guys I am trying to declare a array within a structure, and it is not working. I'll paste the code below and if anyone can help it would be greatly appreciated. [CODE]Structure league Dim id As String Dim name As String Dim players(20) As String End Structure Dim leagues(100) … | |
Hey guys, I am to do a final year project to monitor the trading floor of the Nigerian Stock Exchange and my question is if I were to write an application what things should I consider. The application is supposed to be a stand alone but works when it connects … | |
Hello, I joined here desperately asking for your help I have an assignment about creating a program that loads a text file given. the text file contains many lines and those lines are questions and answers it is on this sequence question answer question answer and so on so we … | |
I need to pass some parameters to button_click is that possible and if so how can I do it?? | |
In part of my program, i have to insert Equation.DSMT4 into the richtextbox control. I found that there is no methods in richtextbox to insert ole objects. If anybody knows, pls help me to get solution for this problem | |
I accidentally hit Source->Externalize Strings... on eclipse and now hundreds of string literals are stored in a properties file. I want them back scattered about my code. How can I do this without re-entering them? | |
Hi i have a form which is used to post jobs. i have multiple checkboxs for location's i need a way in which i can save all the values which are checked into single table or two . right now i have a table called jobs in which all the … ![]() | |
Hi I want to make website like [url]www.polyvore.com[/url] can anyone know me how i can make clone of this website. What tools or third party tools i have to use ? ![]() | |
Hi all, I have taken slide show script from net. But There some functions i cannot understand here is script [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" > <html lang="en"> <head> <title></title> <script> var interval = 1500; var random_display = 0; var imageDir = "my_images/"; var imageNum = 0; imageArray … | |
hello, I am using onclick ajax requests and innerhtml to give a site only partial page reloads. One of the page reloads links to an image gallery, where I am attempting to use fancybox. I have all the scripts properly linked and there are no syntax errors, but it (the … | |
I want detect duplicate row for certain column in datagridview and highlight the row. | |
I need a help to understand what condition can be applied to the below requirement: If suppose we have 2 species name eg. dog and cat... and we have few breed name for the above mentioned species.... so what condition can be applied in such a way that the user … | |
hi everyone I'm new to c# and working with file currently I need to read some string from the file but not the whole file so what functions can I use to read the file string by string ? | |
[CODE]<?php include('header.php'); foreach($_POST as $key => $value) { $protectie[$key] = filter($value); }if(isset($_POST['submit']) && $_POST['type'] == "facebook") { $num1 = mysql_query("SELECT * FROM `facebook` WHERE `facebook`='{$protectie['url']}'"); $num = mysql_num_rows($num1); if($num > 0){ $mesaj = "<div class=\"msg\"><div class=\"error\">Facebook Pages has been added before!</div></div>"; }else{ mysql_query("INSERT INTO `facebook` (user, facebook, title, points, cpc) … | |
Hey All... This query is waaaay outside my skill set so I can't even fathom how to do this other than the "brut force" method and that's way to slow for my purpose (a mobile app). I have two tables, `Categories` and `Articles`: `Categories` has: `id`, int auto-increment `name` text … | |
Hello, Am not new to PHP but new to OOP, I have watched lot of tutorials for oop and as I saw, class is almost a new language!! To be a pro programmer, I should learn existing class attributes or I should create my own?? example of default class attribute: … | |
![]() | Soo last year, if im not mistaken , i asked for help with the random numbers generator. I didn't do C++ for quite some time, but i started again. So here is what i have : [CODE]#include "stdafx.h" #include <iostream> #include <fstream> #include <ctime> using namespace std; int main(){ srand(time(NULL)); … ![]() |
I have to complete a project about employees and their jobs. Here are the requirements: 1 Must be able to add new employees 2 Must be able to add new jobs 3 Must be able to attach a registered employee to registered jobs (several jobs to the same employee) Since … | |
I'm having problem with my login php files. I don't know if it is in the passing of values from inputboxes or connection with my database records. log-in code: [CODE] <td align="right" width="130px"> Username: </td> <td><input type="text" size="40" id="username" class="inputbox" /></td> </tr> <tr> <td align="right"> Password: </td> <td><input type="password" size="40" … | |
hey frnz... can any1 tel me how to create a simple software in c#? i need to create a software n connect another system to my system (which acts as a server) n make d other system to download d created software setup... plsss help | |
Hi, My layout.php form has many buttons it and a current date field, which all have a unique id/name. when the button is clicked it uses the id and date on the new.php, so when the record is saved it is saved relating to the id and date and other … | |
Hello friends, Please help me to implement InApp purchase feature in my application.. I dont have Android mobile right now.. So need to test it in Emulator.. I have gone through some codes but its not working in emulator.. | |
how to enter the date in the masked text box and how to validate it | |
Below is a sceanrio.. i need some help to do the following... i have done bits but i think i dont understand and need some guideance.. can anyone help me to find the.. 1) entities 2) attributes 3) realtionships withing the scenario below? SonicLive is a UK company that is … | |
I know that this is a c++ forum but im a college student and i cant practice the programs without clearing this problem coz most of the programs require "resource.h" this program is to attach a menu to a window [code=c++] #include<afxwin.h> #include"resource.h" class myframe:public CFrameWnd { public: myframe() { … | |
Write a program that converts upper case to lower or lower case to upper, depending on the name it is invoked with, as found in argv[0]. | |
I can't figure out what is wrong since my codes are correct. [CODE] $host="localhost"; $username=""; $password=""; $db_name="database"; $tbl_name="members"; mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("Cannot Find Database"); [/CODE] Keeps on saying the die statement. I'm using WAMP, and yes. my database name is "database" and table is name is "member". … | |
Hello guys, I am using Hibernate + Spring with netbeans to make a web application. I have it working correctly and displaying data from the DB. My problem is I only know how to do one hibernate query which is shown below. How can I do insert/delete queries. For instance … | |
Hello everyone, I'm working on a little project that use c#, Oracle ODT and asp.net, so, my problem is that i dont know how to convert or store the data retrieved from a sql that is a sequential and then use in other query in the same project. This is … | |
Hi, I am very new to c# and I toying with the idea of using stored procedures to insert values from two textboxes in to two related tables. Table 1 Model (ModelID PK, ModelName, ManufacturerID FK) - Table 2 Manufacturer (ManufacturerID PK, ManufacturerName) both tables are related by the ManufacturerID. … | |
I'm having difficulty getting graphics into my C++ program. using Ubuntu 11.10 I /think/ my problem is simply my inability to download and install graphics libraries. Basically at the #include ... section of code i get an error every time about being unable to find xyz which i haven't managed … | |
Hello all. I am working with some code like this. [CODE] echo"<div style='background-image: url(boxshadow2small.jpg);text-align:center; height: 266px; width: 225px; '></div>"; [/CODE] I wanted to be able to control the size of this div with php conditions. I thaught i could do it like this, but its not working. [CODE] $someVariable = … |
The End.