199,114 Archived Topics
Remove Filter ![]() | |
I have to program an Address book program in C++. So far I've done about 40% of the assignment. The main requirements of the Address Book are the following (Which I am confused about are): 1. Display 20 Contacts at a time, using the space bar to go to the … | |
suppose we have template class X and template function template <class A, class B> A* g (B&); how to make something like that? template <class T> class X { template <class A, class B> friend B* g (T&); }; i mean that g<A, B> () is only friend of X … | |
does anyone no how to make an image in IE transparent? my images work fine in Netscape/Firefox but display with white backgrounds in IE? | |
i have a form witch contains few user controls each control has combobox and 30 pictureboxes. each time i select a number from the combobox i want to press a button in my form and change the color of the picturebox for as many pictureboxes as i choose. for example: … | |
I have these two classes Maze and MazeCell. I have a problem with the Maze constructor in Maze Class and do not know how to access it, or test it. Does Maze N = new Maze(row, col) do anything. I know it's supposed to set it as the length of … | |
Hello, guys. I'm very new to Java and this is my first time I'm actually programming by myself. I have a homework due soon. Anyways, my question is: Write a program that asks the user for a word to replace in some text, and the word to replace it with. … | |
Hello when I try to compile my program I get these errors: 1>funding6c.obj : error LNK2019: unresolved external symbol "void __cdecl ContributorSort(struct Contribution * const,int &)" (?ContributorSort@@YAXQAUContribution@@AAH@Z) referenced in function _main 1>C:\Users\Big Z\Desktop\program 6\Debug\program 6.exe : fatal error LNK1120: 1 unresolved externals what could be causing this? [code=C++] #include <iostream> … | |
Dear all, I have these code below (netbeans) : All cells in columns "saldo Awal" are set to 58000000000.00, but appear in cell is 5.8E9 What should I fix in my code ? Thanks, Kusno import javax.swing.DefaultCellEditor; import javax.swing.table.DefaultTableCellRenderer; import javax.swing.table.DefaultTableModel; import java.awt.Component; import java.text.NumberFormat; import javax.swing.JTable; import javax.swing.JOptionPane; import … | |
Hi there I need help making my URL's look pretty. I've done the editing of the .htaccess file with regards to mod rewrite from this article ([URL="http://www.roscripts.com/Pretty_URLs_-_a_guide_to_URL_rewriting-168.html"]Pretty URL's[/URL]) but I have no idea on how to implement the php side of it. The article mentions creating a variable out of … | |
Hello, I'd like to split a string into smaller parts using delimiters that are longer than one character. I'm curious if boost::algorithm::split can be used for that. I can not figure out what predicate I should give it to compare strings [CODE=C++] #include <vector> #include <string> #include <boost/algorithm/string/split.hpp> std::vector< std::string … | |
Why the warning is showing and the header is not sendingwith this script? <?php function authenticateUser($user,$password) { $con=mysql_connect("localhost","root",""); mysql_select_db("niladri",$con); $sql="select * from user_profile where user_id='$user'and password='$password'"; $res=mysql_query("$sql",$con); if( ($row = mysql_fetch_array($res)) && ($user_id==$row["user"])&&($password == $row["password"] ) && ($password !="") ) return 1; else return 0; } ?> <?php $form_user_id=$_POST['form_user_id']; $form_password=$_POST['form_password']; … | |
how do i reset the applet? i thought that it would work if i call the method itself thanks [code=java] private class ButtonListener1 implements ActionListener{ public void actionPerformed(ActionEvent e){ myButton1.setBackground(Color.black); int answer = JOptionPane.YES_OPTION; answer = JOptionPane.showConfirmDialog(null, "BOOOoooM!!! Would you like to play again?", "", JOptionPane.YES_NO_OPTION); if(answer == JOptionPane.YES_OPTION){ LoanApplet … | |
Hi, I am trying to use sessions to display information from one page to the next one but I am having the following problems. Could anyone plz help me??????????? Here is my code: <?php $pnm1=$_POST;/////////name of text box from previous page include("db_connect.php"); $sql="SELECT * FROM new_party WHERE party_name='$pnm1'"; $result=mysql_query($sql); $count=mysql_num_rows($result); … | |
I have php code for simple file uploadings. I have index.php with form [CODE] <form action="upload.php" method="post" ENCTYPE="multipart/from-data"> Choose file <input type="file" name="userfile" size="50"> <input type="submit" value="Upload"> </form> and upload.php <?php $uploaddir = '/var/www/htdocs/upload/data/' $uploadfile = $uploaddir . basename($_FILES['userfile']['name']); * if(is_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { * echo "file uploaded."; } else { … | |
Dear All, I am new to MySQL. Can i retrive the result of a query as the combination of different fields of a single record.. For example.. if the result record of a query is ... id(1), country(India), Location1(maharashtra), Location2(pune), Location3(Navi Mumbai)... My doubt is that can i retrive the … | |
I have a problem with my script i am trying to format a text area so that on the next page it displays it as it was entered in the textarea. my css style says this textarea { width:450px; padding:2px; font: normal 1em Verdana, sans-serif; border:1px solid #eee; height:100px; display:block; … | |
I choose something from selectbox and click on the button and i get list of the data from database but, whatever i choose from selectbox doesn't remain what i have chosen. It sets itself to first value. How can i do "selected" ? [code] <?php $mysqli = new mysqli("localhost","root","","inantest"); if … | |
I've created simple C++ ATL Web Service in VisualStudio 2005 Is it possible to host it in Apache or some another web server exept IIS? Any help will be really appreciated. Thanks | |
I want make a query to retrieve only those records from table which are unique on the basis of some coloumns | |
I finally broke down and wrote my first header file, but one of my functions is acting a little weird... This function is supposed to convert from Celsius to Fahrenheit but whenever I call the function, it returns an incorrect value. Is there an easy way to multiply the float … | |
please help to with this program by mainly using arrays and pointers ,... i need this program to check 2 matrix files "if they contain any character and if they contain cout<<"invalid"; " and to open them from .txt file [code=cplusplus] #include<iostream> #include<fstream> #include<string> #include<cmath> using namespace std; int main() … | |
I have to write an applet that asks the user to enter two floating-point numbers, obtains the two numbers from the user and draws their sum, product, difference and quotient. This is what I have so far. Can anyone make sure I am on the right track. import java.awt.Graphics; // … | |
Hi All, I have 2 classes. say Class A and Class B. My logic is coded in a method in class B. I am accessing this method of class B by creating an instance of class B in class A. To explain better: Class A{ ClassB b = new ClassB(); … | |
plz take a look at the following code [CODE] #include <iostream> #include <string> #include <iostream> #include <string> using namespace std; class A { public: string sa; A(string sia); }; class B:public A { public: string sb; B(string sia, string sib); }; A::A(string sia):sa(sia) { } B::B( string sia, string sib):A(sia),sb(sib) … | |
Hi i am new to php. The code below is a page that display results from the database. i included a table. When the search result displays the result it doesnt go on a new line. For example the name neil Mcman and Peter Worth comes in the same line. … | |
does anyone no if it is possible to convert a php/mysql page into a html page? if it is would it be possible for you to point me in the right direction as i have no joy searching the net. | |
Anyone knows how to capture the data pipe in from linux ls command in c++ program? the command is ls - ali and I need to pipe it to a c++ program by ls - ali|./a.out how do I code the main in c++ to capture the data? int main() … | |
hey again, code below works but it tends to give some info which shouldn't be there: (for example a - 0 where 'a' is a letter and 0 is the times the letter was repeated) [code=cplusplus] #include <iostream> #include <stack> #include <fstream> using namespace std; int main() { fstream fin1("E:\\iras.txt", … | |
The following code is what I have so far. I know there are errors in some parts, because i'm currently still workin on them. However, I am having trouble invoking the reduce() method. The purpose of the program when im done is to be able to add and multiply fractions … | |
Friends, I am facing a strange problem with Visual Studio 2005 for few days. While I am surfing online for more than 15 minutes or so, an pop up message shows "An unhelded win32 exception occured in svchost.exe[808]",an error generated by Just in time Debugger,though I disabled Just in Time … | |
Write a program which will accept a Roman numeral input from the keyboard and return to the screen its numeric value. Some of you cases should input unusual or awkward input, and at least one trial must include an improperly formed Roman numeral. The following features of the Roman numeral … | |
was hoping someone could help me with semaphores...im a little confused heres the question: There are three kinds of processes in a system: type A, type B and type C. There are many processes of types A and B, but only one process of type C. The type C process … | |
I want to know how to develop a matrix calculator that preforms basic matrix operations usin g arrays and/or pointers. Iwant a calculator to do addition ,subtraction ,multiplication ,transpose,checking enquality, checking properties and matrix power & the program will read the data from a file & check if the data … | |
What i am trying to do is pass an array of structs to a function. the code i have so far follows: [code=C++] struct Contribution { string name; double amount; }; const int MAX = 25; typedef Contribution BigSpender; typedef BigSpender ContributionRec[MAX]; const string NAME_FILE = "names.txt"; const string CONTRIBUTION_FILE … | |
Where can i find in the registry the value of the savesetting function of vb6? im getting the value using GetSetting("Project", "Options", "Auth").. anyone who has an idea on how to find this value in the registry? | |
Well this is a lab assignment, the problem I'm having is that the sample code he gave us is suppose to run as is, but it doesn't. I email him and he thought that most likely there might be a problem with the CLASSPATH for java or that I might … | |
I use pymmsql to access MSSQL 2000, with a table, I store Chinese Character in NVarchar field, Chinese Character display normally when I query them by MS SQL Query Analyzer under Windows or by unixODBC under Ubuntu. But when I query those data by pymssql or pyodbc, all Chinese Character … | |
Hi.I need an answer to my heap problem. I am creating a 1000 items priority_queue (priority_queue<Molecule*,vector<Molecule*>,SortClass>); Sometimes I need deleteThis(Molecule *mol) function.So this function can delete any item at any index.Pop wont work here if I dont use pop-push until the target.But this takes long time.So I want to learn … | |
Hello, I have a project that I can build with a script. I'd like to add version number + release number to my builds. I'm looking for a way to do it automatically. As a result I'd like to get something like that: [inlinecode]\deployment\v1.2.3\some.exe[/inlinecode] When I run exe I'd like … | |
Hello i am new in perl scripting.I have to write a script to check for .c file and then go in to the ,c file and find all function and insert line1 after `{` and line2 before `}` or before return( if return is present). Can any1 plz help me … | |
I have an assignment to do a linked list in mips, but i cant find a good starting point, can someone offer some insignt, and also wouldi t ever be useful to use a linked list in mips? | |
Hi All, I m working on a project that has different sub-projects. I would like to include a link to a file that is placed in another folder. For ex. My file whose path is ProjB/FolderB/FileB.asp --I want to write a line of code that will enable me to link … | |
Is there any way to indicate row number of a datagrid? I mean list1.listindex = 1 means 2nd item of that list box, how can i indicate such type in datagrid? I want to select a row from datagrid and with my given criteria depending on the row number or … | |
I am on my last assignment and i have no idea how to do or start this one. This class has gotten to where i understand nothing when i watch the lectures. I have invested so much time trying to learn this stuff and i do not get structs. This … | |
I keep getting this when I go to debug: "Error 1 Operator '=' is not defined for types 'Integer' and 'System.Random'. C:\Documents and Settings\All Users\Documents\College-C\IT\VB.Net\Assignments\16.11\GuessNumber.vb 16 10 GuessNumber" I'm getting the same thing for the greater than and less than operators. I've been banging my head for an hour now … | |
I'm being given the assignment of using the selection sort method to alphabetize a 2D array of names. Specifically I am supposed to modify a selection sort algorithm for integers and convert it for my purposes. I took the skeleton code and tried to convert it. The program compiles and … | |
Hi can anyone help. i have a table called student and i have set up a link to it using gridview i have set it up so you can edit the field CourseID does anyone know if i can set it so that edit will only be shown where the … | |
Hello i want a basic search which counts how many records there are ths code works in mysql but when i use it in php its jus prints this code and dont display result // Standard SQL $query="SELECT COUNT(*) FROM dates WHERE search='yes'"; echo $query; | |
hello people ive got a signup form which allows people to signup and login but to signup they enter there email address in which is then used as there login name, its all working but when the next user signs in they mite type the same email address in so … | |
hello. i created a new form and added to my form few user controls and menu. my menu contains numbers. i created all my user controls in the forms constructor and changed their visibility to false. my goal is to show the number of controls i picked in my menu. … |
The End.