199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for CMacDady

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 …

Member Avatar for CMacDady
0
109
Member Avatar for Laidler

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

Member Avatar for Laidler
0
174
Member Avatar for lllllIllIlllI

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 …

Member Avatar for lllllIllIlllI
0
88
Member Avatar for asifkamalzahid

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

Member Avatar for asifkamalzahid
0
2K
Member Avatar for Undermine

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

Member Avatar for StuXYZ
0
594
Member Avatar for pentahari
Member Avatar for jbennet
0
109
Member Avatar for elsa87

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

Member Avatar for cikara21
0
513
Member Avatar for karang

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 .

Member Avatar for Agni
0
241
Member Avatar for adam291086

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 …

Member Avatar for adam291086
0
166
Member Avatar for preet4fun

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

Member Avatar for preet4fun
0
168
Member Avatar for mariappan.s

hi friends.. In asp.net , i want to show the gridview when keypress in textbox.. how to do in javascript..

Member Avatar for greeny_1984
0
164
Member Avatar for adam291086

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]

Member Avatar for paddy3118
0
93
Member Avatar for fireup6

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 …

Member Avatar for LizR
0
329
Member Avatar for CollegeKid101

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 …

Member Avatar for CollegeKid101
0
89
Member Avatar for igeek

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 …

Member Avatar for Dani
0
133
Member Avatar for faisaly

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 …

Member Avatar for Salem
0
107
Member Avatar for Max721

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 …

Member Avatar for Salem
0
121
Member Avatar for dottomm

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 …

Member Avatar for dottomm
0
149
Member Avatar for ombadboy

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?

Member Avatar for Salem
0
90
Member Avatar for gtamawale
Member Avatar for gtamawale
0
131
Member Avatar for Frosty[tnt]

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 …

Member Avatar for Frosty[tnt]
0
129
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
206
Member Avatar for krm142

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 …

Member Avatar for krm142
0
275
Member Avatar for murderotica

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 …

Member Avatar for murderotica
0
111
Member Avatar for denine

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

Member Avatar for denine
0
128
Member Avatar for monotone-mop

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 …

Member Avatar for monotone-mop
0
127
Member Avatar for tag234

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

Member Avatar for tag234
0
86
Member Avatar for Krysis

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 …

Member Avatar for Krysis
0
5K
Member Avatar for sayaan

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 …

Member Avatar for PomonaGrange
0
117
Member Avatar for sambafriends

strunct num { int count; }; void main() { num n1; num *p; p=&num; scanf("%d", p->count); printf("%d", p->count); } when I attempting to do this one I got the error message like 0 Null pointer .....

Member Avatar for sambafriends
0
277
Member Avatar for tuse

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

Member Avatar for tuse
0
215
Member Avatar for HI2Japan

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 …

Member Avatar for HI2Japan
0
173
Member Avatar for paddy_c

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 …

Member Avatar for PomonaGrange
0
131
Member Avatar for hassanzubair786

Hi Every Body Any one tell me how i add login form and database in my site <URL SNIPPED> PLz Tell me

Member Avatar for sayaan
0
83
Member Avatar for NickMalone85

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 …

Member Avatar for NickMalone85
0
88
Member Avatar for MJFiggs

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 …

Member Avatar for MJFiggs
0
121
Member Avatar for snowsurfer32

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 …

Member Avatar for PomonaGrange
0
112
Member Avatar for sivak

anyone tell me what is the use of webservices ....in which condition we should go for webservices in c# .net? any example?

Member Avatar for Jugortha
0
108
Member Avatar for pavanbandi

Hi all, i am new to this forum.can u please explain,how we can read data from pdf.

Member Avatar for Jugortha
0
132
Member Avatar for Catherinedally

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 …

Member Avatar for coolkeg
0
131
Member Avatar for Shinedevil

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 …

Member Avatar for Shinedevil
0
111
Member Avatar for squidd

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 …

Member Avatar for squidd
0
193
Member Avatar for tiger86

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 …

Member Avatar for jbennet
0
146
Member Avatar for hbmichael

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 …

Member Avatar for jbennet
0
127
Member Avatar for chunalt787

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 …

Member Avatar for chunalt787
0
303
Member Avatar for anusumesh

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 …

Member Avatar for LizR
0
359
Member Avatar for TomRandall

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

Member Avatar for LizR
0
705
Member Avatar for TomRandall

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

Member Avatar for LizR
0
136
Member Avatar for egolovin

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 …

Member Avatar for ArkM
0
137
Member Avatar for Krysis

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

Member Avatar for Krysis
0
138

The End.