199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gth759k

I need to create and array of DIFFERENT kinds of objects. For instance, in Java, I can do something like this ... [CODE] // scene objects Sphere scene_sphere = new Sphere(); Plane scene_plane = new Plane(); Object[] scene_objects = {scene_sphere, scene_plane}; [/CODE] in my program, both the Sphere class and …

Member Avatar for vijayan121
0
2K
Member Avatar for mangopearapples
Member Avatar for mangopearapples
0
141
Member Avatar for knotholaze

double i,j,k; k=(i%j); The program generates a error in second line and compiler show a message I can not use % in double variable. But I need to separate the each digit of a double variable how I can do this?

Member Avatar for vijayan121
0
124
Member Avatar for mbouster

Dear all I have the following code [CODE] void initializeData() { Customers *CustArray; CustArray=new Customers[150];//allocate 150 memory locations of class Customers Flights *FL=new Flights[150]; } /*End Initialize Data fuction*/ /**********************************************************************************************************************************/ /*Backup Menu implementation*/ void backupfiledefaultfilename() { ofstream file_ptr; // Declares a file pointer. file_ptr.open(“backup.bak”, ios::out); if (!file_ptr) { cout << …

Member Avatar for chikkupa
0
109
Member Avatar for cty

Title:CAn anyone provide me a very simple code for shopping cart? Good day, I am newbie in PHP. I wish to learn to implement a shopping cart. Since i start doing my final year project with the title "buy and sell books". I have to learn how to code the …

Member Avatar for chrishea
0
272
Member Avatar for john sigma

hi guys, i am using eclispe 3.5 to develop a hangman game but im in no man's land now. I have created 26 alphabets buttons A-Z and i want to display the alphabets in the JTextField when the button is clicked. When the user guesses the word incorrectly the word …

Member Avatar for jon.kiparsky
0
203
Member Avatar for Viperino

Hello. I want to know if someone can help me with this: I'm starting to write some code to run an office (not professionally). When I write the Client Class, how do I make it that the number of the client be a primary key (unique and auto incremental)? Also, …

Member Avatar for Viperino
0
433
Member Avatar for fuzzyrose

hiiiiiii all I need help to know what are equivalent libraries in c# for those in java--> 1)import java.sql.ResultSet; 2)import java.sql.Statement; 3)import java.util.Vector; 4)import java.util.Hashtable; 5)import javax.servlet.http.HttpSession; 6)import java.sql.SQLException; 7)import org.apache.velocity.Template; 8)import java.sql.Connection; Thanks In advance :)

Member Avatar for fuzzyrose
0
172
Member Avatar for gedas

hey, i have drawn few 2d lines and i would like to apply a button for each of them so once the button is clicked that line is removed once clicked again it would reappear. the rest of the lines stay where they are unless their buttons are clicked. how …

Member Avatar for JamesCherrill
0
75
Member Avatar for bwallace

When we test our currency converter it shows a weird number before the numbers we enter. "25 pounds to U.S. dollars" returns "$1.5406, 25 British Pound = $38.52 U.S. Dollar". (For the record, Google says "25 British pounds sterling = 38.5375 US dollars".) What's wrong? [CODE=PHP] <?php /** * Jojo …

Member Avatar for bwallace
0
344
Member Avatar for sharathg.satya

haii friends please help me in how to play a music file in java please i tried many ways by using google and other ways but was unable to get a clear idea please help me

Member Avatar for sharathg.satya
0
174
Member Avatar for lili.edryana

Hello fellows. I'm creating a new oracle database table. My table name is [B]tblTest[/B]. But it returns an error code ORA-00903: Invalid Table Name. I dont know why this happen. I think the table name is right. But what is the problem actually. [URL="http://img820.imageshack.us/img820/3946/nonametgm.jpg"]http://img820.imageshack.us/img820/3946/nonametgm.jpg[/URL] Thank you.

Member Avatar for debasisdas
0
103
Member Avatar for richyvr

I am new to templates and trying to implement Templates for creating ITK images: template <class T,int D> itk::Image< T, D>:: Pointer CreateITKImage(int *pnSize, double *pdSpacing = NULL) { typedef itk::Image< T, D> ImageType; ImageType:: Pointer image = ImageType::New(); : : return image; } void main() { int Size[2] = …

Member Avatar for richyvr
0
138
Member Avatar for TheDocterd

Hi All.. The year hasn't even started and I'm battling again. I want to import data into sql server 2005 through an excel 2003 file. I do this through the built in mechanism of sql server 2005. But I get the following error: - Executing (Error) Messages Error 0xc020901c: Data …

Member Avatar for TheDocterd
0
155
Member Avatar for MackeyJenkins

Hello, Im trying to make a feed for my website, anyway, what i want it to do is everything from table messages where the userid = the friend id, but what if there is multiple friend id's. sorry if this is a really easy thing, but im a newbie to …

Member Avatar for cossay
0
119
Member Avatar for hindiakosiaj

i was unable to attend my classes due to a sickness(chickenpox) and my prof gave us a activity. he gave me an additional 1 week to pass it. but the problem is i don't know where to start @_@ the program that he ask us to make is: a program …

Member Avatar for hindiakosiaj
0
64
Member Avatar for Sorcher

Hello, i was wondering how i can put text inside a <input form that disappear when the user clicks inside the form. I would like to write "Description" inside a form so they know that they have to write a description into that form. Sorry if its hard to understand …

Member Avatar for Sorcher
0
83
Member Avatar for kalleanka

Hi! I am looking for a function that will add spaces in a string in a certain manner: tmpStr: 123456789123 (always 12 digits) the desired outcome is: 123 456 78 91 23 Do anyone of you have a neat fuction for that? :) I found one question in this forum …

Member Avatar for kalleanka
0
100
Member Avatar for VBNew

I'm new in VB6, and i'm having an error message while debugging...after the login checking, I need to open the form to select a project code from my Access db. The error was stop at RS.OPEN. and prompt the error message "Method or data member not found". Now, when I …

Member Avatar for AndreRet
0
4K
Member Avatar for choosenalpha

Hello All, So this script below is supposed to go to the Url listed which is a direct link to webpage which will open an excel formatted spreadsheet. Im then taking the data out of the spreadsheet and placing them within the specified variables so I can then send an …

Member Avatar for k_manimuthu
0
663
Member Avatar for MikConnor

Any one know's about a code in PHP that can add/edit/delete a profile of a student. I create a xHTML FOR all i need is a PHP code please do help i really want to learn.. <div id="Eform1"> <h1>FILL UP HERE: </h1> <form action="anotherpage.php" method="POST" id="form1"> <span class="pi">Personal Information: </span> …

Member Avatar for bakir
0
391
Member Avatar for Moderns

Hello, I am facing something strange. I will discuss it by very clear and simple example below. 1)I have function called Test() in [B]page1.php[/B] (gives correct output) as follows: function Test(){ $sql = "SELECT * FROM accounts WHERE account_id = 4"; $rs = mysql_query($sql); while ($row = mysql_fetch_array($rs)) $mobile_number = …

Member Avatar for bakir
0
361
Member Avatar for Sorcher

Hello. I would like to echo out all the images from a folder on a page with pagination. I have not found something like this on the internet and i am asking now if any of you know of this. Just a simple image page with 4 rows then a …

Member Avatar for diafol
0
74
Member Avatar for RaySan

I am a newbie on Java. I think im lucky to find this site. I am doing a technical presentation and my title is to present about IDE on Java. I have researched on some of the IDEs for Java such as Eclipse, NetBeans, JBuilder,Jcreator. My presentations would be on …

Member Avatar for masijade
0
475
Member Avatar for baldowz

How can i perform a drag and drop in the data grid? I am trying to make a program that can swap row to row or column to row (vice versa) contents. please help thanks in advance ^^,

Member Avatar for baldowz
0
83
Member Avatar for mbouster

Dear all I have a function and withing I want to call a member funtion. More specifically I have a menu inplemented the code below. please note the commented line [CODE] case '1': //flightcode(); break; case '2': cout<<"Enter the Customers National Number ID"<<endl; cin>>ni; // CustArray.showCustomers(ni);//given the customers ID break; …

Member Avatar for mbouster
0
2K
Member Avatar for icasta13

The results of this program giving me values that should not be the way it is, it must display the list of numbers... [ICODE]#include <iostream> #include <fstream> using namespace std; void ReadList(int Array[], int N) { ifstream data_file; data_file.open("numbers.dat"); N=10; for(int i=0; i<N; i++) { data_file >> Array[i]; cout << …

Member Avatar for icasta13
0
219
Member Avatar for prem2

Dear all, Digest authentication is not working in my php. I do not how to check whether digest authentication is enabled in my php . Is any other module is required to enable the digest authentication in php. Thank you, With Regards, Prem

Member Avatar for pritaeas
0
265
Member Avatar for thomas6188

Hi I was trying to extract the content of a pdf file and display its content in android. I tired the code in java and it worked.But when i am coding it in android, its not displaying anything.I placed the file in assets folder and then used asset manager(not sure …

Member Avatar for peter_budo
0
233
Member Avatar for dalip_007

When we are on facebook page and someone sends us a message,(not chat message), or any notification does occurs, Then a red number is appeared at the top to notify us (user) about the message. even if we don't refresh the page. This happens without the page refresh, Same thing …

Member Avatar for Moderns
0
115
Member Avatar for ckdoublenecks

I don't know why I get the message "unexpected $end" at the last line of code - can someone help? [CODE]<?php mysql_connect(localhost,root,""); mysql_select_db(test) or die( "Unable to select database"); if(!empty($_POST["submit"])) { $apt = $_POST['apt']; $query="SELECT * FROM payments Where apt='$apt'"; $result=mysql_query($query); if(mysql_num_rows($result)) ?> <html><head><script type="text/javascript"> if ($late = "L") {$rentdue …

Member Avatar for cossay
0
140
Member Avatar for bhagawatshinde

Hi i am working on windows application . I am opening an math type using button want to select all and copy send keys are not working here is my code ... [code] Dim proc As New Process() With proc.StartInfo .Arguments = "file_path.bmp" .UseShellExecute = True .WindowStyle = ProcessWindowStyle.Normal .WorkingDirectory …

Member Avatar for bhagawatshinde
0
1K
Member Avatar for swathys

hi, i have 2 text box 1) account no 2) amount I have a problem whereby i want a text box to accept 9 or 10 digit (after check digit)and then show the 2nd text box but after it accept the 1st 9 digit on the 1st text box it …

