199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for navamous

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 …

Member Avatar for Spagett912
0
219
Member Avatar for sopel39

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 …

Member Avatar for vijayan121
0
108
Member Avatar for kevin wood

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?

Member Avatar for Inny
0
97
Member Avatar for emilio

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

Member Avatar for emilio
0
100
Member Avatar for torbecire

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 …

Member Avatar for parthiban
0
287
Member Avatar for cage

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

Member Avatar for Ezzaral
0
816
Member Avatar for Skeezo

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

Member Avatar for Skeezo
0
426
Member Avatar for Kusno

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 …

Member Avatar for Ezzaral
0
106
Member Avatar for Venom Rush

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 …

Member Avatar for Venom Rush
0
88
Member Avatar for sjcomp

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 …

Member Avatar for sjcomp
0
5K
Member Avatar for niladri.user

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']; …

Member Avatar for nav33n
0
148
Member Avatar for Adila

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 …

Member Avatar for Adila
0
728
Member Avatar for chitra1

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

Member Avatar for buddylee17
0
90
Member Avatar for slacke

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

Member Avatar for slacke
0
106
Member Avatar for jino

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 …

Member Avatar for silviuks
0
92
Member Avatar for shadiadiph

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

Member Avatar for silviuks
0
85
Member Avatar for Fenerbahce

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 …

Member Avatar for nav33n
0
138
Member Avatar for snakeman

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

Member Avatar for Ancient Dragon
0
149
Member Avatar for wani_raj

I want make a query to retrieve only those records from table which are unique on the basis of some coloumns

Member Avatar for plazmo
0
92
Member Avatar for dmanw100

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 …

Member Avatar for dmanw100
0
111
Member Avatar for zaza_thegreat

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

Member Avatar for Nick Evan
0
217
Member Avatar for Ryano24

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; // …

Member Avatar for darkagn
0
109
Member Avatar for a_iyer20

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

Member Avatar for a_iyer20
0
100
Member Avatar for kux

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

Member Avatar for Agni
0
263
Member Avatar for ash112

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

Member Avatar for upstream
0
146
Member Avatar for kevin wood

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.

Member Avatar for kevin wood
0
106
Member Avatar for toolbox03

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

Member Avatar for dougy83
0
157
Member Avatar for Lensva

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", …

Member Avatar for Lensva
0
208
Member Avatar for tracyda

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 …

Member Avatar for jinternalframe
0
149
Member Avatar for sandip250382

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 …

Member Avatar for Jx_Man
0
78
Member Avatar for mikky05v

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 …

Member Avatar for mikky05v
0
138
Member Avatar for cppsevennine

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 …

Member Avatar for jaux
0
139
Member Avatar for soka2oo7

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 …

Member Avatar for soka2oo7
0
123
Member Avatar for Skeezo

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 …

Member Avatar for vmanes
0
85
Member Avatar for bornok15

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?

Member Avatar for choudhuryshouvi
0
300
Member Avatar for Noliving

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 …

Member Avatar for Noliving
0
186
Member Avatar for zzsu

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 …

Member Avatar for zerocq
0
54
Member Avatar for hgedek

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 …

Member Avatar for vijayan121
0
307
Member Avatar for sjcomp

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 …

Member Avatar for sjcomp
0
104
Member Avatar for rayscosmic

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 …

Member Avatar for KevinADC
0
161
Member Avatar for bobrien314

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?

Member Avatar for bobrien314
0
801
Member Avatar for C#Novice

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 …

0
107
Member Avatar for shahriar2403

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 …

Member Avatar for ritstu
0
85
Member Avatar for curt1203

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 …

Member Avatar for big24fan
0
98
Member Avatar for kahaj

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 …

Member Avatar for Jx_Man
0
282
Member Avatar for chemicaldave

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 …

Member Avatar for chemicaldave
0
141
Member Avatar for jessc0108

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 …

Member Avatar for ptaylor965
0
78
Member Avatar for sukhy_1

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;

Member Avatar for sukhy_1
0
100
Member Avatar for aran87

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 …

Member Avatar for somedude3488
0
115
Member Avatar for emilio

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

Member Avatar for emilio
0
143

The End.