64,152 Solved Topics
Remove Filter ![]() | |
Hi all, I'm trying read in the contents of a series of text files located in a folder in the same directory as a jar file. I've been trying to work out how to do this for a while now, but to no success, so any pointers as to where … | |
I made this tiny code: [CODE] public class main { public static void main(String[] argv) { System.out.println("Hey"); } } [/CODE] It compiles and run fine in eclipse, but when i go into cmd and do javac main.java it created a main.class then I did java main.class but I get errors.. … | |
Hey I´m getting some errors, could anyone please help me to get rid of them? Main code [code] import javax.swing.JOptionPane; public class Kontotest { public static void main(String[] args) { Konto bok = null; String navn = JOptionPane.showInputDialog( "Skriv inn navn"); String nummer = JOPtionPane.showInputDialog( "Skriv inn kontonummer"); String saldo … | |
Is is possible to create excel file with multiple workseets using response.setContentType.? | |
Hi, all i want is to generate a random number/letter in listview per row but i don't know how to play for each.... coz' i have a list of record has already been exported to my gridview>listview so that's why there no ID for each row all i want to … | |
I have a form of c sharp, In winch I have Five Button.I want hit all buttons one by one dynamically. Please send me complete Code of c sharp. | |
Hello Everyone I Have Been Learning C++ For The Past 1 Year :D , So With This Much Experience Can I Make or Modify A Bootloader in C++ Paradon Me For My Bad English Any Replies Would Be Greatly Appretiated | |
I simply want to forward a request of one servlet to another servlet. Authentication Servlet gets a request from a jsp page and thus authenctication servlet passes the request to another Addtocart servlet. AuthenticationServlet Code: [CODE] RequestDispatcher rd= request.getRequestDispatcher("/Addtocart"); rd.forward(request, response); response.sendRedirect("Addtocart"); [/CODE] Addtocart servlet code: [CODE] String pid = … | |
Hi! I am animating on click, and when i click the element a box fades in, but i got a problem. Inside my div tag i fetch user info from a database, now if i try to click a member named Test i get the info from the Test user, … | |
Hello seniors, How are you? Well I need you help I am new student of php. Now I am trying to make user login system so that user can login through their password and user name. But I’m receiving this error. “ Fatal error: Cannot redeclare loggedin() (previously declared in … | |
Hello, I am not sure why, when I call my method, it goes into a continuous loop and prints out nothing. The operator - method is suppose to be able to subtract a Date object and a Date argument. I will clarify if anything needs clarifying, thanks for the help … | |
I having problem of sizeof returning a hexadecimal value which I want it return decimal here is my sample code: [CODE]#include <cstdlib> #include <iostream> #include "stringCascade.h" using namespace std; void StringCascade (void) { unsigned char ucA[] = {0x02, 0x6F, 0x09, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xFF, 0x00, … | |
Hi everyone, I'm just adding these two binary numbers and not sure about the sub-questions(a,b) of the question that are below: Q1 - What is the (5-bit) result of adding the 5-bit unsigned numbers 10001 and 00111? Answer: 11000 Q1a - What is the value of the carry in to … | |
Hi, I have two forms.Both having DatagridView.There are two comboboxes to filter the record from Database and fill in Datagridview.My requirement is when all the data is populated in DataGrid after selecting the comboboxes and when the user clicks on Delete. The comboboxes and Datagrid on second form should have … | |
I'm trying to code a traversal function for a huffman tree that will generate the code dictionary containing the binary codes for each letter in the tree. Once it hits a leaf node I want to insert the character and a QBitArray into the QMap that I pass in. The … | |
Hi all I try to copy paste from a site java example ,there are 3 files,Main.java,Login.java,and LoginDialog.java. I can compile Login.java ,but when I compile LoginDialog.java,it said that it cannot find symbol Login.authenticate (a method in Login.java) I have check that there is this Login.authenticate method to make clearer I … | |
What I want to do is have a predefined battle function, I can code the function, all I need to know how to do is have the function sitting there, so when I call it, all it takes is one or two variables to set up and go. So every … | |
Hello to all java programmers I have a java database problem specifically the auto increment. In my MSAccess I have a table named "[B][COLOR="Red"]Confirm[/COLOR][/B]" and in that table I got two fields, the "[B][COLOR="Red"]confirm[/COLOR][/B]" which is set to text and the "[B][COLOR="Red"]id[/COLOR][/B]" which is set to auto number or auto … | |
Obviously, it should be titled: "Steak and Chicken Dinner Problem" A wedding reception will have 200 guests and the dinner budget is $9,000. [CODE]Wedding Catering Prices: =================== Chicken Dinner: $40 Steak Dinner: $50 [/code] What is the highest number of steak dinners you can serve at this reception, and stay … | |
Hello there, I'm not too entirely familiar with the operation of scheduled tasks within Windows XP and I'm tasked with finding an operable solution. Firstly, a couple things come to mind: 1. Start the process with windows using a low priority and sleep until it is time to function. This … | |
Ok so i just started taking AP Computer Science at my high school and I really have no experience with java (just a little bit with python). So for our fist homework we had to try out a few codes and make some programs. I'm getting a " <identifier> expected … | |
Hi! I believe you can help me... I need a code that can check user information. e.g. user fillout the input field with his idnum. Once the user goes to the next field, information from mysql db will appear showing the name of the person. In that way, the idnum … | |
Hello, I'm new to C++ with a fair experience in java. I would like to know the difference between [CODE]Ob o* = new Ob();[/CODE] and [CODE]Ob o = new Ob();[/CODE] I know the first allocates a block of memory and creates a pointer which keeps the address of this block. … | |
Hello, I am having the same problem. getting the message: Parse error: syntax error, unexpected $end in C:\wamp\www\World_Database.php on line 79 I am an absolute beginner. Could someone please help me sort this? thanks a ton in advance. Here is my code. [CODE]<html><head><title>World Database</title></head> <body> <?php include"file:///D|/PHPMySQL/connect_info.php"; $linkID1 = mysql_connect($dbhost, … ![]() | |
Here is a part of code I am writing.I am getting a segfault in the CmpFunc function. The segfault occurs when I compare *a and *b i.e in the "if(*a>*b)" line. I am new to function pointers. So, I might be making a mistake somewhere which I don't realize.I would … | |
Hi I have implemented an iframe that contains several links to other pages. I can't change the content of the iframe because it's on another server. Here you can see an example of the code for one link in the iframe: [CODE] <a href="javascript: void(0);" onclick="openUrl('http://www.streambeam.org');" title="">Link 1</a> [/CODE] Now … | |
[CODE]use strict; use warnings; use IO::Socket; my $sock = new IO::Socket::INET( PeerAddr=> 'localhost', PeerPort=> '7070', Proto => 'tcp'); die "Could not create socket: $!\n" unless $sock; my $run = "yes"; while($run eq "yes") { my $text = <STDIN>; print $sock "$text"; print "Send more strings? yes/no"; $run = <STDIN>; } … | |
Ok, I want to read integers from a text file...a large sum of integers. The input is a regular text file, where each line is terminated with an end-of-line character. The file is gonna contain any valid ASCII symbol between 32 and 127. A number of strings ( no negative … | |
Greetings all, I have a great website up and running that lets people take a quiz. Everything is working perfectly, this is more of a aesthetics issue, and its very simple but I can't find the answer. When they leave a field blank, I have a die command that stops … | |
Hello My problem is I am calling a method in my main but this method doesn't have any code written in it, and yet I am getting an output of numbers approximately 10 digits long, and a negative value. For example, in my main I have: [CODE]Date d1(9,20,2011); // Date … | |
I'll get straight to the point, here's how I've coded my mailform: [CODE] <html> <body> <?php $email = $_REQUEST['email']; $subject = "Contact Us Query"; $message = $_REQUEST['message']; $message = stripslashes($message); mail("myemail@msn.com", "$subject", $message, "From:" . $email); header("Location:success.php"); ?> </body> </html> [/CODE] My problem is that although the emails get sent, … | |
Greetings all. Trying to use PEAR mail to mail some results of a quiz I have designed for students, when I get the following message: "Warning:require_once(Mail.php)[function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\results.php on line 81" followed by "Fatal error:require_once(function.require]: Failed opening required 'Mail.php'(include_path='.;C:\xampp\php\PEAR')in C:\xampp\htdocs\results.php on … | |
What is the difference between oracle and sql? I am new to this field.Please help!!!!!!!!!!!!!!!!!!!! | |
guys i just wanted to know that can we study algorithms with out studying discrete maths first? | |
what is the problem with this it is printing only the first node data :( .some one pls help me...[CODE]#include<stdio.h> #include<stdlib.h> struct node { struct node *prev,*next; int data; }; void create_list(struct node *list,int n) { struct node *n1,*n2; int i; n1=list; printf("enter the data for the 1 node:"); scanf("%d",&list->data); … | |
I just stumbled over this: [ICODE]mysql> select "abc" = 0; +-----------+ | "abc" = 0 | +-----------+ | 1 | +-----------+ 1 row in set, 1 warning (0.06 sec) mysql> show warnings; +---------+------+-----------------------------------------+ | Level | Code | Message | +---------+------+-----------------------------------------+ | Warning | 1292 | Truncated incorrect DOUBLE value: … | |
I realize there are many ways to store large numbers in c++ (and by large I mean too large for long doubles), but none of them were really what I was looking for. I don't just need to store large numbers in which case I would use GMP or something, … | |
Guys, How to make an scripts if itemnumber have no '-U' then i will place this on the right side while if there's an exising '-U' then no replacement to be done. [CODE] ItemNumber ------------------ P300-4410-DROIDERIS P300-4110-TOUR P333-4410-EVO-U P333-4129-8530PUR-U P333-4170-9330GRY-U P333-4110-8350-U RESULTS: ItemNumber ------------------ P300-4410-DROIDERIS-U P300-4110-TOUR-U P333-4410-EVO-U P333-4129-8530PUR-U P333-4170-9330GRY-U P333-4110-8350-U … | |
Hi i need to create about 100 files in a numbered sequence like : file1.txt,file2.txt,file3.txt . so how can i create these files using c#. | |
[CODE] int i=5,j=10; printf("%d\n",(i=15)||(j=26)); printf("%d %d\n",i,j); [/CODE] THe output I expected was : 1 15 26 The actual output was: 1 15 10 In (i=15)||(j=26), shouldn't the brackets be done first?Isn't that the precedence order? So,first i must take 15 then j must take 26 then the || must be … | |
Hey im working on a code where i need to get a certain column of a 2d array and create a 1d array with the information. The information im using is a product list in an aray in thsi format [barcode][price][stock] Now i need to grab the bar codes of … | |
can anyone explain me how to use the inline function in c++ code with example? | |
Hi, I want to fill data in my combo box using Add range method. [CODE] cboFirst.Items.Add("Sunday") cboFirst.Items.Add("Monday") cboFirst.Items.Add("Tuesday") cboFirst.Items.Add("Wednesday") cboFirst.Items.Add("Thursday") cboFirst.Items.Add("Friday") cboFirst.Items.Add("Saturday") [/CODE] This is how im filling my combo with days. i want to do the Same but by using Add Range Method. Please guide how,its urgent. | |
My application get crashed as soon as I attempt to see Crystal Report. Environment: Windows 7 CRRuntime_64bit_13_0_1.msi (SAP Crystal report installed) .NET 4.0 WPF Application Can anybody tell me whats should be the reason of crash and what to do? | |
hi all.... i want to add 01+1 and my desired output is 02. my code is var t=01; var t2=t+1; alert(t2); the alert value is 2. I want 02....what will i do? thanks in advance.... | |
Hi all, pretty new to sql. have made code already for showing, adding and deleting data from database but can't seem to make the update work. any help is much appreciated. here's what I have: [CODE]<html><body><form action="update.php" method="post"> <label>Person ID:<br></label> <input type="text" name="personID" size="40" value="" maxlength="150" /> <label>Customer Name:<br></label> <input … | |
I have a table called [COLOR="Red"]school[/COLOR] and a table called [COLOR="red"]students[/COLOR]. I have a foreign key in [COLOR="red"]students[/COLOR] called [COLOR="Green"]school_id[/COLOR] which is connected with table [COLOR="Red"]school[/COLOR] , field [COLOR="Green"]id[/COLOR]. I made a form where field **[COLOR="green"]title[/COLOR]** appears to the registration form of the [COLOR="Red"]student[/COLOR]. The problem is that i want … | |
hi someone help me with this error:( Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\CDX\class_lib.php on line 57 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\xampp\htdocs\CDX\class_lib.php on line 57 [CODE] <?php class contactdirectory{ private $db_host = 'localhost'; // Database … | |
Hi, this works well on my localhost but when I upload it to my web server I get: Parse error: syntax error, unexpected T_STRING in /home/zupa/public_html/grafika.php on line 1 This whole xml thing is new to me and I really dont know why doesnt it work on my server (while … | |
This is my prompt. Write a program that asks the user how many twin primes the user wants to find, reads in that goal, and then successively examines the numbers starting at 2 to see if the number is a twin prime. The program stops when the specified number of … |
The End.