Member Avatar for swathys
0
147
Member Avatar for bibekpokharel

I've been stuck in a situation. I am trying to retrieve image from database using ajax. I am using php as a server side scripting language.. I need to run the js funtion on every image i fetch from the database which happens to be a while loop...But that doesnt …

Member Avatar for Moderns
0
81
Member Avatar for PM312

I have form name FRMABC with msflexgrid Msflexgrid get populatd by data from table msaccess database on form load event of FRMABC There is one command button on FRMABC which opens another form say FRMPOR where new data is added on to database table There is subprocedure (Public) SubRefresh on …

Member Avatar for AndreRet
0
555
Member Avatar for SeanC

Hi all, I'm writing a simple encryption algorithm and have stumbled upon a problem relating to the file handling itself. What my program does is reads text from a file, encrypts it, and writes it to another file. That's all well and good, and it works fine - until a …

Member Avatar for SeanC
0
462
Member Avatar for novice20

Hi... I have a set of strings as below: [CODE]4:14.4-17M,5:14.4-2e13M,6:14.4-4e9M,7:14.4-8e,22:28.4-35M,23:28.4-2e30M,24:28.4-4e26M,25:28.4-8e18M,26:28.4-16e2M,27:28.4-18e,28:14.16-36M,29:14.16-2e32M,30:14.16-4e28M,31:14.16-8e20M[/CODE] I want everything after the ':' to be discarded. i.e., i just want a list of what preceeds ':' (4,5,6,7,22,.................) How can this be done?

