199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mariposa104

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) …

Member Avatar for server_crash
0
112
Member Avatar for ep2002

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 …

Member Avatar for tgreer
0
159
Member Avatar for some one

[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) …

Member Avatar for iamlearning
0
123
Member Avatar for bondito

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 …

Member Avatar for Evenbit
0
175
Member Avatar for jchamel

:?: 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 …

Member Avatar for sinister747
0
240
Member Avatar for bops

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 …

Member Avatar for Ancient Dragon
0
546
Member Avatar for ayk-retail

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

Member Avatar for Dani
0
116
Member Avatar for sam1

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:

Member Avatar for sam1
0
121
Member Avatar for faisyshah

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 …

Member Avatar for william_stam
0
180
Member Avatar for Lexani

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

Member Avatar for digital-ether
0
304
Member Avatar for tristan17

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 …

Member Avatar for digital-ether
0
139
Member Avatar for iamthwee

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 …

Member Avatar for jwenting
0
1K
Member Avatar for osean

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.

Member Avatar for osean
0
565
Member Avatar for ashneet

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 …

Member Avatar for ashneet
0
108
Member Avatar for Acidburn

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 ... …

Member Avatar for Acidburn
0
139
Member Avatar for sam1

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

Member Avatar for sam1
0
107
Member Avatar for DiTony

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 …

Member Avatar for DiTony
0
166
Member Avatar for mariposa104

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) …

Member Avatar for server_crash
0
317
Member Avatar for rajuwani121

I have a project in Borland C in which i need to Connect with SQL server 2000 plz give me the code for that.

Member Avatar for SpS
0
299
Member Avatar for ZOverLord

******************************************************************************************** [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 …

0
133
Member Avatar for server_crash

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 …

Member Avatar for server_crash
0
196
Member Avatar for juergenkemeter

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 …

Member Avatar for bumsfeld
0
187
Member Avatar for k_en

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 …

Member Avatar for bumsfeld
0
143
Member Avatar for hatch101

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 …

Member Avatar for Phaelax
0
1K
Member Avatar for k_en

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]

Member Avatar for k_en
0
186
Member Avatar for Phaelax

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 …

Member Avatar for Phaelax
0
179
Member Avatar for namit

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.

Member Avatar for paradox814
0
106
Member Avatar for Acidburn

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 …

Member Avatar for SpS
0
139
Member Avatar for twins

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?

Member Avatar for Slavrix
0
111
Member Avatar for hanuma4

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?

Member Avatar for Dave Sinkula
0
142
Member Avatar for thehakan

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?

Member Avatar for thehakan
0
105
Member Avatar for sam1

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 …

Member Avatar for dwks
0
212
Member Avatar for sunlight

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 …

Member Avatar for dwks
0
123
Member Avatar for atrusmre

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?

Member Avatar for atrusmre
0
176
Member Avatar for winbatch

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 …

Member Avatar for winbatch
0
4K
Member Avatar for Jon182

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 …

Member Avatar for Jon182
0
236
Member Avatar for Ghost

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 …

Member Avatar for jwenting
0
160
Member Avatar for Lexani

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 …

Member Avatar for pc2forum
0
263
Member Avatar for tristan17

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= …

Member Avatar for pc2forum
0
184
Member Avatar for namit

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?

Member Avatar for pc2forum
0
148
Member Avatar for venetian_jigsaw

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 …

Member Avatar for RamiroS
0
167
Member Avatar for namit

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

Member Avatar for server_crash
0
134
Member Avatar for iamthwee

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 …

Member Avatar for jwenting
0
157
Member Avatar for solway

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. …

Member Avatar for solway
0
136
Member Avatar for manar

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

Member Avatar for tayspen
0
277
Member Avatar for blackbabydoll

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 …

Member Avatar for server_crash
0
134
Member Avatar for reezal

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 …

Member Avatar for jwenting
0
96
Member Avatar for bops

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 …

Member Avatar for Ancient Dragon
0
551
Member Avatar for Benfried

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 …

Member Avatar for SpS
0
143
Member Avatar for tristan17

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 …

Member Avatar for RamiroS
0
105

The End.