199,114 Archived Topics
Remove Filter ![]() | |
[code]class Thing { public: int Item; Thing (int Value); Thing (int Value1, int Value2); int GetValue1 () const; int GetValue2 () const; private: int DataItem1; int DataItem2; void SetValue1 (int Value); void SetValue2 (int Value); }[/code]<< moderator edit: added [url=http://www.daniweb.com/techtalkforums/misc.php?do=bbcode#code][inlinecode][co[u][/u]de][/co[u][/u]de][/inlinecode][/url] tags >> How many member functions does class Thing have? … | |
hi to everyone , i have to make a program in jav which will fulfill following conditions. first of all, i have to make any alphabet by free hand drawing, like in ms-paint there is a pencil so by using that suppose i am writing b,c or any one alphabet, … | |
I am taking a complex exam for school and I have different programming questions I need help with. Any help will be appreciated. Thanks! Here they are: 1) A company with limited cash needs to bring up a Web server. Which OS/Web server combination has the lowest initial cost? A. … | |
During the program, Word is opened and displays a document. When Word is closed by clicking X or selecting File>Exit, the program must detect the event and reset controls. How is that done, anyone? | |
i have a problem on ejb please tell me the steps needed for running an ejb program with ant and with weblogic when i am using weblogic builder for generating xml files it is saying no j2ee component,why so | |
How do i use this str_replace with this [email]bla@bla.com[/email] [email]blac@bla.com[/email] [email]namit@namit.com[/email] and so on so i have setup $email = str_replace(" ", ", ", $mail_list); but it will only talk details if i do this [email]blac@bla.com[/email] [email]bla@bla.com[/email] It does not seam to find and replace return | |
Hi, now i have work on it for a long time it is working but, when it can not find the item any how it will print item not found + item found , i have no idea what is wrong any help welcome, thanks [CODE] .... ... .. if( … | |
Hello, I am still a student and this is an assignment, I'm not neccessarily looking for a solution but simpy an answer to guide me in troubleshooting this logical (I think) problem. I designed a simple program to seperate text data into usable fields in accordance with my assignment. I … | |
Hello, I have a few web applications that I have been running on one of our web servers at work and everything is fine. Rearrangements have come about and a change of server is needed. Therefore all the intranet websites/applications on one server were moved onto a new server. But … | |
We have a cold fusion website that uses an include file for the header. In that header file the page title field is set. This header file is included in every page of the website. So, every page has the same title. Without doing something real fancy, how can I … | |
Quick question: Normally when I have a function, I can make one or more of the 'last' arguments as defaults, for example: [code] string whatever( int a, string b="NONE" ) { //blah, blah, blah string temp= "WHATEVER"; return temp; } [/code] The benefit is that I can have one function … | |
Hi everyone. I am working on a project which has to change the value of a variable in the executable. Specifically, writing this program: [code]int a = -1; int b = 3; int c = a + b;[/code] I have to go into the executable and change the value of … | |
Ok so I execute a query and am now holding a complete recordset. ($rs_cust) Now when i check if results are returned and whether I am able to loop through this: i.e. While ($row=odbc_Fetch_array($rs_cust)) {Do something} Now I'd like to have it do something else if there are no results … | |
My preparation for SCJP 1.4 has over(in terms of theory),i am in disgust how should I practice the programs, which way is best to practice? in books I just found they have given programs based on concepts, I want to practice programs with their applicative areas. Please suggest me some … | |
Hi, im new at using asp.net and am having difficulty in displaying data onto a web page which has to be retreived from a data base. Pls can someone help? | |
Hey.. Does anyone know what libraries are needed for using GnomeDruid class (and other Gnome classes), and where can i download these libraries? Thanks! | |
hey guys, I know that in VB data can be taken from an access database then displayed in a flexigrid and I was just wondering is it possible to display the same data in a series of labels rather than a flexigrid as I was thinking about doing this for … | |
Hi, I'm using your RSS FEED link to get all the news or event that is happening in your forum. however i am only interested in whats happening in the Java forum. Is there a way where i can RSS only the Java forum? I also noticed that one is … | |
I need to search the pc for all files with a particular extension. Can anyone point the way ? | |
Explanation is a bit long so please bear with me, solution is short :lol: We got an assigngment from uni to create word dictionary program to read an external file where each line consist of WORD and DEFINITION separated by empty space. If some word exists more than once add … | |
Hi Friends, i am developing a Chat Application.. i want to design the my Contact Tree as like in the below image. [URL=http://www.megaupload.com/?d=TYKVH37L]Contacts Tree Image [/URL] (Sorry, i uploaded image in [url]www.megaupload.com[/url] .. -pls wait for 45 seconds.. i don't know how to attach my image to the forum.. if … | |
I am trying to make what I thought was a simple game. Here's what it is the user inputs a number and the computer tries to guess the number. This is done by means of less or more using the inputbox. function. This is what I have so far:- procedure … | |
hi, I have started programming (learning) to free myself from depencies.I do not know how to do the below. [COLOR=Navy]i made a form that has a input box for emai and two passord inputboxexs.on submit i have to pass the same email inputbox value as the hidden value for username.In … | |
I'm creating a JSP page for doing some actions on a database. Everything is working, but I have to add abstract classes as well. When I put the abstraction on a klasse and his two extensions, I get immidiatly a blue HTTP 500 apache status error. HTTP Status 500 - … | |
this is the error: Error Type: Microsoft JET Database Engine (0x80040E14) Syntax error in INSERT INTO statement. /proj/save.asp, line 26 ==== this is my insert into statement: Dim cat, desc, author, strSQL cat = request.form("category") desc = request.form("description") author = request.form("by") strSQL = "INSERT INTO " & cat & " … | |
What is the best script and/or class to parse an XML file from an ASP page? | |
Hi all, here's a bit of code for a registration page im working on. <%@ Language="VBScript" %> <%reg=Request("reg")%> <% if reg <> 0 then %> <SCRIPT LANGUAGE="JavaScript"> alert("Confirmed. The information has been entered.") </SCRIPT> <% End If Set Con = Server.CreateObject ("ADODB.Connection") Set rs = server.CreateObject ("ADODB.Recordset") Con.Provider="Microsoft.Jet.OLEDB.4.0" Con.Open(Server.MapPath("cesa.mdb")) sql … | |
i ahve database in which i hava login information iwa nted to check weather the persons login information is correct or wrong. i m very new to asp. so any body help how i have to proceed <%dim user,pass user=request.form("usercode") pass=request.form("pass") response.write(user) response.write(pass) ' Open database Dim Conn, RS Set … | |
i m develop a system related car in/out records. I got data fields like date, time in, time out, car numbers...... My problem is How to count the repeat records base on repeat car numbers on a certain date?( my purpose is count how many times a car in/out on … | |
My program compiles fine but I get a segmentation fault when reading in a dat file.... I had it in a loop but I thought thats what was causing the error, it doesnt even cout anything either. heres the code: [code]indata.open("lib/assign4.dat3"); cout << county[7]; indata >> county[8]; cout << county[8]; … | |
Hi, I am programming an app that I will use to launch different applications depending on the file type specified. I have found, and know how to use, ShellExecute from VB and all I now need to know is how to get the default action specified by the user when … | |
Is there something about adding a JList to GridBagLayout that I am missing. I want to place a JList between a JLabel and a JTextArea. No matter what I do the list seems to stay in column 1. I am only using GridBagLayout in the west pane(wP) I have tried … | |
Hey guys, I am thinking about creating a sudoku game in VB in order to improve my programming skills and as I am quite new to VB I was wondering would it be best to try this task using labels and text boxes or a felxigrid? Thanks in advance. | |
I have this function that takes info from two lists, and produces a list that shows their values in ... non interger form (0.8). I'm calling this function in a for loop, and this function gets repeated 20 times, pulling different info each time. This function works just fine, and … | |
I need to create a field in Access that included both text and the autonumber feature. We are a non-profit hospital organization and we have multiple locations so we want to create an ID field that is unique by location and still uses the auto numbering feature to generate the … | |
Just finishing up this assignment.. I need a code for the "Highest and Lowest" cmd button that will display the name and score in text boxes for the golfers with the highest and lowest from the golfer.txt file. Here is my GUI & code so far..... [IMG]http://www.geocities.com/rc_og/vb1.jpg[/IMG] Private Sub cmdDisplay_Click() … | |
Hi All, I'm messing around with different PHP scripts on my server. I can't seem to setup MySQL. I have installed and configured it. But I have now idea what to do with it. Is it like PHP where all you have to do is install it and its done? … | |
I would like to know if anyone knows of a reference website or help file for JavaScript. Not really a tutorial website, but more of something where I can search for a function and the engine will return my results for that function. A reference sort of like the PHP … | |
Hello i am freelance! my development is half finished please can you create a account and copy and test the codes on your webpages i offer please :o this would help me so much | |
Hi I want to use a File->Print choise in an application with the index written in a memo. how can i print the memo field as a text ? | |
Hello Everyone, I'm supposed to do RDBMS project using vb6.0 or vb.net.. any suggestions?? | |
Hi everyone, I am having trouble with a prgram that simulates Conway's Game of Life. I cannot get the program to run past a few generations. I think I am having trouble with the countNeighbors() or the genNextGrid() functions that is causing the game not to function properly. Anyone have … | |
Can someone help me, I've been trying forever and still can't get it. I need to get my C++ program to print in dos enviroment. I need it to print the words "Hello" when i push something and nothing else. #include <cstdlib> #include <iostream> #include <conio.h> using namespace std; int … | |
Hi there, How's everyone doing? Ok, being just a lowly biz owner LOL, I need someone who's an expert in MySQL/PHP to see if this guy is as good as his software seems. I have no clue how to go about screening a programmer. In fact I'd love to start … | |
I am really impressed with the advancement of open source software. Projects like mozilla and linux are really amazing. What programming languages do most of the open source projects use? Do you think open source projects will continue to take market share from the big guys? | |
I have a class Person and a Class Store. I didn't find any way to really inherit Store in class Person, so I created Class Store in a namespace called StoreClass. In the person class this doesn't work: using namespace StoreClass; it says that namespace StoreClass is undeclared. I also … | |
Hello ladies and gents, I was reading about how "Passing by References" for efficiency and there was a little program added wich shows what the difference is between passing by value and passing by reference is. The program is this one: [code] #include <iostream> using namespace std; class SimpleCat { … | |
I have the following code: [code] ostream Person::operator<<(ostream& out, const Person& p) { out << "/n*********************************" << endl; out << "Name: " << Person::getName() << endl; out << "Age: " << Person::getAge() << endl; out << "Health: " << Person::getHealthLevel() << "%" << endl; out << "Happiness: " << Person::getHappinessLevel() … | |
Hello there, I am having problems with this code i have written and it is a tic tac toe program. It runs and everything but it doesn't get a winner when i call the method getWinner. this method is suppose to return 'x', 'o' , or ' ' depending onwhether … | |
i have been making a program using vb2005 but now it is done i have found that it will only work on a computer with .net framework 2.0beta which is currently only in windows vista and not in windows xp unless you download it from microsoft. because of this i … |
The End.