Member Avatar for novice20
0
109
Member Avatar for abrarHuniedi

I creat small program with windows Application ,Iwant to connected to ASP.Net web site some one tell me it is impossibal so I deployment this program I ask if I can connected with Asp.net website??

Member Avatar for kvprajapati
0
119
Member Avatar for Superd00d

Hey there, I was wondering if I could get some guidance on how I could go about handling this problem. I'm creating a simple version control system database. The tables look like the following: [CODE]CREATE TABLE Users ( [UserID] INT IDENTITY(1,1) NOT NULL PRIMARY KEY, FirstName VARCHAR(32) NOT NULL, MiddleInitial …

Member Avatar for pritaeas
0
275
Member Avatar for soomro_moon

plz find the error it give this error Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\soomrof\a_task_2_1.php:3) in D:\xampp\htdocs\soomrof\a_task_2_1.php on line 24 [CODE]<? include("connection.php"); $check=false; $sql=mysql_query("select * from doctor_schedule_information where doctor_ID='".$_POST[doctor_id]."'") or die(mysql_error()); if(mysql_num_rows($sql)==1) { $row=mysql_fetch_array($sql); $check=true; } else { $check=false; } if($check==true) { header("location:a_task_2_3.php"); …

Member Avatar for kvprajapati
0
123
Member Avatar for soomro_moon

plz find the error it give this error Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\soomrof\a_task_2_1.php:3) in D:\xampp\htdocs\soomrof\a_task_2_1.php on line 24 [CODE]<? include("connection.php"); $check=false; $sql=mysql_query("select * from doctor_schedule_information where doctor_ID='".$_POST[doctor_id]."'") or die(mysql_error()); if(mysql_num_rows($sql)==1) { $row=mysql_fetch_array($sql); $check=true; } else { $check=false; } if($check==true) { header("location:a_task_2_3.php"); …

Member Avatar for kvprajapati
0
268
Member Avatar for TheDocterd

Hi Experts ;) I'm having trouble exporting data to my database in sql server 2005. Can anyone help me perhaps? The data I want is located in text files (holds personnel time management data), so what I would like to do is import that data to sql server but the …

