199,114 Archived Topics
Remove Filter ![]() | |
Hi, I want to read an integer value from console, but my input returns the ASCII value of integer, Please Help me. [CODE]import java.io.*; class Test{ public static void main(String args[])throws IOException{ BufferedInputStream br=new BufferedInputStream(System.in); System.out.println("Enter an Integer"); int i=br.read(); //int j=(int)i; System.out.print(i); } }[/CODE] Thanks | |
i have apache server and i want to access database by jsp what can i do please gve me steps actually iam at intially stage in jsp | |
hi everyone, i need help with an assignment that i'm having trouble with. I need to create a class called Money whose objects represent amounts of money, with two instance variables of type int for the dollars and cents in the amount of money i got the constructors down but … | |
Hi Once I complie below coding part,it give me error meassage.The Error Meassage is Error . [COLOR="Red"]The name 'CurrentOutLet' does not exist in the current context[/COLOR] BelowI write my coding [CODE]. public SqlDataReader Current_outletReport(string code, string startdate, string enddate) { try { SqlDataReader CurrentOutLet; SqlConnection con; string str = "SELECT … | |
Hi, I am comparing two file to find if they have common strings. My program is not doing that and I cannot figure out the reason. Any help is appreciated. Following is my code: [CODE]int main() { FILE *inf1 = fopen("file1.txt","r"); FILE *inf2 = fopen("file2.txt","r"); int numcols = 11; char … | |
Hello everyone! If you guys have a sec, can you help me out with some URL rewriting? I am transfering a site from typepad to wordpress for someone and the typepad links to post look like this: [url]http://www.domain.com/directory/year/month/post-title.html[/url] A wordpress link would look like this: [url]http://www.domain.com/year/month/post-title[/url] there is no extra … | |
i've got this last year question from my senior. i've tried to solve it on my own but i think it's not suit with level now. so, anyone please could help me to write the codes as my final exam is coming soon. kindly post the solution through this site … | |
Hi Again, Is there anybody out there who wants to discuss visual basic ? I don't have any formal training, but I have a deep interest in all aspects of programming in VB. So if anyboby has the same interest and feels that you can teach me a thing or … | |
hello, I've been pondering on a thing here for while now. The thing is that I want to read in several of integers, which I've fixed. And the problem now is that I want to output the integers I have input. The thing is that I only want to output … | |
hi , I need to know how can I connect Microsoft access with VB,I need to have wide space in programming in MS access...regards | |
hi i really need help i am really lost in this program if any one can help me with it plz contact me on my email [I] <<mail id snipped>>[/I] (using c++ program) 1. Write a computer program that implements the recursive merge sort. The input to the program must … | |
Hi I just finished reading C++ the complete reference by herb schildt (almost a quarter ago)so i feel i can program in c++ but i don't know what to write.could you give me some problems that their answers involve a lot of c++ features? thanks a lot | |
I am trying to write a math tutoring program for students. A very basic outlay of ceretain components. This program should have the user select addition, subtraction, multiplication or division. user should also have the capeability to exit the program and quit it. I tried writing some code for this, … | |
python program to engage a user in conversation.requirements are a. firts question should ask the user for name .this name should then be used with the following questions b.Ask 4 more questions c. Each question should have 3 possible answers.That us option A,B or C(only) d. Have a different comment … | |
I have to write a class for a new "home-made" string class, and I do not know how to attack the operator>> . I will provide my class constructor and what i tried... [code] String::String( const char A[] ) { char X = A[0]; int pos = 0; Length = … | |
I'm trying to write a simple deque program that lets you add/delete numbers and display them at will. The code is as follows. User.cpp: [code] #include <iostream> #include "Doth.h" using namespace std; int main() { char choice='m'; int n; Deque call; while(choice!='q'||choice!='Q') { cout<<"Menu:"<<endl; cout<<"[A] Add to the front"<<endl; cout<<"[B] … | |
[COLOR=black]Hey all i am trying to make an XML file but I'm getting an error. The error is [/COLOR][COLOR=black]The XML page cannot be displayed [/COLOR][COLOR=black]Cannot view XML input using XSL style sheet. Please correct the error and then click the [/COLOR][URL="http://javascript<b></b>:location.reload()"][U][COLOR=black]Refresh[/COLOR][/U][/URL][COLOR=black] button, or try again later. [/COLOR] [COLOR=black]A name contained … | |
Hi Everyone! I have a general database question, I'll try to keep it short :) I am building a social site where users can log in and add status messages (like twitter), share photos, keep a blog on site, and so on. I will refer to these as element types … | |
does anyone have a function laying around to secure delete a file from the hard disc with X passes of random data? ive been trying to find this code forever on google, and everything I have found has just been skimpy .NET programs | |
Hi, I'm not sure if this shpould be in PHP or here so apologies if I'm in the wrong place. I'm trying to encrypt a password and insert it into my database along with other data. Everything works when I remove the md5 password encryption. It doesn't work when I … | |
I am working on a program and need to make a friend, deconstructor, and copy constructor..... I was given this formula for the destructor and completely confused... cout << value1 << value2 I also do not seem to see a whole lot of information on copy constructors and friends so … | |
0x241f8e0 0x241f8e4 0X241f8e8 0x241f8ec 0x241f8f0 0x241f8f4 0x241f8f8 0x241f8fc 0x241f900 0x241f904 After printing adress of a 2D Array of size 2x5... this is the out-put printed...can someone help mi with explaining the trend.....Is it something like printing consecutive memory blocks??? please help mi out of my confusion..... thanks in advance for … | |
Let say I have a line for numbers 2 4 5 8 7 9 1 3 and i want to sort them in numerical order how would i do this? I found a similar topic but it was of no help someone said to do bubble sort and then everyone … | |
Hello friends, I need an urgent help.I'm doing a project in asp.net which uses vb.net as back end language.I'm using sql 2005.My problem is that I can't retrieve the data from database,but I can insert the data into the table. [code=vb.net] Partial Class MasterPage Inherits System.Web.UI.MasterPage Public login As New … | |
Hi Everyone, New ASP.NET (C#) programmer here. Have a quick question that I'm sure you all will laugh at me for asking :) I'm using a Master Page to control my site's pages. On the master page I have a User Control that consists of two Labels, one for success … | |
how can threading in python help me in my traffic simulation project? can i use it to detect other cars? | |
Hi all, I'm working on a programming assignment for class and after trying a few things on my own I got stuck. Basically my function will take a string and count the number of times each word in the string occurs in the string. For example this string: The brown … | |
Dear All, I want to open another exe file in my C++ program. Let the exe file be A.exe. So I used shell execute inside my C++ program to open the file but as A.exe writes in a file certain data that I will use in the next step of … | |
Alright, I've started learning array recenetly and have to write a program using them. I am having problems getting started on it, the notes we received seem very unclear. Here is the link to the instructions I have to use. [url]http://www.cs.niu.edu/~abyrnes/csci240/pgms/240pgm7.htm[/url] Basically I just want some pointers to get me … | |
SQL QUERY [code]if ($_SERVER ['REQUEST_METHOD'] == 'POST') { if ($_POST['mylist1'] == 'm2') { $sql="SELECT Products, TABLE 1"; $rs=odbc_exec($conn,$sql); odbc_result_all($rs); echo 'With this package you can registar for any of our domains'; } elseif ($_POST['mylist'] == 'm3') { $sql="SELECT Products, Table2"; $rs=odbc_exec($conn,$sql); odbc_result_all($rs); echo 'With this package you can registar for … | |
Guys...I am writing a program in Java which includes writing different panels where i need to pass values from one panel to another. i.e I have got a combo box to choose a title and i need to get the performances for that title in my next panel. So can … | |
I am writing a program to record score of a cricket match. One array stores information of batting teams and the other array stores information of bowling team. The program has to read the information of the teams and depending upon the user’s choice, it must displays either the batting … | |
Hey every1, M new to this community, hope you'd help me out. I gotta develop a mini projecy on media player that could be online and play various formats. I know that i'bve to include certain codecs, of which i'ven't got ne slightest idea. Can any one pls help me … | |
Hello, I am in a database design dilemma. In a web application I'm going to make, a table will be used to store colors. The stored colors will be in varying color systems (RGB, HSL, CMYK and LAB and/or HSV might be added later), so an enum field will be … | |
I have the following code that executes an sql stored procedure and I pass a customer name and customer contact to the procedure to use to create a new record in a table. When I execute the stored procedure in sql it inputs the customer and contact in the new … | |
Hey Guys, I was wondering could someone point me in the right direction. Getting an error: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM. What my code is doing is checking for the earliest date in one table(tblBookedTimes) and assigning this to earlydatestart. Then I want … | |
[ATTACH]9572[/ATTACH] Hello basically ive parsed a website's data into an object. I wrote it to file and read it back in to write to a dictionary. but when i read it in it reads it like 3 times. so im a bit confused as to why ad would like to … | |
so i have this animation (yes i know its very long): [code=animation] begin; {main program starts} clrscr; {clears screen of any text} textcolor(9); {turns the text blue for the logo animation} writeln('MMMMMMMMMMMM MMMMMMMMMMMMM'); {logo animation starts} delay(logo); writeln('MMMMMMMMM MMMMMMMMMM'); delay(logo); writeln('MMMMMMM MMMMMMMM'); delay(logo); writeln('MMMMM8 ..MMMMMM'); delay(logo); writeln('MMMM. MMMMM'); delay(logo); writeln('MMM, … | |
Hi there, Can any one help me, I am trying to import a wave audio file apparently I have to remove the header file or something like this can any one advised me please. | |
Running this file returns the error: Exception in thread "main" java.lang.NullPointerException at Packet.<init>(test.java:20) at test.main(test.java:46) here: line 20 : this.data[i][j] = data[i][j]; line 46 : Packet packet = new Packet(4,data,count,column); can anyone help ma how to create this constructor that accepts String[][] ? [code] class Packet{ int op_code; String[][] data; … | |
I created a html form and i want to submit the form automatically. So i used Javascript. I add that html form in java using JEditorpane, but JEditorPane doesn't support javascript. i heard that there is Rhino package which supports Javascript. But I dont know how to add Rhino in … | |
Hello there, I am in the need of some serious guidance/advice/direction. I am comfortable and familiar with creating DB's, however my knowledge/skills/abilities simply revolve around MS Access. I have been approached by someone that wants their existing web based DB to be overhauled. They have provided me with a very … | |
Alright, I need to create an N-ary tree that contains a list of words all of the same length so that we can create a word ladder from it. Given a word (like cat), we are suppose to put that as the root and from a dictionary we are given, … | |
Hi everybody, I just want to know whether playing brainstorming game like Sudoku or chess can improve programming concepts. In my opinion, I don't think the way of thinking in programming concepts and in playing chess are the same. Let me know your discussion. Thank you all. | |
Hi everybody. I am a student in computers at the Hebrew University in Jerusalem. I started to work with Java - and working with Product Version: NetBeans IDE 6.5 Java: 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16 System: Windows XP version 5.1 running on x86; Cp1252; en_US I have an urgent … | |
Hello I want that the user should specify the full url to 2 images in 2 text boxes, and these images should be set as the hover image and background image respectively, for a div. How will this be coded Regards Arvind | |
hi, I'm trying to run my 1st servlet I'm using eclipse and tomcat but I get an error that I cannot solve. can anyone tell me what I'm missing? here is my index.jsp [code=java] <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> … | |
Can anyone suggest a book from which I can learn Window based C programming ? | |
please help i think d error is in inputtin d values into d linked list! D files are attached | |
I am trying to make a simulation of the enigma machine and was wondering if this is the right way to start the problem? Here's the main.cpp file: [CODE] #include <iostream> #include <ctime> #include <cmath> #include "enigma.h" using namespace std; int main () { enigma machine_1; return 0; } [/CODE] … |
The End.