64,152 Solved Topics
Remove Filter ![]() | |
![]() | Hi, I'm learning C/C++ at school and we have our vacations; thought I might do some programs on my own. I've landed at trouble with sorting numbers in a 1-D array at the time of insertion. It seems to work up to a certain point, after which it fails to … ![]() |
Hello everybody I [I]thought[/I] I understood inheritance but it turns out I don't. I am creating an SDL/OpenGL mini-GUI library. I have a master class, GUIComponent, with subclasses such as TextLabel under it. I have a vector called guiList that is initialized as [ICODE]std::vector<GUIUnit*> guiList[/ICODE] (it's extern'd and initialized elsewhere; … | |
Hi is it possible to access file from server without downloading it to remte machine | |
I have test midlet which requests my location via JSR-179 Location API. I use Nokia 6275i. Its java: MIDP-2.0, GPS enabled (I see blue icon on top of my mobile device) When I run this app I got the following error: "java.lang.securityexception: Positioning Log denied Location access." Google do not … | |
Hey everyone (especially Narue!), I've ventured over to the C++ board again. I've been reading my C++ book (Data Structures and Algorithms in C++) again and want to fully grasp the concept of pointers. In the back of each chapter, a couple of exercises are available and I'm attempting to … | |
Okay - Now I am beginning to get a bit frustrated. I have a project that builds perfectly and I just want to duplicate it so I create a new project with the new name that I want to call it. When It shows me the empty space to start … | |
I Got A Problem Here And Seem I Got Some Fix For The Code The Problem Here [url]http://www.daniweb.com/web-development/php/threads/403345[/url] But I Need To Know Something This Code Work Ok [CODE]<? if(isset($_SESSION['username'])) { $query = ("SELECT * FROM users WHERE password='$_SESSION[password]'"); $result = mysql_query($query); while($row = mysql_fetch_array($result)) { echo "Welcome<br/>"; echo "Your … | |
![]() | I have problem formating this code to displey 2 decimal points [CODE] public String toString() { return super.toString() + "\n\tYear Level:\t" + getYearLevel() + "\n\tTuition:\t$" + "%1$.2f",calcTuition(); } [/CODE] calcTuition is type double how can I do this? Thanks |
Hi, I wrote the following Java Program. When I enter Arabic Course name, it displays non Arabic characters. Can you help me to read and write Arabic Character. Thanks. [code]package p91; import java.util.Scanner; class GradeBook { public void displayMessage(String courseName) { System.out.printf("Wellcome to the Grade Book Dr. Sherif! for \n%s!\n", … | |
Hi guys, okay 2 questions, please see the below code. 1.) Why in the code below, does my incrementing ScoreInt not work ? need a fresh pair of eyes. 2.) The time in my form when run only displays the time the application was initially run, but does not update... … | |
Hello.. i have a table named Tuition with fields: TuitionNum,TotalFee,Fine,levelNum,SchoolYear,DateCreated,Removed,DateLastModified,UserID I inserted record successfully but when i'm trying to display TotalFee using this code, [CODE] myConnString = "server=localhost;" _ & "user id=root;" _ & "password=fiancee;" _ & "database=anneclaire" SQL = "SELECT TotalFee FROM Tuition WHERE levelNum='" & TextBox1.Text & "' … | |
I'm having some trouble collecting data between 2 different years (ie: December 2011 & January 2012). This is a timeclock system where punches are stored as: DD-MM-YYYY (31-12-2011). I want to be able to search for dates between: DD-MM-2011 through DD-MM-2012 but am coming up empty. When using the same … | |
Say i wanted to search a table with multiple values separated by spaces. Say Brand Colour Dulux Red Green Blue Crown Pink Red Yellow So searching red would return Dulux Red Crown Red or searching red pink Duluz Red Crown Red Pink. | |
Hi all! I am developing a java-game where you are building with balls. It will connect to a server to create a huge map available for everybody playing this game.:) For this, I need a PHP-file who will append some urldata into the file data.txt, for adding a ball into … | |
I have a code to trim the long word for the specific length and replace it with '...' but, it has a problem, where, if user's name dont have space, its will look wierd.. heres the code: [ICODE] <? function truncateString($string, $length, $append = '...') { $length -= strlen($append); // … | |
so i have a working ish program now, when i add the record it saves and returns the save message box as it should and is viewable in the database where it saves to, but it is not viewable in the text boxes when looking back at the form until … | |
write a program to accept the salaries of 10 employees from the user and display them in descending order for all the employees,if the user enters zero, the program should display the message"the amount should be greater than zero" and accept the value again. [CODE]#include <iostream> using namespace std; class … | |
Ok, so. I've programmed, just for fun, a conversion calculator for decimal and binary numbers. Here is the code: [CODE]# -*- coding: cp1252 -*- import sys, os, time #This is where you convert a binary number into a decimal number. def binaryToDecimal(): os.system('cls') while True: print "To go back to … | |
Hi All, Hi All, I'm trying to execute a vbscript programme, on execution I'm getting following error, can you please help me in coming out of the problem. "Wrong number of arguments or invalid property assignment: wsh" CODE snippet: [CODE]Set xl=createobject("excel.application") Set wb=xl.workbooks.open(testset) xl.visible=true Set wsh=wb.WorkSheets(1) <------- ERROR is seen … | |
Hi everyone, I wrote something like that: [CODE] book *library = NULL; customer *service = NULL; do { printf("**********MENU***********\n"); printf("* #1 List of books *\n"); printf("* #2 Add book *\n"); printf("* #3 Search by title *\n"); printf("* #4 Search by category *\n"); printf("* #5 Search by author *\n"); printf("* #6 … | |
I have been asked to design a method splitMid that can be added to the LinkedList<E> class. This method should have the following header: public void splitMid(LinkedList<E> sublist) and should split the given list into two sub-lists of (almost) equal sizes. Suppose myList points to the with elements 34,65,27,89 and … | |
Dear, I am making an ordering form and all of the products' data are stored in a MySQL database. The menu form to select products are all [B]working with plain HTML[/B] not php echo's. But now I can change products' info via a separate web page by updating the MySQL … | |
create a menu driven application that accepts the salaries for ten employees and display the following information: 1)max salary 2)min salary 3)avg salary 4)number of employees whos salary is greater than 1000 5)the salaries in ascending and descending orders. [CODE]#include <iostream> using namespace std; class Max { int marks[10]; public: … | |
Hi guys. I am making a program in c# which uses several forms. It my first time doing this so im a bit clueless. I have a main form and a second one. The main asks the user to enter a number between 1- 25. When they press enter It … | |
Which two code fragments correctly create and initialize a static array of int elements? (Choose two.) A. static final int[] a = { 100,200 }; B. static final int[] a; static { a=new int[2]; a[0]=100; a[1]=200; } C. static final int[] a = new int[2]{ 100,200 }; D. static final … | |
Okay, so I've been working on this Inventory Program non-stop all day long. I've made massive changes to it several times and feel like I'm banging my head against the wall. And finally, I managed to make it do everything I need it to do like cycle through an inventory … | |
hi im implimenting a gui applicaion so i have a list of shapes =>array of objects and i want to select a shape from the list im stuck in implimenting the listener class how do i know the selected object that is in my list it wont work with me … | |
I want to display the images on the php page. Can anybody help? heres the code. Thanks in advance. [CODE] <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="generator" content="CoffeeCup HTML Editor (www.coffeecup.com)"> <meta name="created" content="Sat, 17 Dec 2011 01:37:35 GMT"> <meta name="description" content=""> <meta name="keywords" content=""> <title></title> <!--[if IE]> … | |
hi all, I have doubt on Index,I know Index are used to increase the performance of table but my question is where to create Index whether primary key table or foreign key tables ? | |
My main problem: In my JApplet, my actionPerformed method should open a website when a certain item is selected in a JComboBox. The problem, is that the desktop.browse(uri); statement will not work. I've tried this outside of an applet in just a small program and it ran fine. So there's … | |
Hi, i want to write a query for employee's who's name start with "a" and end with "b". Thnks in advance :) | |
![]() | Hello all, I am looking for help on how to code this: I would like to have a page where there is a box where registered users can type something then on pressing the button a new page is created displaying the text they entered and boxes for other people … ![]() |
I have to do this project for school that finds the Standard Deviation. The first part of it, which has to build an array from scanner with a while loop, has been killing me today. The problem is that my teacher wants a program that will allow a user to … | |
hello iam have some trouble in my page code this is the profile page code i started the session in the first row of page and this is the code that have a problem [CODE]<? if ($_SESSION['username'] || $_SESSION['password']) { $query = "SELECT * FROM users WHERE username='$_SESSION[username]'"; $result = … | |
I know that by default member functions of a class are inlined [CODE] class d { public: int a() { return 1545435; } }; [/CODE] And I also know that it's not allowed to declare functions in headers unless they are inlined. Is there a way to declare a function … | |
![]() | Alright, I have Textbox where I want only Numbers and Letters and backspace allowed. I don't want copy and paste, or spacebar or other ascii charachters. Can anybody help me? ![]() |
style.css [CODE] #header { background-color: #999999; height: 200px; } #login { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; height: 50px; background-color: #FFFF00; background-image: none; } #searchwrapper { width:310px; /*follow your image's size*/ height:40px;/*follow your image's size*/ background-image:url(Images/search_box.jpg); background-repeat:no-repeat; /*important*/ padding:0px; margin:-40px; position:relative; /*important*/ left:800px; } [/CODE] index.php [CODE] <div … | |
I am working on the Tkinter.......i need progress bar in determinate mode........ can some one please give simple example of it, i m getting confuse in start, stop and step method of the progress bar Thanks a lot....; | |
Dear all, I'm passing a javascript String variable varname in a form inside a jsp to another page. [CODE] <form name="form1" action="nextpage.jsp" method="post "> <input type="hidden" name="varname" value="teste" /> <input type="button" value="button" onClick="document.form1.varname.value = function(window);"> <input type="submit" name="button" value="test1" /> </form> [/CODE] When I get the String in the next … | |
Hey Everyone! It's 6:29pm EST and I have been working on this same problem since about 9am. I'm usually able to Google my way to the solution- but I have reworded my search numerous times and went through mountains of forums trying different approaches but to no avail. Here is … | |
Trying to add a key keylistener to a program i am making but it wont work. cant find the reason :/ any help would be awesome:) Display.class [CODE]package com.mono.main; import java.awt.Graphics; import java.awt.Graphics2D; import javax.swing.JFrame; import javax.swing.JPanel; import com.mono.main.handler.Controller; import com.mono.main.handler.Game; import com.mono.main.handler.InputHandler; public class Display extends JPanel implements Runnable … | |
hello all how to make window's short cut that call command line: java javaclassname.java thank you denny | |
[B]My project is Housing reservation system for University I design the interfaces by VB and connect to my oracle data base account Oracle 11g, VB express edition are used The proble is with the login form [URL="http://im20.gulfup.com/2011-12-23/1324652639153.png"]http://im20.gulfup.com/2011-12-23/1324652639153.png[/URL] when I debug and enter the ID & password for User : according … | |
Hey - Sorry if this is an irritatingly simple problem, but I'm a newbie to the Java language and I can't see where I'm going wrong with this. I get an error with my code when trying to define 'label3' - "cannot find symbol - class Jlabel". It seems to … | |
I would like to execute some Javascript after the document has loaded and even after the document.onload functions have been executed. Situation: I'm loading a text-edit field through ajax. When the user submits the form, he is redirected to a PHP file. That PHP file redirects him back to "file.php" … | |
I am having difficulties with placing images on Buttons using Java Swing. I have placed all images in a package named icon. The frame is loading as well as the buttons. I cant seem to get the images on the buttons. Can anyone point out my mistake please. [CODE]public Launch(){ … | |
hi, there.. i have few problems here... i have 2 table in my database.. and i want to take few data from first table and insert it into second table... how can i do that?? i don't want the user write it twice in different form... is there any way … | |
I an a newbie to assembly language, been reading jeff duntemann's book, and I have been trying to write some code by myself too. There is an example in the book on converting binary values to hex values. I decided to re-write the code again by myself for self-practice but … | |
my program freezes when I put this code on a button, but when I put it in the main it doesn't what could be the problem? protected void EstablishClient() { try { skt = new Socket("some.ip.of.me", 4444); out = new PrintWriter(skt.getOutputStream(), true); in = new BufferedReader(new InputStreamReader(skt.getInputStream())); txtRecvd.append("Received string: '" … | |
I am trying to import all the classes present in a user defined package, by using the statement as import mypack.*; but it's not working in my program. [B][B]Its Giving error : C:\Users\Nitin\java>javac AOTest.java AOTest.java:6: cannot access AOperation bad class file: .\AOperation.java file does not contain class AOperation Please remove … |
The End.