Member Avatar for TheDocterd
0
304
Member Avatar for bluetoot

Hello Good People I have this error message....Parse error: syntax error, unexpected T_STRING in on line 111 ($result = mysql_query(" insert into users_cv ) this is the script line wherei have it // SELECT DATABASE mysql_select_db($database_recruit) or die(mysql_error()); $result = mysql_query(" insert into users_cv SET title = '$title', firstname = …

Member Avatar for pritaeas
0
196
Member Avatar for a1a4a

Hello all I am working on a project that convert images to text , and load them from text , so i can save them online then load them as image . But if u could just give me a code of a project with a textbox where i write …

Member Avatar for codeorder
0
394
Member Avatar for rime

Is it possible to copy a mysql database to an excel worksheet writting PHP code.. please help with code.

Member Avatar for rahulb310
0
140
Member Avatar for Shanti C

Hello All, I am new to JSP. Currently i am working on jsp project with mysql. I got stucked with jsp date and time which supports mysql datetime format. [I need to do more time calculations in my project.] Please come up with your suggestions. Thanks in Advance. SHANTI.

Member Avatar for Shanti C
0
188
Member Avatar for wert21

Good day! we have an exercise on how to create a list but i do not know how to do it without an algorithm. Can you help on what is the algorithm to create a linked list?

Member Avatar for vinayakgarg
0
86
Member Avatar for adelshehri

Hello All, am looking for an events script like (Upcoming.yahoo.com)... I found many but!! I want the same functions of upcoming.yahoo.com As much as possible ... Commercial or Free .... It will be used by some charity organizations. Please help

Member Avatar for adelshehri
0
92
Member Avatar for Moderns

Hello, Assume we have one button that fires ajax request, ajax call will talk 15 seconds to load the results. Assume the user clicked on that button first time and waited for 5 seconds, then he/she clicked again. In this case the page will be loaded two times. i.e. first …

Member Avatar for Moderns
0
3K
Member Avatar for roxin_phoenix

Hi all. I'm new in .NET programming. I want to make an application using C# and Microsoft Access. I cannot found any good tutorial about C# and Access. I just want to know how to connect, insert, delete, edit, and update database. Any suggestion for a good site to learn …

Member Avatar for roxin_phoenix
0
459

The End.