199,114 Archived Topics
Remove Filter ![]() | |
Hi there, I seem to be having problems multiply two BigDecimal numbers without loss. Can anybody explain to me how to do this, please? | |
I'm trying to write a program which will always loop. Besides that, i also use a function called wait() within the loop. The wait() function is to make sure the loop runs once each second. But one problem arise: The program used up all my CPU usage until 98% all … | |
I need to know how to have the user answer a question using yes or no and the program translating it into 1 or 0. I know this process involves a string... but anymore than that and I'm kinda lost. **Fixed second problem with the if else statement but still … | |
Hi I have issue regarding the mail, which is not sending to my mail account. 1. <html> 2. <body> 3. <?php 4. if (isset($_POST['email'])) 5. //if "email" is filled out, send email 6. { 7. //send email 8. $email = $_POST['email'] ; 9. $subject = $_POST['subject'] ; 10. $message = … | |
i came into Assertion failure during running this program, and i really don't know why, hope you guys can help, thanks a lot ^^ The program is to copy a linked list from another, the Copy function may look complicated because i'm not experienced enough to simplify it.. Without the … | |
Hello there, is it possible for javascript to lock a mouse when you click on a button or a div? I was doing some google search but I failed to find a script for locking a keyboard or mouse. I just would want to add this feature on my site. … | |
does anyone know how to have IDLE or Ipython display a string with line breaks as multiline text in the display rather than a big string wrapped around with '\n's? Instead of [code] return false;\n }\n\n function validPeriod() {\n for (var i = 0; i < periods.length; i++) {\n [/code] … | |
Greetings everyone. I have been working on a script to convert a number from any base to any base up to base62. The user supplies the original number, the starting base, and the end base. My problem arises when converting the fractional part from base10 to the end base; the … | |
Hi, Can any one help me out with a code which will take data from a CSV file and form a XML? | |
HI all, Durig my development of a software I require a OLE field in MS Acess table, which is supposed to have MS Word documents stored in it. Can anybody help me in telling how to display, edit, save and retrieve the OLE Field in MS Access from within VB … | |
in turbo C++ there is a function called delay(); and in microsoft compiler i guess it is sleep or msleep. what could be the possible equivalent function which can be used when compiling in GCC. using the looping technique will give different time difference in different machines. is it true? … | |
[COLOR="Red"]Poly.h[/COLOR] [code=cplusplus] #include <iostream> using namespace std; #ifndef POLY101 #define POLY101 class Poly { [B]private:[/B] int order; double *a; // Coefficient vector -- a[0], a[1], a[2], ..., a[order] // to represent a[0] + a[1]*x + a[2]*x^2 + ... public: Poly(int = 0); // Default constructor Poly(const Poly &p); // Copy … | |
Hi, i was looking on the practise question sticky and i came across this question, Write a program that allows you to input students' scores and weights. The program should then calculate a weighted average and score based on the data inputted by the user. (Beginner) I'm not going to … | |
Hi all, I'm new here, but I've been designing web pages for a while. I just have a few questions regarding pull down menus. I want to design my own (learn the concept etc.), but I'm kind of confused on what to use to make them: Jacascript, ASP, DHTML? What … | |
Im stuck on this problem for an assignment and am looking for a push in the right direction. Write a value-returning function, isVowel, that returns the value true if a given character is a vowel and otherwise return flase. | |
I need help with this script i got from dynamicdrive.com my main issue is, that besides folding out like that, i need it to swap the image too. because i have created open and closed states for each of the buttons on there. i need it to do the current … | |
If i have 2 array contains data 1 50 2 30 3 40 4 70 if I want to sort in descending order which take nombor and data together... 4 70 1 50 3 40 2 30 How??? | |
Hello guys. I needed some help with my calculations. I'm having a problem with having my output display the total amount. I believe the problem is coming from trying the float calculation. | |
In my program, I pick a pivot p from a database S of strings, compute the median r of the distances of the string objects to p and then divide the objects into roughly equal-sized subsets S1 and S2 as follows: S1={o ε S \{p}|d(p,o)<r} and S2={o ε S \ … | |
Hey guys, I'm trying to work on this switch menu and I'm not sure how to call a function with parameters from a case statement. Here is the code for my program so far (not finished with the actual program... Just need help with calling functions from the menu, so … | |
I am currently working on creating a new game using VB.NET 2.0 framework in visual C++. Does anyone know of any Visual C++ codes I could use to help? I have also downloaded the Dark GDK gaming extension for visual C++ 2008 can anyone help me? | |
Have been searching all over the web for this, no luck yet.... I'm starting a site, obviously have no members yet. But, the amount of members I have will be important in attracting new members. Where can I find an automated profile generator, or can someone point me to a … | |
:( Experts I am a civil Engineer trying develop a project in VB-6 for irigation management.Please help me to run a fortan77 program in VB6 environment using data file from user in runtime. Minimum Give me real steps and code .Kindly help me. Pratap | |
I have to write a program that created 2d array but store all data in a dynamically allocated 1d array. I have function definition and I know how to write up other functions but I need to overload operator() to aceess the array. Here is the definiton : [CODE]public: Array(double,double); … | |
Can all for statements be written as while statement. Vice Versa? | |
I need to design an Ages class with fields to hold 3 ages and includes a constructor, accessor and mutator method. Also needed is a method that returns the average of the ages. I also need to write a demo class that creates an instance of Ages class. The demo … | |
Hi Guys, I am trying to read each line from a file into a Sybase database table. I'm trying to implement string tokenization so i can format each field correctly because i was getting datatype violations :S The code I have is: - [code] if ((infile=fopen("datafile","r")) == NULL) { printf("Unable … | |
Please see my code : [CODE] using System; using System.Collection.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void cmdtam_Klik(object sender, EventArgs e) { string cstr; cstr = "data source=knight;initial … | |
i'm writting some kind of intelligent pointer suppose user put const Class as typename T. how to remove const part of T? | |
Hey everyone, I'm a brand new member who is desperately trying to pass a class in VB.Net. My problem is that I need to create a program that allows the user to select a name from a ComboBox, this selection will trigger an image change in a PictureBox. I've set … | |
Dear friend it is days that i couldnt find any solution for my problem. I use: [CODE] while ((line = reader.readLine()) != null){ StringTokenizer tokens = new StringTokenizer(line," "); System.out.println(tokens.nextToken()); } [/CODE] this loop for reding all inputs of file but this loop only shows the irst token of the … | |
![]() | I've got a problem in that I have a dll I've created and most of the functions work without any problem. There is only one function that throws the exception stated in the subject, NoClassDefFound. I've checked the classpath along with all the other things I can think of, obviously. … ![]() |
hello people i basically i need some information ive got a booking website which allows users to book a hotel room but once they book the room i dont want that room available to anybody else, im using Mysql databse linked to php, in the database i got a colum … | |
Im getting a NullReferenceException when I goto add a product to my cart, i get the error when i come to this part [CODE]cart.AddProduct(productnumber, name, price, prodQty, knobColor, finishColor)[/CODE] I use extremely similar code in another one of my projects and do not come across this problem, I have also … | |
I am writing a program that will take input from the user in the form of a tree-view and create a form and a database based on the tree-view. I have everything working except the group-box control for the boolean expression. I will give a sample code of the text … | |
please help me in finding the proble in the following code import java.awt.*; import java.awt.image.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; class button extends JButton { public button(String s) { setName(s); setVisible(true); } } class label extends JLabel { public label (String s) { setText(s); setVisible(true); } } class loginform … | |
Im taking an operating system course. i understood the code that solved the consumer - producer problem using semaphores. but what i didnt understood is where do we use these codes...what kind of processes uses this code ? | |
The following steps describe how to derive the approximate area of x^2: 1. Determine how close the approximate area needs to be to the true area (tolerance): User Specified Accuracy Difference is LESS THAN accuracy = 1 0.5 X 10-1 = 0.05 accuracy = 2 0.5 X 10-2 = 0.005 … | |
Can anyone show me how i can view the images which i sent to msql database, i open the msql console, and type the folowing but nothing displayed: >SHOW DATABASES; >USE photos; >DESCRIBE image; >SELECT id,image FROM image; then the id displayed â„– 1,2,4,5,6,7,8,9 numbers of images i sent to … | |
i don't know if i should post it here or in C++ , but please help me, i came into Assertion failure during running this program, and i really don't know why, hope you guys can help, thanks a lot ^:)^ The program is to copy a linked list from … | |
It is always possible to create a Vb program and Hide its Visibility or make it not to appear on the task bar. But what is eating up my mind is how to make it not be seen with the taskmanager!! | |
Hello, I need some help....I have to create part of an application that uploads an MS Excel file, and stores the data into a MySQL db...and I have no clue where to start... | |
Hi there, I am developing a simple application using C#, which perform simple function to the user, it must save some information about the user , the info needed to be permanently saved (but could be changed from time to time by the user) but the application cant work unless … | |
Hi everyone! I'm trying to write a program which can run a loop without interrupt but still can accepts input from user anytime. My program is like this: A bunch of word will drop down(using looping) User have to enter letters for each word but the words will still continue … | |
My code only inserts the last value of the array into the database column. Even though when it runs for the foreach loop it echo's each of the expected values out of the array. I'm pretty new to PHP so I'd be grateful for any help with this. Thanks NH … | |
hi the below code is used to read a uploaded file and print the first three lines in a document, it is working fine in a txt file .i have written the else part for doc file....it is working but junk values are also getting printed [CODE] <?php $lines=file('http://www.wb.com/judson.doc'); $lin … | |
the problem i am facing is that i need to set a page which has mysql in it to retrieve images from a database as a newsletter. i am at the stage where i have all the application set up and it works how it is meant; but it will … | |
[code="Java"] public void actionPerformed (ActionEvent e) { String hostServer, fromEmail, fromTo, contentSubject, contentMsg; if (e.getSource()== btnSend) { hostServer=txtHost.getText(); fromEmail=txtFrom.getText(); fromTo=txtTo.getText(); contentSubject=txtSub.getText(); contentMsg=msgArea.getText(); // Establish a TCP connection with the mail server. Socket soc = new Socket("" + hostServer, 25); // Create a BufferedReader to read a line at a time. … | |
What advantage does PHP have over Cold Fusion besides being free and Cold Fusion cost money. I see alot of examples of procedural scripts in PHP whereas Cold Fusion has MVC framework type Fusebox with its standard installation. Does PHP have anything like that with its standard installation? | |
I'd like to learn about making an RPG old style like Final Fantasy on NES. But I don't know where to start ! I'm ready to put the effort needed in it, but can someone help me get started ? I don't have problem with the story or thing like … |
The End.