199,114 Archived Topics
Remove Filter ![]() | |
The two classes from the Queueclass5.cpp program are displayed below. Please add another method which will search the Queue for a name which is supplied in its parameter and will return a Boolean value of true if the name is found, or false if not. The method will have the … | |
Hello all, I'm having a datagrid view with some columns in it. Now my problem is to enable on the 1st columns cells to click and the rest along with the header must not be able to click or disable it. Can some one help me with the code please..... | |
code file is attached .... [CODE][#include<iostream> using namespace std; class citizen{ char* name; char* nationality; public: citizen(){ //default constructor name = "Usman"; nationality = "pakistani"; } citizen(char *aName, char *aNationality) //parameterized constructur { name = new char[strlen(aName, aNationality)+1]; strcpy(name, aName); strcpy(nationality, aNationality); } citizen(const citizen &obj){ //copy constructor name = … | |
Is it possible to search for a string in an array that is in a larger array? I have an array that contains arrays of either one, two, three, or four strings. for instance: myList[1] = ['dog', 'cat'] myList[2] = ['lizard', 'sheep', 'pig'] I want to search for 'sheep' Is … | |
Ok so I have been working on this for 12 hours straight and I cannot get it to work right to save my life. Attached is the word document of what the project is suppose to do and the file its suppose to read from. [B]ANY HELP IS GREATLY APPRECIATED … | |
Hi, I am making a form validation for my website. I need to put red asterix (*) in the compulsory field. In my form, if "Country" value is Australia, then the "State" and "postcode" field is necessary. If "country" is not Australia, then the "state" and "postcode" field are optional. … | |
I want to implement a countdown timer in a game, but need some help figuring out how to do it properly. I know that this is probably a very regular question that has been asked a thousand times, but I've been trying out some methods I found through searching, but … | |
I wanted to know how people here in DW use which templating system | |
Hi all, Is it possible to use the same javascript code in a while loop? The first record that is pulled from the database displays the javascript counter. Yet on the second iteration of the while loop (a new record pulled from the database), the javascript just seems to get … ![]() | |
Hi All, I've got this problem. I'm trying to write a method that will (Using WMI) start a process on a remote computer. This remote process runs an application that should open a command window and send the keys to start a program in that command window. The command window … | |
My turn to ask a question.... Does anyone know how to open a report (.rpt) in Crystal Reports 2008 using vb6? I have just spend a lot of money purchasing this and now it seems that it is not compatible with vb6 at all. It was working fine in earlier … | |
Hey guys, i need to get the URL of an image on a webpage that im currently on in the webBrowser1 on my C# program. The image does not have an id and everytime i go to that page, the image is different, so i need to extract the URL … | |
Im trying to find out what are the most optimal steps in web devlopment. I largely work alone, on relatively small applications and spend a few months on a project. Kindly suggest me if these steps are right: [B]1. Making prototype [/B] using html or image editor [B]2. Designing the … | |
Hi - I get the following "The program is still running! Do you want to kill it?" from the python IDE when I run the following splashscreen. Any ideas on how to fix it? [CODE]#!/usr/bin/python import wx class MyFrame(wx.Frame): def __init__(self, parent, id=wx.ID_ANY, title="", pos= wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE|wx.SUNKEN_BORDER): wx.Frame.__init__(self, parent, … | |
Hi all I am aware of possibility to have an array of objects (usually Strings) as the parameter options, so we can have buttons with custom labels. Is there any easier way to just for example change the value of OK_OPTION option button label/text from "ok" to "okAy" ? Thanks … | |
Recently i needed to override dome default values of swing properties ... I got the answer currently needed.Details are located [URL="http://www.daniweb.com/forums/post1210384.html"]here[/URL] But after that i interested to find a way to have all these pairs (simply HashTable keys and values elements) to override them at the startup of applications to … | |
I use textwrangler for osx right now, but i want to see what other free ide's are out there. Is there one with tabs for classes and object to be separated? | |
Ok so i have a uni assignment to delete lines of text out of a text file, so far i have figured out how to search the text file for specific bits of text, i,e name of user, ive also used a loop to find out what line in the … | |
im trying to create a class that will create a 20x20 grid with 5 random x's and 100 random o's. But its currently giving me ascii chars instead. any help would be appreciated! [CODE]#include "Lifegrid.h" using namespace std; int main() { int r1; int r2; int r3; int oldi; int … | |
I have to implement a simple infinite sum which estimates the value of PI. The more iterations of the infinite sum, the more accurate the value of PI. Using the equation PI=4x(1-1/3+1/5-1/7+1/9-1/11+1/13-....) .The details of the program are as follows: 1. The program must have a small menu for the … | |
Hi, I am starting out with linkedlists and would like to know about using another class in a linkedlist. Here is what I am trying to do: [CODE]LinkedList<Student> list = new LinkedList<Student>(); list.add(new Student("Name", 92, 87, 81)); [/CODE] I have no idea what the student class would look like! Would … | |
hello. i have a database with school names, their budgets and their expenses. i have to write trigger not allowing to increase expenses, but only to lower their value. if someone wants to increase it, there should be message. i know i have to remember somehow the old value and … | |
Hey, right now I am working on implementing a matrix class for an assignment. I am using vectors in order to implement it and am having some trouble with adding matrices together. In my private I have defined: int nRows, nCols; vector<int> data; Here is my code for the operator+; … | |
hi guys, im currently working on an assignment where i have to create a secure chat room program, it works by one main chat server and then each client can log in and send messages to the server and the server will send the messages back to everyone that is … | |
![]() | Hi I have a database with many staff members and each staff member has many Customers assigned to them. I want to export customer details to a separate excel file for each staff member. I don't want to have to do this manually as its going to take up time. … ![]() |
We have an Eclipse RCP application and in case of server disconnection we would like that the cursor changes to HOURGLASS. It works ok for a normal frame, but if a dialog is active, then in dialog the cursor remains ARROW. Any idea? | |
What features does PHP/MySQL provide to deal with concurrent systems? E.g, If I have a table, and I only want to allow one user to update at any one time. I want to put a lock on the database until the update is complete, then once that request is processed, … | |
Hi.I write a program in C for my microcontroller(PIC 18F452) but faced to a problem that related only to C language and that is; as you can see in my Main program and the two Functions I want to pass an array of ; " int adcvalmax[8] " which got … | |
Hi could somebody please help me with this as it is driving me nuts for hours!!! I keep receving the "NullReferenceException was unhandled " message: [code] public static Conditions GetCurrentConditions(string location) { Conditions c; c = null; c = new Conditions(); c.GetCurrentConditions(); XmlDocument xmlConditions = new XmlDocument(); xmlConditions.Load(string.Format("http://www.google.com/ig/api?weather={0}", location)); if … | |
hi, i am using visual studio 2008 standard edition, how can i add a calender control to the datagrid view, can someone please help me thanx in advance | |
Hi, I’m currently trying to develop a method to get a overview of all my different web templates I’ve created and (legally) downloaded over the years. I thought about a displaying them like Wordpress is previewing it’s templates view a small preview windows, displaying the concrete file with styles and … | |
Hi, i've tried several times, but haven't succed in making this: Classroom2 Name: | Date: Oliver | 12-10-10 Homer | 12-10-10 [COLOR="red"]Peter | 11-11-10[/COLOR] Classroom1 Name: | Date: James | 20-10-10 Lars | 20-10-10 [COLOR="red"]John | 11-11-10[/COLOR] How do i make a SQL statement that ONLY selects the lastest dates … | |
#include<iostream> using namespace std; class citizen{ char* name; char* nationality; public: citizen(){ name="Usman"; nationality="pakistani"; } citizen(char * aName, char * aNationality) { name = new char[strlen(aName, aNationality)+1]; strcpy(name,aName); strcpy(nationality,aNationality); } citizen(const citizen &obj){ name = obj.name; nationality =obj.nationality; } void showName(){ cout<<name<<endl; } ~citizen() { delete[]name; } }; int main() … | |
Not sure if I'm in the correct forum but... I have a form with three select boxes. Box 1 has a variety of choices, but boxes 2 & 3 are empty. When the person selects an option from box 1, box 2 gets populated with choices. When the person selects … | |
Hi My name is Karla, I'm seeking help for my friend who is a programmer. He created a Mp3 player, but he can't get it to browse files and directories in the same browsing window. He has created a Buttom for browse which loads a new window where we can … | |
hi, i am using VS standard 2008 and a sqlclient file, i want to get two fields from the database(same table) and merge it (as firstname lastname) and display in the datagridview combo column in the datagrid view, how can i do this, please can someone help me thanxx | |
Hey, I'm trying to create a program that lets you manage your own wordpress blog in multiple ways and shows you statistical data too and one of the functions that I was thinking about implementing is a function that of actually posts a comment on the blog but I'm having … | |
Well, um... Up to now I've been using a free host to do all my PHP messing around, and I've decided to purchase a decent web host and get serious. I previously had a great deal of help with securing my MySQL queries so that they wouldn't be injected, and … | |
[code] protected void currency_txt_TextChanged(object sender, EventArgs e) { amountSymbol.Text = currency_txt.Text; } [/code] I'm trying to change a label according to a TextBox, without a button that has to be pressed? | |
i have created a website application in asp.net using c# for our company's typical department.we dont have a server here.so it need to be deployed into a single computer.how shud i do it so that it can be used as a software in a click away... | |
//My project is in C#.NET 2.0 I have multiple forms in my mdi container window . [COLOR="Red"]When I tried to close mdi form , form closing event of a child form (which has current focus/active child ) occurs before the form closing event of mdi form.[/COLOR] Can anybody help me … | |
You have to write a program which takes 30 integers representing collection of coins. Each integer represents worth of each coin. The program should also take another input “amount” whose change needs to be found. Your program should be finding the change using minimum number of coins. If change is … | |
I HAVE 3 TEXTBOXES (txt1,txt2,txt3) WITH TWO BUTTONS ONE IS HTML BUTTON NAMED AS btnCalculate AND OTHER IS SERVER SIDE BUTTON NAMED AS btnAdd WHAT PROBLEM BOOTHER ME IS THAT VALUES COMES FROM DATA BASE FOR txt1 AND txt2 WHEN I PRESS btnCalculate JAVASCRIPT CODES ARE EXECUTED TO MAKE ADDITION … | |
the problem is- it is required to store 'big integers'(more than alloted space for integers), suggest a suitable method by which big integers can be stored , also device an algorithm for adding of such numbers.. the just need the method of achieving this.i can write the code in any … | |
Why ASP.NET is much better choice for programmers? | |
Hi everyone, i'm new in DaniWeb, so forgive me by some mistake, x) I need create a iterator, it can receive any kind of struct of STL, like map, vector, list, ... How i do that? Someone have any idea? Thanks by your attention. Best regards, Valter Henrique. | |
Hi guys, I have a link in my php page that looks like the following: [code] <?php echo "<a href=hotel-map.php?id=$pid>Map Details</a>"; ?>[/code] Although instead of the "map details" text I want an image there... can someone tell me how I'd do this please? I can't seem to find anything around … | |
Hi team, 1)There are 2 independent AIX platform available with 10g database running on it Mainly-Production and the other test machine 2)There is 2 tables which needs to be brought down from production to test machine I know expdp/impdp plays the key<commands as below-correct me if the below command needs … | |
im trying to download a file ... when i use this code first [CODE] response.AddHeader("Content-Disposition", "attachment;filename=\"" + Server.MapPath(strURL) + "\""); byte[] data = req.DownloadData(Server.MapPath(strURL)); [/CODE] it shows the error " The name 'Server' does not exist in the current context d:\proj\fledwnld\fledwnld\Form1.cs " then i do google search regarding this and … | |
I'm a newborn to programming and my instructor has thrown me to the wolves. I'm trying to compile this simple program but I get these syntax errors. 1>y:\d03423388\desktop\projct3\projct3\prjct3.cpp(16) : error C2059: syntax error : '<<' What do I do with '<<' ? |
The End.