64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Smartflight

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 …

Member Avatar for Smartflight
0
358
Member Avatar for epicbeast9022

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; …

Member Avatar for vijayan121
0
175
Member Avatar for bhagawatshinde

Hi is it possible to access file from server without downloading it to remte machine

Member Avatar for bhagawatshinde
0
92
Member Avatar for _neo_

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 …

Member Avatar for _neo_
0
266
Member Avatar for floatingDivs

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 …

Member Avatar for floatingDivs
0
718
Member Avatar for ThomsonGB

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 …

Member Avatar for ThomsonGB
0
494
Member Avatar for -==Zero==-

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 …

Member Avatar for sohbet
0
276
Member Avatar for mehnihma

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

Member Avatar for Ezzaral
0
180
Member Avatar for Sherif1410

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", …

Member Avatar for ~s.o.s~
0
8K
Member Avatar for beforetheyknew

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... …

Member Avatar for codeorder
0
131
Member Avatar for archelle

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 & "' …

Member Avatar for adam_k
0
211
Member Avatar for stoopkid

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 …

Member Avatar for stoopkid
0
94
Member Avatar for whit89

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.

Member Avatar for whit89
0
135
Member Avatar for emorjon2

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 …

0
122
Member Avatar for dean8710

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); // …

Member Avatar for dean8710
0
156
Member Avatar for nomorelogic

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 …

Member Avatar for nomorelogic
0
197
Member Avatar for Srinivas0

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 …

Member Avatar for Srinivas0
1
542
Member Avatar for Kippstah

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 …

Member Avatar for Beat_Slayer
-2
239
Member Avatar for gplkrsna

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 …

Member Avatar for gplkrsna
0
101
Member Avatar for fka

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 …

Member Avatar for fka
0
293
Member Avatar for kyriacos1986

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 …

Member Avatar for NormR1
0
6K
Member Avatar for leechyeah

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 …

Member Avatar for leechyeah
0
393
Member Avatar for Srinivas0

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: …

Member Avatar for Srinivas0
0
217
Member Avatar for ogsirus

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 …

0
92
Member Avatar for Majestics

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 …

Member Avatar for Majestics
0
251
Member Avatar for Lunar Savage

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 …

Member Avatar for Lunar Savage
0
193
Member Avatar for moonL!ght

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 …

Member Avatar for moonL!ght
0
111
Member Avatar for bflack

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]> …

Member Avatar for bflack
0
202
Member Avatar for anand01

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 ?

Member Avatar for anand01
0
88
Member Avatar for Dmiller071

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 …

Member Avatar for Dmiller071
0
190
Member Avatar for virendra_sharma

Hi, i want to write a query for employee's who's name start with "a" and end with "b". Thnks in advance :)

Member Avatar for pritaeas
0
553
Member Avatar for champmanking

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 …

Member Avatar for champmanking
0
1K
Member Avatar for jhellr13

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 …

Member Avatar for NormR1
0
1K
Member Avatar for -==Zero==-

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 = …

Member Avatar for -==Zero==-
0
532
Member Avatar for sergent

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 …

Member Avatar for mike_2000_17
0
220
Member Avatar for SeniorAlexandro

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?

Member Avatar for SeniorAlexandro
0
333
Member Avatar for davy_yg

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 …

Member Avatar for pritaeas
0
148
Member Avatar for sun_2588

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....;

Member Avatar for Ismatus3
0
4K
Member Avatar for softDeveloper

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 …

Member Avatar for softDeveloper
0
200
Member Avatar for StatikStasis

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 …

Member Avatar for StatikStasis
0
819
Member Avatar for Skretch

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 …

Member Avatar for Skretch
0
352
Member Avatar for dennysimon

hello all how to make window's short cut that call command line: java javaclassname.java thank you denny

Member Avatar for NormR1
0
202
Member Avatar for Dorar

[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 …

Member Avatar for dspnhn
0
513
Member Avatar for mynamewontfitin

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 …

Member Avatar for mynamewontfitin
0
2K
Member Avatar for minitauros

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" …

Member Avatar for minitauros
0
106
Member Avatar for varun45

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(){ …

Member Avatar for varun45
0
990
Member Avatar for fika

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 …

Member Avatar for fika
0
124
Member Avatar for squares86

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 …

Member Avatar for squares86
0
163
Member Avatar for aldeene

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: '" …

Member Avatar for aldeene
0
113
Member Avatar for nHulk

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 …

Member Avatar for nHulk
0
203

The End.