64,152 Solved Topics
Remove Filter ![]() | |
who can help me in java? this is my code: //employee.java public class Employee { String emp_id; String emp_name; String emp_icno; char emp_gender; String emp_dob; String emp_addr; String emp_comDate; String emp_dept; String emp_pos; double emp_sal; public Employee() { emp_id = "99999"; emp_name = ""; emp_icno=""; emp_gender='m'; emp_dob=""; emp_addr=""; emp_comDate=""; emp_dept=""; … | |
So I have taken on an extra credit assemly code challenge, and I am having a hard time getting started. What I need to do is be able to divide two 16 bit numbers and then display that answer. I can figure out how to divide a 16 bit number … | |
Hello all, I have been working on a homework assignment that has to build a program for a user to enter student's grades and see the student's average as well as a class avaerage. Besides some cleaning up, organizing, and labeling I am pretty happy with it and it is … | |
Hello everyone, and thank you in advance for any help you can give! I am working on a simple program with some long integers, which I have defined as type long long, with LLU after them. I am trying to use these variable names in an arithmetic expression, but when … | |
Hi, i have a form on my website, and I would like to have a text box next to another text box that displays how many letters the user can type into the box eg: [code=html] <td><input type="text" name="description" maxlength="30" /></td> <td><input type="text" class="counter" value="30" disabled="true" /></td> [/code] This is … | |
I am trying to manipulate user input strings using the ord() funtion. This effectively allows me to identify the decimal value of each character in the string. I have been able to return the value of the characters, but what I need to understand is how to store each value … | |
hi all, i have a login page and a couple of other php pages. what i want is that nobody should be able to view my other php pages without logging in. i have tried with sessions but sadly session is not working with me. can anybody tell me of … | |
hi there, i have started session in my first page(login page). on fulfilling the validations the user is taken to the next page. in the second page, first i check whether session is set or not, and if it is not set the flash an error message to the user … | |
I have two header file Fibonaci.h, Fibonaci_Iterator.h, u can look below [U][B]Fibonaci.h[/B][/U] [code=c++] #ifndef __fibonaci__ #define __fibonaci__ #include "stdafx.h" #include "Fibonaci_Iterator.h" using namespace std; class Fibonaci { public: //typedef Fibonaci_Iterator iterator; Fibonaci_Iterator begin(); --> [B]syntax error missing ; before begin[/B] Fibonaci_Iterator end(); Fibonaci( const int& ); Fibonaci( const int&, const … | |
Hey guys, sorry for this, what im sure is simple, but i just cant get it! i have a dictionary for restaurants.. then i have nested dictionaries holding information like when these restaurants open and close. [CODE] Restaurants = { 'Italian' : {"OpenTime" : "11:30", "CloseTime" : "20:30"}, 'Mexican' : … | |
I want to fill a matrix randomly with True and False. The code below does produce a matrix where the proportion of True is roughly p, but all the Trues are at the beginning, and all the False at the end (so it looks like it generates the same random … | |
how to untar a file with tar.gz extension in php script. i have written a php script for uploading a tar.gz file amongst many files. i have to untar this file. how will the command be like? till now what i have done is - consider for uploading i have … | |
how to implement tar command through php script? | |
hi guys, Im in the process of writing a unix mointoring program that will monitor differenet servers all runnning solaris . I am creating a main screen with summary warnings for high cpu usage, low disk space, meta device faults, high network collisions etc. All has gone well but now … | |
I'm working on an implementation of Conway's Game of Life as a way to learn Scheme, and I'm having trouble with the updater. I keep getting the message "The object () is not applicable" when I try to use the following. I could be missing something simple, and any advice … | |
i have a problem making the code for this logic i have 5textbox ,1 label and a command button on a form and need to do this: [QUOTE]if the value of the 1st textbox is greater than the 2nd,3rd,4th,5th then label1.caption = to the value of the 1st text box … | |
Hey there everyone! I found this site because I was looking for some help with my c++ course. I am trying to figure out how to make a program that can read in data from a .txt and then replace every 7th word with an underscore. It must print out … | |
need some advise here...just create a simple form..but i had problem with validation.hope somebody can help me.. [B](register.html)[/B] <form id="FormName" name="name"method="post" action="added.php" name="name"> <input id="name" name="name"type="text" name="name"><br> <input id="email" name="email"tpe="text" name="email"><br> <input id="contact" name="contact"type="int" name="contact"><br> <textarea id="person_attend" name="person_attend" rows="4" cols="40"></textarea> <textarea id="comment" name="comment" rows="4" cols="40"></textarea> <input type="submit" name="submit"> </form> <? … | |
Hi This is Scorp I have Little issue about phpmyadmin. When i write [url]http://localhost/phpmyadmin[/url] on my url and Press Enter i got the Login Screen and i tries every username and password, but everytime it gives same error Error MySQL said: #1045 - Access denied for user 'pma'@'localhost' (using password: … | |
I have a string stored in a session variable.....how do I get that string back out as I get the error:Type mismatch: cannot convert from Object to String Is there a toString() method or something? Thanks | |
Keep getting an error 'syntax before struct_acc' but cant see where can YOU?! (it's like finding woldo to me) [CODE] void print_customer_statement(char customer[]) { int choice; struct_acc Acc[SIZE]; FILE *file_ptr; int i=0; file_ptr = fopen(customer, "rb"); if (file_ptr == NULL) { printf("Error in Opening files... Program End\n"); exit(1); } while(!feof(file_ptr)) … | |
Hi, I've got about 10 functions that all share a bit of code. They all look something like this: [code=python] def func(arg): statement1 statement2 statement3 unique code statement4 statement5 [/code] Each function does similar statements at the beginning and end, but has unique stuff in the middle. Is there a … | |
Hello, for some reason the code I am trying to write throws an exception about using a priviledged instruction. Problem is it is just comparing two values and throwing this out there at me. Maybe I am completely missing something. Oh and I know its pretty ugly code, you don't … | |
Hi, My problem is that I have a large function with hundreds of lines. I want to break it apart into smaller functions. The issue is that if I make a module level function, the scope changes and I have to pass the necessary variables to it. This can be … | |
how to calculate the date by using integer variable which can know the lasted date for example user key in date is 2/20/2008 and he want know the after intvariable day is which date like this user key in date is 2/20/2008 - intvariable = date user require date dim … | |
I'm creating a website using JSP, HTML pages and MS SQL. Can u please tell me how to create a session and how to retrive it each time while checking user status i.e how to check if user is signed in or not? Please help. Thank you. | |
After the user has inputted their respective username and password, it will be validates and if the submitted information was true, they will redirected a page. Now, I just want to the the php code that captures the username and display it on the page. Like "Welcome BooBoy08 to here..". … | |
Hi I'm new in python and i'm do not understand why my code is not working. I want to generated random figures with this code: import random import division a1 = '' a2 = '' def zufallsZahl(a1,a2): a1 = random.randint(1,10) a2 = random.randint(1,10) print a1, a2 s1 = [a1, a2] … | |
I am supposed to write a program to show all possible color combinations, but I am having problems. It will give me all 256 colors, but not in all possible combinations. Here is me code. [ICODE] include irvine32.inc .data colors byte 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 .code main PROC mov ecx, 16 mov esi, … | |
Hi,I wish to make a configuration file for db connection parameters. I read about properties file.I have made a properties file that contains the following info--- String jdbcDriver="oracle.jdbc.driver.OracleDriver"; String connectionURLThin="jdbc:oracle:thin:@ hostname:AIPUAT1"; String DbUserId="abc"; String DbUserpassword="abc"; and saved it as DbConnection.properties. i have also made a java file that uses these … | |
Hi guys, I am a bit stuck and after some help. I studying through a book called practical web 2.0 applications. Through this book you build a full application as you are learning. Now I have got to a section and can't go further. When I go to insert data … | |
Can you please tell me how to encrypt and decrypt a password? I want to use it in my project(website). Please help. Thank you. | |
there are a way to clean all file with vb? Best regards. | |
what is the best language-related python library, with support for spell checking (aspell?)? | |
I need some assistance in getting this program to perform correctly. It's suppose to take a sentence, break it up and return each word in pig latin. Right now, the program takes a sentence such as Jump start your morning and it returns Jumpay startay youray morningay. It should return … | |
I have 2 strings, Text1 and Text2 below. What I am trying to do is to put these to a new string(Text1and2) so that string will contain this: "One,Two" I have began on some code and wonder if I am on the right track here. Later I will push_back it … | |
My VB code needs to copy a file from one location to another, and I can do this with FILECOPY just fine. What I'd like to do though, is invoke the Windows copy function, so that the user gets the whole 'transfers in progress' experience. Is there a way to … | |
I have to do a birthday project for by c++ class that allows the user to enter a birthay and dislay information about that birhday including the birhstone, astrological sign and the season which the birthday occurs. The main menu of the program should allow you to enter a persons … | |
I have tried debugging and optimizing this code, yet I cannot find the source of this error to save my life. I am getting a 'floating point exception' when I run the code pasted below. I am running with 'use strict' and 'use warnings'. My program takes a sequence and … | |
I have to write a programme. Whic is like this: You are write a program whcih uses the quadratic equation to solve second-order polynominal. wchich is a x**2 + b x + c =0 and use the quadratic equation, when given value for the coefficient a, b and c, to … | |
I am net to asp.net, I am having the following issue. I have developed a masterpage. The masterpage has a left navigation panel. I have another page that uses the masterpage and fieldvalidations in it as well, when I view the page it seems that the page with the navigation … | |
I have a problem with session in combination with DNS. I use have a webpage where some areas are restricted. So I use a log-in screen which sets the session username and writes the sessionid in a DB. When you try to access a restricted page, a script checks if … | |
I am having a problem with nested loops. When I run the program it gives me the first 16 results want then it prints out more values than I require. I want it to print out 16 values then stop. I also do not know how to change the foreground … | |
Hello DaniWeb users, I hope one of you can assist me. I did search and found nothing to help me. So below is my code and I am hoping that someone can please tell me what on earth I am forgetting. I have been playing with this for quite some … | |
I have a homework assignment to create a program to calculate the full date of Easter Sunday between the years 1900 and 2600. The following is the error I receive: error C2784: 'std::basic_ostream<_Elem,_Traits> &std::operator <<(std::basic_ostream<_Elem,_Traits> &,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_ostream<_Elem,_Traits> &' from 'std::basic_istream<_Elem,_Traits>' My … | |
I have just started using python and am stuck on a particular project. I have been stuck staring at my computer not knowing what to do. I will post details below. What I am trying to do is use a CSV file named country.csv in which information about countries is … | |
I have been trying to work on this calculator for a while and I need help. I'm getting "12" errors. I'm very new at this and I really need the help of someone that can please take the time to explain what I'm doing wrong. I would really appreciated. [CODE]/* … | |
I have a JSP which inserts date into a MS Access database. But I keep receiving the error: 24: statement.executeUpdate("INSERT INTO Questions WHERE ID ='"+ID+"'(\"Question\", \"Answer\", \"Timestamp\", \"Author\", \"Customer_Useful\", \"Customer_NotUseful\") VALUES ('"+Question+"','"+Answer+"','this has been updated','"+Author+"','0','0')"); I have checked and checked all the values are there and correct and that the … | |
I have two drop downs (the 1st pulls from 1 db table then populates the second which pulls from a 2nd db table) with the idea of having them both populate fields of a form on autopostback. The user will then fill out the remaining empty fields. I have not … |
The End.