199,114 Archived Topics
Remove Filter ![]() | |
I am trying to add data from an array into a jTable, I have seen [URL="http://www.netbeans.org/kb/55/vwp-databoundcomponents.html"]one[/URL] or [URL="http://blogs.sun.com/winston/entry/nb6_table_binding_enhancement"]two[/URL] tutorials which say go to the "Table Layout" page but I cannot find this page anywhere in NB (have been searching for ages now) so I cant get my array into my … | |
I have an assignment to submit tomorrow. It gives me compiling errors. About 62 in VC++ 2008 and 42 in VC++ 6. I have written this code in one single file and it works fine there. One error that I can think of is with the declaration of class variable … | |
Binary Search tree help Can somebody explain to me what this code is doing step by step?, thanks [CODE=java] TREE-SUCCESSOR(x) 1 if right[x] ≠ NIL 2 then return TREE-MINIMUM (right[x]) 3 y ← p[x] 4 while y ≠ NIL and x = right[y] 5 do x ← y 6 y … | |
Hi All I'm trying to combat some SPAM coming through on a booking form. It's all the usual rubbish. I've been searching to find the php code that would do the following if ($msg contains http:// or [url]www.)[/url] {echo "Please don't put links in the comments - it looks like … | |
Hi everyone. I am new to this web site. Found it while doing some research. My need is as follows: I am modifying a healthcare Practice Management System for a company in Jacksonville, Fl. and the client wants to be able to create basic BAR and PIE charts. There is … | |
I tried doing this, and it didnt work. Im goign to identify the $css in the else of an if else statement; so when its else, it willl turn the web page that color, but i cant figure out how to acomplish it. [CODE] $css = "<style type="text/css"> body { … | |
Thanks in advance for your help. The problem is this: I am supposed to read an array from a file and ask the user to input a name to search for within the file. If the name is there then return the position number in the file, if not output … | |
This problem is causing me a massive headache! I'm sure I can't be the first person to do this but I have searched the internet high and low for answers about this. I want to be able to display in a list as seperate fields: - A product name - … | |
Hi there, The Wallis product is defined here: [url]http://en.wikipedia.org/wiki/Wallis_product[/url] I am having a problem with the following code, which attempts to approximate the product: [CODE]#include <iostream> #include <cmath> using namespace std; int main() { int n = 2; // initialise top counter as 2 for the first two terms int … | |
Hi There, I'm currently creating a form and inserting the details into a database, the problem i came across is when the php checks and inserts the data i made the password md5 [code] $password = md5($_POST['password']);[/code] However if the user wants to request his password via email how will … | |
Ok, I'm not too sure if this would be considered a matrix, but what I'm trying to do promts the user for 2 characters, and one integer. For example, say you key in * G 3 the cout would be... *G* G*G *G* If you keyed in % $ 5 … | |
According to this: [url]http://www.parashift.com/c++-faq-lite/templates.html#faq-35.13[/url] One way to keep only the function declaration in the .h file is to do this [code] ////////// file: Tools.h #include <iostream> #include <vector> using namespace std; template <typename T> T Sum(vector<T> &V); [/code] [code] ///////// file: Tools.cpp #include "Tools.h" #include <iostream> #include <vector> using namespace … | |
Hey guys I have to create a python version of Tic Tac Toe, but does anyone know if it's possible to make this using Tkinter? I think I have to have it nice and bright and colourful, therefore TKinter is the only solution i can think of using Python. Any … | |
I HAVE A VERY PECULIAR PROBLEM,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, THE PROGRAMS I COMPILE SHUT DOWN AFTER COMPILING ONCE,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, FOR EG- I CREATED THIS PROGRAM FOR GETTING THE ASCII CODES OF AN ALPHABET ,,,,,,,,,,,,,,,,,, AFTER I WROTE THE ALPHABET IN DOS IT DISPLAYED ITS VALUE AND SHUTDOWN,,,,,,,,,,,,,,,, HOW CAN I ALTER MY PROGRAM TO … | |
Hey, How do I implement multi-level dynamic navigation with php? Assuming my database would be like: [CODE] id name parent_id ---------------------------- 1 page 0 2 sub1 1 3 sub2 1 4 sub12 2 [/CODE] I've tried many ways, but haven't found any 'good' methods/implementations so far. Now I have: [CODE] … | |
Hi, a noob programmer just starting in C# with Visual Studio here.... I came across this while coding in Visual C# and I couldn't figure out anything about it so a little explanation would be greatly appreciated.... In Microsoft's Visual C#...when using Windows Forms for GUI..... You guys know how … | |
trying to get the program to run but there is an error in line 31 (expected primary expression before else) i dont know what to do [code=cplusplus] // Devin Southern // COSC 112 - Spring 2009 // Dr Stone // Lab 9 // This program will use loop to keep … | |
I'm new to this and I'm a beginner at c++. I need some help with some questions that I've been trying to solve for hours. I think I got most of this one right but I got stuck at the wages array. This question says : write a program that … | |
Multiplying the digits of an integer and continuing the process gives the surprising result that the sequence of products always arrives at a single digit number. For example, 715 ---- 35 ---- 15 ---- 5 27 ---- 14 ---- 4 4000 ---- 0 9 The number of times products need … | |
To remove duplicates from a vector, my first thought was to insert them all into a set, it would take care of the uniqueness of the elements, and then read them back out into my vector. However, I have a vector<Point>, where Point is a point in 3d space (ie. … | |
Hi all How to convert any type of audio or video file in to an swf extension and play it in a browser. I have searched a lot on net but in vain:confused: . My last hope is this forum. Please help me. Thanks in advance. | |
Hey! Does anyone know how to print out several pages? I have no problem printing out first page but the rest of the pages is a problem for me. All pages look the same just with different text so I don't think I need the book class for that. The … | |
The assignmento I have to write is to Derive a class DistSign from class Distance which contains inches and feet as a protected data, to add unary + or – to the distance. Write no argument and two argument constructor. Here is my program. I don’t know how to add … | |
A man pays $1 to get into a gambling casino. He loses half of his money there and has to pay $1 to leave. He goes to a second casino and pays $1 to get in, he loses half his money again, and has to pay $1 to leave. Then, … ![]() | |
This is a part of the problem in my homework. I have : int alpha[20]; int beta[20]; int inStock[10][4]; I need to write a function copyAlphaBeta that stores alpha into the first five rows of inStock and beta into the last five rows of inStock. my program is here, but … | |
Hi I am trying to achieve the following; display registered users birthdays in chronilogical month order where the date is greater than the current date - (only top 5) for this I have created the following SQL query in my recordset [CODE]SELECT TOP 5 firstName, surName, dob FROM tblUsers WHERE … | |
hi,, it seems thet i am posting too much inthe forum .what to do.i am busy with a project to finish.. ye, i just wanted to ask i have a money datatype in my table SPAINFO in sql server2005 i have done the connectin and its working fine.. the problem … | |
I am trying to implement the calculations, and I am getting totally wrong answers. This program is to calculate the distance of a projectile based on launch angles as well as (of course) launch velocities(speeds). The formula is as follows: [URL="http://learn.flvs.net/webdav/educator_apcsa_v8/module09/rtfmod09/09_04_VirtualLectureNotes.pdf"]http://learn.flvs.net/webdav/educator_apcsa_v8/module09/rtfmod09/09_04_VirtualLectureNotes.pdf[/URL] Here is the code that I have for doing … | |
This is my first post: Ok, there's GPL'ed programs, and GPL'ed Java. Is my java program, which uses no other GPL'ed programs all my own? Simple question, simple answer... don | |
Hello All I am having some problems with a C++ class that i am taking and after looking around on the web I am still lost. The assignment that I am working on right now is as follows: [ICODE]Two numbers are entered in from the keyboard. If the larger number … | |
Dear all, Please help me in solving following query. I want to use Encryption and Decryption to add password to database and to retrive password from database. What is the code for this? Thanks and regards, Swapnil. | |
i'm new using VB 2008. so i hope somebody could help me. my problem is i want whenever the listbox is checked then the info in the listbox can be shown in multiple textbox along with picture. i used MS Access as my database. here i attach my code. i … | |
I have a VB program, in VB6 that is connecting to a website for validation of a user account. One of my users can't seem to get the thing working though. He gave me his password and when I try it on my machine it works. The validation script on … | |
Hi all, Just registered on the forum. I have a quick (hopefully) question. I'm trying to read from a text file into one single string. I'm having some trouble though and can't quite find my error. I have the following code below right now. The problem is that my function … | |
I am very much a beginner in programming, so this maybe nothin but this error keeps popping up and i'm unsure why. cannot find symbol - constructor Track this is my source code and its a work in progress. public class Track { private String name; private String creator; private … | |
Hi Im trying to write simple miles per gallon program, I have gotten every part so far, but I cannot figure out how to "calculate and display the miles per gallon obtained for each tankful and print the combined miles per gallon obtained for all tankfuls up to this point." … | |
hello everybody! As far as I understand, the functions that are only different in return type are not allowed. But how can I write the program for the following question? ***************************************** Create two classes DM and DB which store the value of distances. DM stores distances in meters and centimeters … | |
Hi, Im trying to write a program of a salary from a textbook problem, but am having a hard time. Hopefully you can get the gist of the program, I want it to keep asking for items of what the "salesperson" has sold, until an invalid item is entered, where … | |
In this program, although I use Ignore(1000,’\n’); why it does not show the title for tape. In fact, I don’t understand very well about Ignore(); what is the meaning of 1000 in that function? [code] #include<iostream.h> class Publication { char title[20]; float price; public: void putdata() { cout<<"\nEnter title:"; cin.getline(title,20); … | |
Can anyone provide me with an example how to create a program using Delphi that randomizes and shows 2 words out of 78 with a click of a button? The words are: [CODE] Afghanistan Albania Argentina Australia Ausria Blegium Bhutan Bolivia Brazil Bulgaria Canada Chile Colombia Communist_China Costa_Rica Cuba Czechoslovakia … | |
Hello, I am trying to make a desktop icon for a newbie script I wrote while Teaching myself Python. I wanted it to be a clickable desktop icon for OS X. Plus, I guess I can use Icon Composer to make it a pic. Any ideas?! Thanks... | |
Hi I would like to learn how to make a .s3m player in c++. Thanks | |
Is it possible to create dynamic menu items for a web application. While clicking on one menu item, it should expand and show the child menu items. While clicking again it should collapse the menu and hide the children. While clicking on child menu item, it should show the corresponding … | |
![]() | hello, i just started a paper round and ive started doing what i do best : obsessing about it and i want to know if there is any way that i can open and close images of the different newspapers to learn them? i would prefer to do this with … ![]() |
Hi, I'm stuck in a gridview operation. Baiscally i have an sql that select filesize from database. I need to convert the file ti Giga byte. So i cant find a method to do it in sql, what i plan to do is. Get the result from the sql, convert … | |
Hello, I have some weird problem with this code. The problem is that when I use >> to read data a text file to vector. It will only add the first double and discard the rest. Anyway if I use array instead of vector it works fine. Anyone know what … | |
Hello I am trying to make a program that converts different units. The conversion factors are stored within a txt file and i need to read them in. i have this code so far; but it doesn't work. using System; using System.IO; namespace Task3 { class TextFileReader { static void … | |
Hi to all, this is a related Firefox problem. I have a menu in which is applied [URL="http://typeface.neocracy.org"]typeface [/URL]script. Typeface 0.11 version doesn't support hover on links. There is an experimental version but doesn't work very well for me, so i tried to implement hover by myself. Problem is: hover … | |
is there a way to increase bluetooth range in mobile phone for 1 seconed? by changing the driver or somthing like that? in C\asm? i asked in the java forum,they said it might be possible in C. to save time - i checked and it's possible to increase range of … | |
i have designed a website using JSP and mysql, there is an enquiry form in that website ,when one fills the form the details automaticaly go into databse as the logic goes..but my problem is on localhost(tomcat) when i fill the form and submit, a retrieved form is displayed which … |
The End.