199,114 Archived Topics
Remove Filter ![]() | |
I try to run but I don't can. > write a Java Program that calculates the length of a hypotenuse of a right > triangle.the method should take two arguments of the double and return the hypotenuse as double. import java.io.*; public class Hypotenuse { public static void main(String[] args) … | |
I need a reliable text editor where I can edit just the text & not the code. I don't like CMSs, so please don't even suggest them :) I was going to use Contribute, until my web developer told me it doesn't work with external PHP files. It would also … | |
[CODE]#include <vector> #include <string> #include <iostream> #include <windows.h> using namespace::std; class customer{ private: char type; double balance; public: void check_type(){ if(type=='p'){ if (balance<1000) { balance=balance-2;} else if (balance<1000) { balance=balance-5;} } } }; class Transactions{ private: char type; double amount; int houre; int minute; public: Transactions(char t,double a,int h,int m):type(t),amount(a),houre(h),minute(m) … | |
Hi everyone, i am building a secure online voting system for my project, i really need some tips on how i can go about encrypting the information stored in a database which contains the votes submitted by the candidates. I was told by my project supervisor to try and implement … | |
:?: I am new to this site but, I need help figuring out this simple form that is suppose to send the data to our school's server. The first one is my html form and the second is the asp file. I don't know how to get the simple form … | |
Hi, I am trying to get the file size of a .exe file in C, I have tried using the GetFileSize(); function using the CreateFile(); function to get a handle for it, but the value returned is a DWORD and doesnt seem to work when i output it. I want … | |
I am selling vBulletin on eBay ([url]http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=5650034687[/url]) and am wondering if I have to contact vBulletin first before I transfer it. The reason I am selling it is because I have lost the need for it. Thanks, Avrom | |
hi, How many libraries does java has for gui part of an application? I know about 2 of them, swing and AWT, but I dont knw the difference between the two? thanks :mrgreen: | |
HEELO , in my asp form i have following fields 1)Name (text box) 2)Job Title (text box) 3)company name (text box) 4)email address (text box) 5)telephone (text box) 6)nature of enquiry (combo box) combo box consist of following values a)sales 2)technical service 3)web development 4)employment opportunities basically my question relate … | |
to help me add some new features to my dating site, im tryin to add video chat, if u know how to do this or have some good idea pm me | |
Hi, I am tryiny to write a program which will allow me to upload a image and after which i had uploaded the image, I will be able to calculate the RGB values of the image which i have uploaded. The code works this way: //user to upload image file … | |
![]() | Hi, I so close to getting this to work. Basically, I trying to wrap my program up in a jar file. So that wen i doulbe click it, it executes. Much like c/c++ programs do. I can jar it up from the command line, but when i double click it … |
Hi, can someone point me to a good tutorial on using the CreateThread and CreateRemoteThread API? I've already read the MSDN documentation for both functions, i'm looking for a site that explains the use of both functions in more detail and provides alot of example code, thanks. | |
OK I wrote this query but i keep on getting error on it: [PHP]$query2 = "INSERT INTO ATTENDANCE (Class,Time,T_User_Name,S_Number,Absent,Date) VALUES ('$Class','$S_Type','$_COOKIE[User]','$S_Number','1','$Date')"; [/PHP] the error i get from php logs is: [28-Dec-2005 17:51:07] PHP Parse error: parse error, unexpected T_VARIABLE in /test/teachers/take.php on line 27 ------------------------- line 27 is the query … | |
Hello, in 'cpp' code if I wish to include a header file its .H...ie //function definitions are located in function.h . The implementation is loaded in functions.cpp, however some of the functions take parameters created in main. Therefore rather than including the following: [quote] #include <iostream> ... function.h function.cpp ... … | |
hi im new to jsp iam using netbeans. I have a image in C: called w.gif. in index.jsp i have <img src="C:/w.gif" alt="W"> but it doesnt show the picture. any help? thanx | |
Please help I keep getting this error message after compiling the following SimpleList.java C:\jakarta-tomcat-5.0.28\webapps\Ch04\WEB-INF\classes\Ch04>javac SimpleList.java SimpleList.java:21: cannot resolve symbol symbol : class Questions location: class Ch04.SimpleList Questions questions = new Questions(); ^ SimpleList.java:21: cannot resolve symbol symbol : class Questions location: class Ch04.SimpleList Questions questions = new Questions(); ^ 2 … | |
I try to run this program but I don't can. write a Java Program that calculates the length of a hypotenuse of a right triangle.the method should take two arguments of the double and return the hypotenuse as double. import java.io.*; public class Hypotenuse { public static void main(String[] args) … | |
I have a project in Borland C in which i need to Connect with SQL server 2000 plz give me the code for that. | |
******************************************************************************************** [center] The Programs and Files included are Copyright 2005, by ZOverLord This is a Proof Of Concept for Educational Purposes ONLY! [/center] Notes: This program is 4K big, as in 4,096 bytes and can do ANYTHING other Key-Loggers claim, this is Version 1.0, a Stealth version will be next … | |
I have a weird question. I'm trying to access a .txt file from a java applet, which would reside locally. When running this with the applet viewer, everything works fine. When you click on the .html file, however, you get an accesscontrolexception. I find it weird that the applet viewer … | |
Hi there, Here is a (hopefully) convenient description of my situation: - I have a main folder, containing several subfolders. - Every (sub)folder contains one or more .xls - Workbooks. - Every Workbook contains one or more different Spreadsheets. - The workbooks contain some cells which have Hyperlink addresses to … | |
I can do a control loop like this in C++ [CODE]int case =0; while( case<0 && case>20){}[/CODE] How am i suppose to implement this in Python? I didn't get any errors if i wrote this, the problem is it doesn't enter the while loop when case<0 and case>5 [CODE] while … | |
Hello, im new to this forum. I have an assignment for class that I am really confused with, please can you guys take a look and help me with the code or point me in the right direction, I am not asking anyone to do it for me...I ofcoarse wouldn't … | |
Do anyone know why i got this error ? Do i have to import anything in order to use string.lower() & string.upper() ? [CODE][color=RED]sentence = "how are you" newS = string.lower(sentence) NameError: name 'string' is not defined[/CODE][/color] | |
I have a JTree, the renderer uses JLabels. If I setOpaque(false), then I get display issues with highlighting tree nodes/leafs, so I keep the rendering of the jtree opaque. I'd like to display an image for the background and have the text from the jtree elements displayed over top of … | |
I have a databse in mysql and am looking to select the last 5 values in the database and there contence. How would i do this. Will be using php to do this. Thanks There is an incramenting variable called Id and could use that if possible. | |
Hello I'm having a stuggling implmenting some code...here's what I've got so far: [code] cout << "\n\nChoice" << endl; cin >> choice; while (choice!=0) { switch(choice) { case 1: cout << "Inserting manually..." << endl; // addmanual(); break; case 2: cout << "Inserting from file... "<< endl; cout << "file … | |
I need to help me by giving me a new simple idea for developing any of office programs such as powerpoint OR any idea for developing a program for developers with new thing? | |
if we use short then we can save memory.But eventhough if we use short it occupies 2 bytes of memory so how can we save memort? | |
int p(int x) { if(x<3) return x; else return p(x-1) * p(x-3); } say m(x) is a number of multiplication operations that the execution of p(x) performs. what can be recursive definition of m(x)?? Answer should be (x-1)*(x-3) . Am I wrong? | |
hi i want to : 1. view all the books 2. search for a book i have managed to complete part of this . the code is as follow: [CODE] #include <iostream> #include <fstream> #include <assert.h> #include <stdlib.h> using namespace std; const int BOOK_MAX = 5000 ; const int USER_MAX … | |
Hi every body I need to constract a code from this problem This question is based on Unit 2. A motor insurance company has surveyed a sample of its clients. The information on each returned questionnaire includes the following: o whether the client has had a claim in the last … | |
If I have a MFC program that opens a socket connection, how would I test to see if the socket has succesfully opened or not? | |
If I've got a vector of strings, is there a quick one liner that gets me the longest (ie .size() ) of the string inside (or conversely, the shortest?) The alternatives I've thought of are as follows, but they all seem inefficient: - Keep a variable of the longest size … | |
Hey guys, I have the following code, but for some reason it does not work with bigger txt files is this because of the size of the array? And if so is there a simple way to solve the problem? Thanks in advance for any help. [code] char ch[1000]; int … | |
Hi Everyone, I'm trying to create an instant messaging program, but for some reason the client and server won't connect. My code is below. Thanks in advanced for helping me. By the way, the client and server program are one in the same. A radio button gives you the option … | |
hey i own two forums that are the same, one is a free service with ads and stuff but its really good, i like all the features it has added to the admin panel [url]http://www.createforum.com/phpbb/index.php?mforum=ontarioforumtk[/url] then i have another one thats the same but paid for and hosted on one … | |
Hi guys, I have written a simple code here that should be able to display the image "tulips" from my database? But it does not work, wondering what is wrong with the code? <?php // database connection $host = "localhost"; $user = "user"; $pass = "password"; $db = "imagedb"; $table= … | |
I am looking for a very simple calander function that just reads info from mysql or txt file what ever is handier Can anyone recommend a setup? | |
I am still a bit of a newb, but am getting the hang of webdev. My problem is in changing/updating a user's password. The good news is that I know I am hitting the mySQL table b/c I am able to see data appended. However, that's also my problem. When … | |
i have a bunch of images 1.jpg, 2.jpg etc.. I have a class called banner and wondering how to get it to randomised threw the pics? Thanks | |
![]() | Hello I need help and fast, time is running me out. [B]StudentMark class[/B] A StudentMark object hasd three attributes:moduleNo(a string),studentName(a string) and mark an (int). There is a constructor which registers a student (studentName) with a module number (moduleNo) at the time of construction. There are methods that enable new … |
hi all, ive just started learning VB6 and have come across a problem or two. can you guys help. i am trying to create a countdown timer, i have made one with a timer and textboxs (5 textboxs, mmm:ss). but i have seen some examples using pictures as the numbers. … | |
hi i want to search for a specific shape in an image; the shape is an arrow and its stored in the database. the images taken from a moving camera. any comment may be helpful thanks | |
I am doing a project where I have the find the smallest value and the smallest object. In this project, you will write two methods. The first will take an array of int and will return the smallest value in the array. It will have a declaration as follows: int … | |
I just started both RMI and CORBA programming, yup normal basic Hello World from available tutorial at google achieve. But apparently none of them works. So could anyone pls let me know what or which software should i use ? current im having netbean 4.0 which wont work for both … | |
Hi, I have recently started windows programming in C/C++, I understand most of it, but 1 thing i cant find out how to do is to put controls on the main window of the application, not in a popup dialog box...can anyone give me any tips on how to do … | |
Hi everyone, I'm beginning to learn about progamming and I'm currently working through the seminal 'C Programming Language' which is excellent, but I have a problem regarding functions. My understanding of functions in C is that they return a value. For example: [code]x = func(a, b);[/code] ...would set x to … | |
Hi, I had written a small program in php, which will allow a user to upload an image to the database. My question is whether can i locate the directory of the image from where it was uploaded from? this is part of the code for uploading: " // Do … |
The End.