64,152 Solved Topics
Remove Filter ![]() | |
film class [CODE] import java.util.Scanner; // Creating Class Members public class film { private String itemCode; private String title; private String description; private String language; private String runningTime; private String productionCompany; private String status; //eg, pending, premiering, running, written-off // No-argument Constructor: Without Parameters public film() { itemCode = ""; … | |
Hi all :) I have two excel files for data(one is to retrieve data from outer source(file1) meanwhile the other one is for template(file2)) and 1 excel file for macro(file3). I would like to create a macro to copy data from the file1 to the template(file2) and save it as … | |
Hi there, I have to create a card game as an assignment, and i am having trouble with a part of the assignment. Basically, there is an array, 'playerHand', which holds a set of integers. What i want to do is to add the elements of the array and then … | |
Hey, I am now programming in a MacBook Pro and for the KeyCodes in the Robot Class, there is no set key for Command. Can I set a KeyCode to do the actions of the Command key? Thanks | |
![]() | Hello all community again ! I only want to know what is faster and better (logical, not writing or tabbing) between: IF...ELSE...IF...ELSE... IF...ELSEIF...ELSEIF...ELSE... For example: [CODE=PHP] $i=0; if($i>5){ echo '$i is greater than 5.'; }else{ if($i>0){ echo '$i is greater than 0 but less than 6.'; }else{ echo '$i is … |
Hi, I have two tables. Cla_case cc and Cla_event ce. The join between the two tables is on cc.cla_event_no = ce.cla_event_no. In cla_case i have the following columns : Discover_date and Notification_date. In cla_event I have the column Incident_date. I need to perform a SUBQUERY that will find the latest … ![]() | |
Hi i am new to java gui, i have trouble using color constructor. please tell me what the problem . thank you . [CODE]import java.applet.*; import java.awt.*; public class AnAppletSubclass1c extends Applet { Color c = new Color(5,25,205); public void Color(int r,int g,int b); public void init() { System.err.println("Hello from … | |
Hello Everyone, I`m a PHP developer, These days I`m thinking seriously about learning ruby , but I`m not sure if it gonna add to my knowledge , so i have few questions about it and hope that a ruby specialist will answer me 1- Do I need to learn ruby … | |
HAVE CLIENT-SIDE FORM COOKIE GET AND SET FUNCTIONS IN THE SECOND WINDOW DOCUMENT EXTERNAL JS.FILE OF A DUMY TEST SITE FOLDER ON MYCOMPUTER. IE8 THROWS 'SYNTAX ERROR' ON THE 'WINDOW.LOAD=FUNCTION, FIRST COOKIE FUNCTION HIGHLIGHTED'. CAN I ACTUALLY TEST COOKIES ON A TEST SITE ON MY COMPUTER WITHOUT THE SERVER (MYCOMPUTER) … | |
can anyone see why the status.health wont take away the 20 ???? [CODE]#include <iostream> #include <string> // To allow use of Strings. using namespace std; //char inventoryRequest = 'i'; //Function Definitions. void displayInventory(); void displayStats(); void statsObject(); void gameOver(); void stats(); void inventory(); void exitGame(); int playGame(); class status{ public://Access … | |
Hi....Friend i have to make this task...... create a time clock that display on the status bar and keep on changing every after 1 second. Kindly keep the format as given in the picture. i have created code but i dont know how to put on status bar... my code … | |
Hey guys, I'm hoping this isn't anything complicated. I don't know any javascript, but I think it can be done with it. Basically what I need is on select option to change the value of another selection option. More specifically: when a user selects a time from the first option, … | |
Hello. I have to do an program that writes an scale from num 1 to num 2. I managed to do that writes out from 1 to given number. Can anyone help me do that I can insert an scale starting number? Code: [CODE]#include <iostream> using namespace std; void prime_num(int); … | |
I searched daniweb, google, etc. All had multible code snippets but I couldnt get any to work.. Well my database is "wallet" and in the row is "id" and "amount" So I tried like [CODE]$result = mysql_query("SELECT amount FROM wallet WHERE id LIKE '%$id%'"); while ($row = mysql_fetch_assoc($result)) { $money … | |
I'm doing a project for school and I'm having difficulty getting the average of two averages, using arrays. I have to get the average of high temperatures for a year, the average for low temperatures for a year, and then find the average of those average. We used 366 days … | |
Hello. I don't know if this is the right forum for this. I have resently downloaded a custom jQuery UI Pack, only using core and tab widget. On the examples in the index.html file, everything loads fine. Then I copy the files to my website directory, (all locally) and the … | |
Hi[QUOTE]just wondering how i would set up a menu so that i can call anytime when pressing "M". im nearly sure it would have to be a loop but im not quite sure how to do it. can anybody help? thanks [/QUOTE] | |
i have a serious problem with this malloc function used in C language.i have been studying the topic "new" for few days,and there i found a code in which malloc was used.i am trying to change it to new but my compiler always always CRASHES. the line which i think … | |
Hi Guys Can you please take a look at following app to see what I am doing wrong? [URL="http://www.mediafire.com/?38pwg0uwj0930e3"]Download App(WinFormsStarts)[/URL] What I want to do is running multiple modal forms AND keeping the MainApp form accessible until finishing all required modals.As you can see from the application, as soon as … | |
can somebody tell me what can be the application of bubble sorting.or what actually application of bubble sorting means is it the usage of bubble sort in different areas.please give me some applications of it.. | |
I need help understanding this algorithm Design a variation of algorithm TreeSearch for performing the operation findAl(k) in an ordered dictionary implemented with a binary search tree T, and show that it runs in time O(h + s), where h is the height of T and s is the size … | |
![]() | Hello all Community ! My question is very simple: What is the difference between [ICODE]$_SESSION['id'][/ICODE] and [ICODE]$_SESSION[id][/ICODE] ? Both works the same ! What is better ? Does anyone know which is faster ? Thanks all ;) ! ![]() |
hello guys in daniweb. i have a application windows based created in vb.net that contains crystal reports and access .accdb files. to be honest i have tried to publish this app for 11 times and still there to be some problem. the application will install but it cannot run. it … | |
I know this question has been asked dozens of times, but the code I have been looking at has not helped me. So far I have been able to connect to the string and the database from where I need to check the username, but in my page it is … | |
First of all, hello Im Joey and Ive recently started messing around with the Java language. Ill do my best not to bother you alot with my newbie questions :) So I need to create a method that returns some variables I have encapsulated, as String but without the last … | |
Hi, i created a page with some radio buttons that each of them contains a certain number which i send them to action page for searching among the numbers that i inserted inside my table in data base. but the question is here that i wanna select with some different … | |
![]() | I need help trying to figure out what I am doing wrong. my teachers wants two different sentences to read as "Wow, (insert word 1) and (Insert word 2) are funny" and on the second line he wants them reversed to read "Wow, (insert Word 2) and (Insert Word 1) … |
Hi, A little stuck here - i have a file containing info like this: Name: Some Name Email: [email]some@email.com[/email] I'm using file_get_contents to read the file and then i want to get the name. I have it like [CODE]preg_match('/Name:(.*?) Email:/',$filecont,$name);[/CODE] however it returns nothing. Maybe anyone has an idea how … | |
My exe requires a dll to run, I have to keep moving the dll to the exe's folder to run it properly :( How can I combine the 2 files together as one? :( | |
Hello every1, I want to ENTER Sr.No. and Name in the table using procedures. My table has attributes 1. Sr.No. (which is my primary key(int datatype)) 2. Name (which is not null(string datatype)) I want to write a procedure in mysql to automate the process of entering data in the … | |
Hello there i need your expertise in VB6 i make some program using the navigation key and add, edit, delete, search command button. The program is almost 99% working. By the way im using adodc and access in my db and combo box using with search fields. My problem now … | |
i have a problem deleting a data using checkbox please help me here's my code admin.php [CODE]<form id="form1" name="form1" method="post" action="deleteApplication.php"><table border='1' cellspacing='0' width='612'> <tr> <th bgcolor='green'><font color='white'>#</font></th> <th bgcolor='green'><font color='white'>Room No.</font></th> <th bgcolor='green'><font color='white'>Cust. Code</font></th> <th bgcolor='green'><font color='white'>Check In</font></th> <th bgcolor='green'><font color='white'>Check Out</font></th> <th bgcolor='green'><font color='white'>No of Rooms</font></th> <th … | |
how do you promt the program from positive integars terminatd by -1 .. and then ask for smallest of these integars. I did everything except when I add (!= EOF) .. It shows the same prompt multiple times should I still keep the code or is there a specific error? … | |
[CODE] //Member Login public static boolean memberLogin(){ int memberPassword = 123; boolean password = false; int confirm = JOptionPane.showConfirmDialog(null, "Are You A Member? ", "Member Confirmation", JOptionPane.YES_NO_OPTION); do{ while(confirm == JOptionPane.YES_OPTION && password == false){ String tempCurrentPassword = JOptionPane.showInputDialog(null, "Please Enter Your Password", "Default Password = 123"); int currentPassword = … | |
Hi - I'm having a hard time figured out how to print the triangle shape below using loops. I did the two previous triangles with no issue but have no idea how to get the spaces in there. I'm really confused and would appreciate any help. [CODE] * ** *** … | |
![]() | Assume the following specification of a node of linked structure and the class [CODE]// LinkedStructure And the class.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include<iostream> #include<stdio.h> #include<stdlib.h> #include<conio.h> using namespace std; struct Node{ int info; struct Node *next; }; typedef struct Node * NODEPTR … |
Whats wrong with my code?I want a code that shifts a word to an amount (dog to fqi)and the input in an input box.The ouput in a 20 column by n row array.And z if shifted by 2 would be b.Thanks [CODE]Function ShiftCipher(text) shiftamount = InputBox("Input how many numbers to … | |
[IMG]http://img26.imageshack.us/img26/5063/ddddqk.jpg[/IMG] [CODE] <style> div#back{ width:1000px; height:1000px; margin-left: auto; margin-right: auto; background-color:#096; } div#topmenu{ width:400px; height:35px; position:relative; top:5px; left:595px; background-color:#9F0; } div#logopart{ width:950px; height:70px; position:relative; top:0px; left:50px; background-color:#0FF; } div#leftmenu{ width:100px; height:400px; position:relative; top:0px; left:0px; background-color:#999; } div#cont{ width:900px; height:500px; position:relative; top:0px; left:0px; background-color:#FF6; } </style> ... <div id=back> <div id="topmenu">topmenu</div> … | |
I have two tables. tbl_clients and tbl_projects. They both contain auto incremented primary key columns. For adding new projects to tbl_projects, I use tbl_clients' clientname field to populate a dropdown menu on the new projects html form. The user chooses a client name from the menu, and the primary key … | |
Hi. I'm sure this question has been asked before, but I can't get the text searched for. If anyone can explain them, refer me to an article, or give me the correct search query I would appreciate it. Thanks. | |
This program runs very smoothly, except that it doesn't print the value of i and is obviously not running the second loop to calculate the margin of error but I don't understand why. Any help? [CODE] // This program was designed to calculate the value of pi import java.util.Scanner; public … | |
Hi Guys I am trying to make the windows Form BackColor Transparent but each time I try to set the BackColor to Transparent property I am encountering with following error message [COLOR="Orange"]Property Value is not Valid Control does not support transparent background colors.[/COLOR] I also tried to add following code … | |
I have already downloaded the latest DX SDK (June 2010) and still, this error remains. error C2065: 'IID_IDirect3D3' : undeclared identifier I already included the headers below but it seems not to work, what am I missing? #include <d3d9.h> #include <ddraw.h> | |
HI, I'm writing a code for the very first time, and I'm completely stuck. Some guidance would be great. I'm writing a C program that reads integars from file "integars.dat". The program should show how many numbers you have entered, how many among them were even, and how many were … | |
I am trying to get my code below to display what high school the students are from from the .txt file the text file below will work but i want to add school to txt file and confused on what to change in my code [QUOTE]Alphy Beta 85 83 77 … | |
Hey, I've stumbled upon a small problem with my game. I have 10 wasps that have some AI, just wandering around and whenever a wasp gets close to the queen wasp it starts chasing it. the queen just wanders around aswell. I can also move with my character and if … | |
Hi Guys, Surely this shouldnt be such a complex task! I have done this before for a desktop application where I typed in data on the UI clicked a button and a new text file was created on the C: drive and the data added. Ive been googling and googling … | |
Hey guys, I'm just trying to get to grasp with structs and I have written a small test program to print out a persons name and age. Currently I am getting nothing when the program runs. Help :( [CODE]#include <stdio.h> struct person { char *name; int age; }; struct person … | |
Can someone please help me go over these codes? There are no bugs in all except LinkedListBinary.java and I have no idea why. The lines that are causing me problems are: [CODE] /** Returns an iterator of the elements stored at the nodes */ public Iterator<E> iterator() { Iterable<Position<E>> positions … | |
i have done my application that uses crystal report and access database. I try to publish the application but when install on client machine, it wont work. the access database wont load and so the reports. What should i do? can anyone help me? |
The End.