199,114 Archived Topics
Remove Filter ![]() | |
Hi guys, I'm stuck at this query I'm writing. I'm hoping someone will be able to help me. I have 2 linked tables: subjects and visits with a relationship on subject_id: table subjects: Subject_id, name, birthdate table visits: Visit_id, Subject_id, parameter1, parameter2 Now I need to query that will get … | |
Hi all, I am new to image processing :rolleyes: . what i want to do is read the header section of an image of any type (jpg,bmp,gif ...etc) and show it on the screen. then save the header in a text file and the new image (without the header in … | |
Hi, I want user to record his voice and save it in website. I could not figure out how the connection can be established between microphone on user pc and website. I have googled enough but could not find any useful leads. Anyone who has some knowledge over it please … | |
can anyone please tell me a way to calculate any given factorial number using trees. | |
In the following program, implement the function a. int *biggest(int *a, int count); This finds the largest element in an array of integers. #include <stdio.h> #define SIZE 16 int* biggest(int *a, int count); int main(void) { int values[16] = { 47, 17, 38, 91, 33, 24, 99, 35, 42, 10, … | |
Before I explain what I mean in the title, I want to say that I 1) Have very little experience with python, so take anything I say with that in mind. I've only read about it, haven't really used it (although I have installed it), 2) I [B]want[/B] to learn … | |
I tried searching the forum, but I couldn't find any threads that really dealt with what I'm trying to do here. I have a struct set up with three fields (shown below). [code] struct StudentInfo { char id[10]; double mark; char grade; }; [/code] [I]Note that the id MUST be … | |
[code] <html> <head> <script type="text/javascript"> var flag=0; callf() { if(flag == 0) { test() { alert("hi from if"); } } else { alert("hi from else"); } } </script> </head> <body> <input type="text" onchange="callf();"> </body> </html> [/code] what's wrong with this code ?? nothing happens when i type into the text … | |
I am having problems with this form it has two submit options a button and an onchange instance the onchange just will not work can any one tell me why? my doc type is [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> [/code] the form … | |
hi everyone , i am trying to access image files in java and then want to modify those bits present in the image . is there any standard package or utility which would help me to do that ...? i would be glad if you could enlighten me with other … | |
Can anyone suggest any resources that could help me learn Java GUI creation? I have been working on a lab assignment where we need to copy the Google Kitchen Sink example and my biggest problem has been layout issues, whether I code by hand or use the IDE although I … | |
Hi My following php code keeps giving me Undefined Offset errors: The code is: [code] <table border="1"> <tr> <th>Tile </th> <th> Email</th> <th> Publication No. </th> <th> Submitted By: First Name </th> <th> Submitted By: Last Name </th> <th> File Name </th> </tr> <tr> <?php if(!($lines=file('publication.txt'))) {echo 'Error:Unable to open … | |
[code=java] public static void setValues(PreparedStatement statement, Object... values) throws SQLException { for(int i = 0; i < values.length; i++) { if(values[i] instanceof Integer) { int value = (Integer) values[i]; statement.setInt(i, value); } else if(values[i] instanceof String) { String value = (String) values[i]; statement.setString(i, value); } } } public static ResultSet … | |
hi, i am useing the netbeans for the first time n i am trying to connect to a MS Access DB through the wizard but i am not able to. I entered for a DSNless connection: Name:JDBC-ODBC Bridge. Driver: sun.jdbc.odbc.JdbcOdbcDriver Database URL: jdbc:odbc: Driver={Microsoft Access Driver (.*mdb)};dbq=C:\Users\Vamsi\Documents\PIN.mdb; the issue its … | |
Hi, I have a question about UI design in NET. I am creating a scientific application with C# and VS2008. Currently I am using a tab control were till now I have 3 level tab depth (eg tab inside tab etc) which is not very convenient, nor user friendly. I … | |
Can you tell me how to resolve my problem. i can reserve the matrix A and B into file, but how to read , i can't remember...above, shows what i pretend to do.. # include <iostream> # include <fstream> using namespace std; int main() { int matriz[3][3]; int x,i,j;//variables for … | |
How to do image Zoom in Zoom out in J2ME.. Help with Source Code.. | |
![]() | I'm trying to create an array to display the last 5 products a customer has viewed. The array is a 2 dimensional array like below... $RView= array( array( ID => "1001", RefCode => "Ref_01", Name => "Name_01" ), ... array( ID => "1005", RefCode => "Ref_05", Name => "Name_05" ) … ![]() |
I would very much appreciate any advice on this. I am reading a single byte from the serial port and wanting to store up to a hundred of these. Essentially I need to check incoming data to see if the value of it has been sent previously. These are my … | |
Hello, I am working on the problem of creating an abstract class Shape also with Package shape and then creating a subclasses Circle, Square and etc. I belive, i don't have a complete understanding of an abstract. Anyways i keep getting an error: " Shape.Circle is not abstract and does … | |
[CODE]private void menuButtonActionPerformed(java.awt.event.ActionEvent evt) { panel1.setVisible(false); startMenu.setVisible(true); img = new ImageIcon("DeathRun.png"); Graphics g = startMenu.getGraphics(); img.paintIcon(null, g, 0, 0); } [/CODE] The code is very simple for this method but here is my problem. I have a menu that I want to display an image behind. When I hit the … | |
I have a java applet on my website and i need it to connect to my mysql database. When I was trying to figure out how to do this i saw several examples that used jdbc. I'm confused can I use this to connect to my mysql data base at … | |
Hi all, I have a java program which runs repeatedly by calling to main functions in a loop based on a condition ..But after running for some time(say 30 minutes),it shows the follwing error and it terminate the program execution.But as per my requirement i want to run this program … | |
i want to retrieve 2nd row of a column from datareader object... i want to show 1st row value of datareader..... if seattype_code == "00", 2nd row value if seattype_code == "01"...and so on..... what method shud i use for dr..as it is not working that i tried..? dr = … | |
[code]#include<iostream> #include<fstream> #include"d_nodel.h" using namespace std; void merge(dnode<double> *, dnode<double> *); //free function to merge the two lists int main() { dnode<double> *listA = new dnode<double>; dnode<double> *listB = new dnode<double>; double sz1, sz2; int val1; //first set of integers int val2; //second set of integers ifstream inFile; //declares the … | |
Ive used the search function just found one thing I needed more detailed help I need to a read file of float numbers no more than 100 numbers but can be less than 100 into an array I have made sample file contain 1 2 3 I have the following … | |
If I have a class that has a vector as a private member, a get function to access the vector, and I iterator over the vector, the iteration only works correctly if I make a new copy of the vector: [code] class MyClass { public: typedef vector<int> Vector; MyClass(); ~MyClass() … | |
Hi all, I am in need of some assistance with addresses & pointers as my dysfunctional professor is of no help. (I'll be as succinct as possible.) First, the program must call three subroutines from main to fill "n" array elements with a given value; for instance, one must set … | |
What I need to do is build a type of database. Firstly have a few questions, whether what I have done it right...and how to do something else. This is my algebraic type for the database (correct me if its wrong) data Film = Film String String Int String with … | |
Should I be able to use VB6 to read/write an Access 2002 db, where the executable is running on Win98 SE?? I've resolved the oleaut32.dll version issue and reference DAO 3.6 but still get "unrecognized database format" if I reference a 2002 db. | |
I have everything almost done, the only problem I have is that I can't seem to get the linked list to advance when the terms start out with different exponents and instead of just printing the results I will tie them into a third list. Can you see what I'm … | |
I'm working on a simple update function to add to an existing program. It does a stat check of the source file and then copies the new file if necessary. This is easily accomplished with .py files. I've realized that I need a separate update app to delete a currently … | |
Hello all, I work on MySQL and i have knowledge about it. I have no idea of what Apache is? I googled and came to know just like MySQL it is also a Web Server and nothing more about it. When people ask me if i have experience with Apache?! … | |
Write a program to implement a survey that prompts respondents to enter an integral value within a specified range to indicate how they like a new product. Since the program must be adaptable to any arbitrary number of respondents and value ranges, define macro MAX_RESPONDENTS to represent the maximum number … | |
Hello, I'm trying to get the STL equal_range function to work on a data structure I've designed, but I may be trying to use the equal_range function in a non-standard way. Is there a way to get this to work? Basically, I have a vector of vectors of structures (elements) … | |
I have some code that adds records to a database but it is quite common for there to be a lot of duplicate records. I am trying to write some code that will remove the duplicate rows in the database table. I am using table adapters for this task, i … | |
Hi I am designing a database for a local garage which sales and repair cars, I have come up with attached ERD diagram could anyone give me any advice on it and let me know if there is something wrong with it. Thanks for your help. Kind Regards HB 25 | |
OK, I'm obviously going bonkers here, but has something happened to the java code tags? Why doesn't this work in preview mode? [CODE=java] i++; [/CODE] | |
Here i have to define a function which will reverse a c-styled string. I have made 2 functions one using dynamic memory and the other not using dynamic memory. I would like to know of any improvements that can be made in the code. I would also like you to … | |
hey...! we were given this assignment to make a game in c++ using pointer, classes, structures etc! we were also asked to introduce graphics in the game to get bonus marks! i've coded the game but the problem is that i have no cluee watsoever how to introduce graphics in … | |
I made this JavaScript that password protects a page. But the password you type in is completely visible! I want it so that the password are those black dots for each letter.... If anybody gots anything, please post it here, thx. Oh yea, here is the script [icode]<HTML> <BODY> <SCRIPT> … | |
I have been working on this code for some time now. It is a basic graphics package. When the user clicks the draw button I need to create a chape based upon the user's input and put the shape into an array of shape references (up to 10). I attempted … | |
Hi, There is too much space between the Organized in / Pioneered by text and the Text Input Areas. How do you shrink this amount of space? [code=html] <html> <head> <title>Prefecture History and Facts</title></head> <body><h1>Prefecture History / Facts</h1><hr> <table> <tr> <td>4th Prefecture of New York State, U.S.A. </td> <tr> <td … | |
![]() | hi, i have a hard time testing my PHP mail() function in the localhost. can you teach me? it's my first time to use this mail() function. this is my PHP code in the file: contact.php [code] <?php $email_to = $_REQUEST['email_to']; $subject = "Re: FAQ Suggestion"; $email = "d26thletter@yahoo.com"; $message … |
I am just starting to work with Visual C++ Express 2008 and have run into a situtation I could use help with. To add a new data source to a project I am told to start the data source configuration wizard, this I can do. Next I am to select … | |
I take one look at this project, define my structure.....and my brain goes numb. I don't know where to star..... ///////project/////// Write a program that dynamically allocates an array large enough to hold a user defined number of structures (string name and three double tests). Using a function, the user … | |
I want a user to be able to select an audio file to play but am unable to figure out how to create a file open dialog box in Win32 API. I could create one from scratch but am hoping that there is an easier way than manually creating it. … | |
Hi. I am working on a little program that will be able to open files and read them. The problem is that i CANNOT tell the user to manually type the directory and the name of the file ! It would be madness. So i need to use GetOpenFileName dialog... … | |
int sum=0, a=0, b=0; for (a=1;a<3;a++) for (b=1;b<5;b++) sum+=b; cout <<"sum =" <<sum; The answer is 20, sure, but I have'nt got my head around how it actually works. Could someone explain it step by step please? |
The End.