199,114 Archived Topics
Remove Filter ![]() | |
OK I have a function that calls an array of class types and I need to remove any duplicates from the array. That is what the function is for. So I created an operator overload for the '+' operator and made a 'Changebalence()' mutator that add two doubles for me … | |
import java.util.Scanner; class TestTelevisionV3 { public static void main(String [] args) { Television tv = new Television (4, 8, true); tv.printImage(); System.out.println(""); System.out.println("Press P to turn Power On or Off"); System.out.println("Press C to Change the Channel"); System.out.println("Press V to Change the Volume"); System.out.println("Press Q to quit"); System.out.println(""); Scanner myInput = … | |
Yesterday, i was programming a program in Java when i came accross something i though was just amazing. I could read and write complete Obects with just one line of code! They would go to a file and when i loaded then they would be straight back, without me having … | |
[I]n the following program i have the error [COLOR="Red"]Warning: ftp_delete() [function.ftp-delete]: Access is denied. in G:\WEBROOT\wilbourn\ftptest\uploadfunctionpage.php on line 89 could not delete wilbourn/ftptest/t.DOC [/COLOR] [/I] [CODE] <?php //Move or Upload Folder Using PHP FTP Functions function moveFolder($_server, $_user_name, $_user_pass, $local_dir, $remote_dir) { echo"$_user_name <br/>"; echo"$_user_pass <br/>"; echo" directories are : … | |
I'm trying to make a shuffler for a blackjack program it's supposed to give me back a random number from a deck of cards each time i call it. But it's also supposed to keep track of cards out of the deck.. I need to make it a function call, … | |
how to register the dll and ocx using visual basic 6.0 in windows vista. | |
hi everyone.. i need to ask 2 questions.. first..is the below code done using recursion or not? second..how can i make the below code take input from a text file instead of generating random numbers and make the output go to a new text file? [code=cplusplus] #include <iostream> using std::cin; … | |
HI I am getting this error Error 11 fatal error C1083: Cannot open include file: 'Test/Testnamespaces.h': No such file or directory I have included the following statement in the code using namespace Test; Can anyone please tell me the reason for this . | |
I am trying to read in a simple xml file and display all the child elements all i get is the error [QUOTE]Traceback (most recent call last): File "/Users/adamplowman/Documents/Uni/project/python/test_xml.py", line 10, in <module> for element in tree: TypeError: iteration over non-sequence[/QUOTE] Here is the xml file [CODE]<root><child>One</child><child>Two</child></root>[/CODE] and this is … | |
[CODE]#include <iostream> #include <string> #include <vector> #include <fstream> #include <iomanip> using namespace std; void getData(ifstream& infile, vector<int>& itemID, vector<string>& itemName, vector<int>& pOrdered, vector<int>& pInStore, vector<int>& pSold, vector<double>& manufPrice, vector<double>& sellingPrice); void do_again(),usersChoice(char ans); void searchInventory(string searchInput); void printReport(); void printHeading(); void sellStock(string sellItem, int numSold); int showMenu(); int ans(); vector<int>itemID, … | |
hi friends.. In asp.net , i want to show the gridview when keypress in textbox.. how to do in javascript.. | |
I have the variable Adam that contains some information. Later on i have some more information to add to the variable adam. How can this be done something like [CODE] adam = "john" adam = adam + "mike" [/CODE] | |
Im using CodeGear Delphi 2009 Builder. I also installed C++ builder so i have all the .c .h includes. I downloaded the source of an application and without making any changes i tried to compile. I get many errors in most units: [IMG]http://img376.imageshack.us/img376/6752/26142144un0.jpg[/IMG] I've spent hours trying everything. Some of … | |
Hello, Hey guys, love the forums here, very nice. I am having a bit of coding problem with an assignment from college. (I read the announement no worries I am not looking for you to do it for me ^_^) Anyway, I have a form, which I am not done … | |
I'm working on a web app in which each user will have their own account. Each account would have its own data (duh) and this data needs to be kept separate from everyone else (either by putting it in another database JUST for that user or combining all data into … | |
Please explain me in breif with point. 1. a) Name what are the main risk factors arise during the development of the project. And what strategy you will use to mitigate these factors also illustrate that what is the effect of these factors on the final deliverable of your project … | |
I didnt know i must post code here so sry everyone :). So my problem is next: I have two exes that need to excange data. I tried using standard ::CreateProcess() and ::GetProcAdress() functions but got errors. I presume thats becouse exes are in different processes. I cant use COM … | |
Hi, Thanks in advance for any help someone could offer. I'm trying to display a list of stories submitted to my site from a table titled stories, the name of the person who submitted the story and how many comments about the story have been posted. I'm working with three … | |
Can someone suggest me a method to convert a floating point number into binary using assembly? for example 5.5 would be 000..101.1 but how would you go on about this in assembly? | |
i m doing project for my college and i need a effective menu bar for php. guys help me | |
Hey everybody this is my first post here and just learning PHP and need some help on an infinite loop problem. The code is supposed to find how many ways you can change a $1 dollar bill into coins using dollar coin, half dollars, quarters, dimes, nickels, and pennies. But … | |
Hello All Greetings I want to use Lame enc windows DLL procedures. I'm not very dipped in DLL things but it is that I want to use it in my Encoder. Any way can I use it in python?? Also Any suggestion on CD ripping library and Vobis/Ogg/Flac/wma encoder library … | |
Hi frnds.. Need help in writing a small script... I have the following text file... 1)PPI2MSNK I5 P50 2) PIAIS Major 3)PPI2MSNK I5 P51 4) PILOS Major 5)PPI2MSNK I5 P57 6) PIAIS Major 7)PPI2MSNK I7 P57 8) PIAIS Major I want the script to join the line 1-2 , 3-4 … | |
Hello there, I've installed VSTO to my pc and I'm trying to make an application using the MS Office in my VS (2008). I've already added the reference to Microsoft.Office.Tools but when I compile it, it gives me the error: [QUOTE] The type or namespace name 'AddIn' does not exist … | |
anybody can help me to fix my counter. until now i'm still stack on this error. [U]counter[/U] For i = 1 To grd.Rows - 1 With INV If grd.TextMatrix(i, 0) = INV!ProdCode Then .Edit !Quantity = !Quantity + Val(grd.TextMatrix(i, 3)) .Update Else .AddNew !ProdCode = grd.TextMatrix(i, 0) !ProdName = grd.TextMatrix(i, … | |
This is my first post, and I'm VERY new to C++, but I just finished my first class, and upon requesting the final, I was told to re-do one of my programs, because instead of computing the values, I just displayed them. (It never said I needed to.) Now that … | |
Hello, i have a simple question about pointers... The code that goes with the problem is: [code] int* getPtrToArray(int& m) { int anArray[5] = { 5, 4, 3, 2, 1 }; m = 5; return anArray; } int main() { int n; int* ptr = getPtrToArray(n); for (int i = … | |
Hello again... So, I'm trying to read a file line-by-line and compare the first 5 characters of that line (that was read in) to another character string. If they don't match then it moves on to the next line of the file and tries to compare again. The problem I'm … | |
Hi everybody, I'm new in this forum, I'm a PHP developer looking for good solutions for changing colors, fonts, styles of a site on the fly. The idea is, the user will be given options to customize his/her web site's font, color of various elements etc. and then the site … | |
strunct num { int count; }; void main() { num n1; num *p; p=# scanf("%d", p->count); printf("%d", p->count); } when I attempting to do this one I got the error message like 0 Null pointer ..... | |
Hi! I am using the following code for a file upload- [code=php] <?php if(isset($_POST['b1'])) { if($_FILES['uploadedfile']['name'] !="") { $target_path = "/home/infotech/myhomepage/uploads/"; $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); echo("Temporary Location is: ".$_FILES['uploadedfile']['tmp_name']."<br />"); echo("Target Path is: ".$target_path."<br />"); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; … | |
I'll start off saying I am not a programmer. I am making a database that imports data from Word forms. It requires code and I found some that works almost perfectly for me at [url]http://msdn.microsoft.com/en-us/library/aa155434(office.10).aspx[/url] It does exactly what I need. The only thing that would make this code better … | |
ive been getting loads of errors on a script that im trying to install.. so far ive fixed a few of them but now im stuck here Parse error: syntax error, unexpected T_RETURN in /home/wwwulti/public_html/network/install/index.php on line 668 [img]http://www.daniweb.com/forums/attachment.php?attachmentid=8340&stc=1&d=1227550169[/img] looks like the same things guna happen on line 670 any … | |
Hi Every Body Any one tell me how i add login form and database in my site <URL SNIPPED> PLz Tell me | |
I am using MS SQL server, and I'm trying to create a SQL query that adds data to a "Reminder" table if data in the "Occurrences" table meets certain criteria. This might be a little difficult to explain. Here's the problem... I have a table "Occurrences" which i updated every … | |
Okay, so I've been working on a program that will allow the user to input what items they want into an array and make the output look like this: Item 1. Sword Item 2. Shield Item 3. Sword Item 4. Armor with some help, i was able to figute that … | |
HI, If anyone could help me it would be great! So I am building a website for some snowboarders and they would like to collect Emails for their newsletter. this is the code i have put in. I know it is simple but when People submit there emails I want … | |
anyone tell me what is the use of webservices ....in which condition we should go for webservices in c# .net? any example? | |
Hi all, i am new to this forum.can u please explain,how we can read data from pdf. | |
Ok I need to be pointed into the right area where I'm going I seem to be lost and more I read it confuses me more. My assignment is: Create a C# project to process 10 students result. Use arrays to keep all the students details in terms of Student … | |
This was orignally posted in C++ Foums: Hey, I'm new to this forum. I'm having trouble making a mapping/navigation type program. Kind of like one where you type in "N" and you go north. But more complex, scince i'm creating an rpg. (In command prompt console) I need to have … | |
This is a VB6 question. I seem to have a problem with a form that should be unloading or at the very least become not visible. For whatever reason when another form is shown (form2.Show as an example) or made visible (Form2.Visible = True, next line would say Unload Form1 … | |
Okay so I am designing a game (that's why I am in this forum.) I want to know from people with experience what language is the best to code in? I see a lot of sites code in flash; though some of them are on phtml pages. Any info will … | |
Hey All, Does anyone know, or have a link to an article, that would tell me how to distibute a .net MONO application? The full package of Mono is like 75 MB but I know al lot of that is the compiler and libraries that I don't need. I just … | |
I am trying to pass the size of the matrix array during the constructor but its giving me the following error. Is there a different way to do this? [CODE]In file included from Main.cpp:1: AdjacencyMatrix.h: In constructor ‘AdjacencyMatrix::AdjacencyMatrix(int, std::string)’: AdjacencyMatrix.h:13: error: ‘numberOfNodes’ cannot appear in a constant-expression [/CODE] Line 13 … | |
Hi all, I am writing one application using c# in which firstly I m getting impersonating the user and then i want to retrieve mapped Drives. But issue is when I am calling method in following sequence: 1. create object of class 2. call mappeddrives() method 3. call impersonate method … | |
Hi All, I'm very new to Delphi and I'm stuck with this (hopefully very basic) question. How do you reset a form when it's closed? I have 2 forms, say "form1" and "form2", when you click a button on form1 it opens form2 via form2.ShowModal; on form2 you input data, … | |
Hi, I'm using a form with a StringGrid and a few buttons, by default the buttons are disabled and I'm wanting them to enable when certain entries are selected in the StringGrid. I've got the code to enable/disable the buttons depending on what StringGrid row is selected on the "OnSelectCell" … | |
I am looking for a command where i can press m and it pulls up my menu function. i feel retarded cause i tried to look it up but i dont know what i should look for exactly i know qbasic has a inkey command but i cant figure it … | |
[COLOR="Red"]ATTENTION[/COLOR]: SKIP WHAT'S WRITTEN IN [COLOR="Red"]RED[/COLOR] UNLESS YOU WANT TO KNOW [B][I][U][COLOR="Red"]EXACTLY[/COLOR][/U][/I][/B] WHAT'S GOING ON... NOT NEEDED THOUGH! Well, let me first ask the general question/problem that's plaguing me in this "Coded Adventure"... [COLOR="blue"] "Let's say I've opened a file for reading and the file that I'm reading contains: Hello … |
The End.