199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for David Wang

[B]Game I am about to make:[/B] Coins are randomly drawn from a set of possible coins and arranged in a line. Two players alternately remove and collect a coin from either end of the line. The game ends when all the coins are removed and collected by the two players. …

Member Avatar for Ancient Dragon
0
175
Member Avatar for leroi green

Hey all, got a syntax and run prob with a program I'm working with that takes in rainfall amounts and then shows the total rainfall amount and then gives an average of. I then end up displaying those figures for the user. as you can see below in the CalcTotalAndAverage …

Member Avatar for leroi green
0
102
Member Avatar for edek

The program as it is generates: [ICODE]>Parent1 >Parent2 >In Child >Parent3 Successfull...[/ICODE] If I remove the comment from line 31 - just below "//THE PROBLEM:" so the "gets(buff);" is executed it gives: [ICODE]>Parent1 >Parent2[/ICODE] and... waits (both parent and child processes running - both waiting). I would like to be …

Member Avatar for vijayan121
0
261
Member Avatar for brr

in the below text sum the amount to those FLAG & MA_NAME fields are same and put them in one array, and unique item append to that array i did some work but difficult to get unique items [TEX] FLAG MA_NAME SUM_AMT -------- ---------------------------------------- ---------- Credit CASH 7777 Credit Salaries …

Member Avatar for jwenting
0
91
Member Avatar for santoo

[B]Hi, How to connect to sql server...on a remote system using the IP address of the machine. I actually want to start the MSSQLSERVER on a remote machine using the sql service manager. how can this be done. thanks.[/B]

Member Avatar for JerryShaw
0
120
Member Avatar for Littlen

Hi all Ive writing a simple j2me program to read from a file. Im running the midlet on a pda but im having trouble accessing the file. Im using J9 JVM on a Dell Axim, ive also installed the JSR-75 (which is need to access files), however im still having …

Member Avatar for Littlen
0
95
Member Avatar for Seamus McCarthy

Please help i'm trying to click on the screen just inside the box coordinates of (x,y) but it clicks everywhere on the screen!! [code=cplusplus] void cursorpoint() { #include "cursor.h" int x ; int y ; //x will have the x position and y will have the y position of mouse …

Member Avatar for Seamus McCarthy
0
147
Member Avatar for Black Magic

Hey, Say if i made a program where people could register a account, but if they closed the window, the program would close and not remember passwords yeah? Well if i used the open file etc could i save the password's to a file so it remembered them? Many Thanks. …

Member Avatar for Black Magic
0
78
Member Avatar for Hjcooke

Hi i have variouys different javascripts i have found on the net that allows me to generate random images, images as links and random text. Can any one help me create and all in one random genrator so i have text with an image as a link? Many thanks

Member Avatar for peter_budo
0
513
Member Avatar for Vach

Hey pls suggest a suitable topic for a final year project for the BSc. has to be feasible to do.. i have an average knowledge of Java. Thanks.

Member Avatar for jasimp
0
94
Member Avatar for Kythas

I'm trying to parse through a large file (544,000+ rows). I'm pulling information from each row and creating a SQL statement with that information, and trying to remove duplicates. Here is my current code: [code=Python] try: fdata = open(vhdat).readlines() except IOError, detail: print "Error opening file. ", detail # Define …

Member Avatar for jice
0
134
Member Avatar for oslover

Hi i am new here and I post this topic hoping that i will get some urgent help. I tried this code which should work to export customers emails according to their orders' status but the exported file contained an error. This is the error: PHP Code: [CODE=html]<br /> <b>Warning</b>: …

Member Avatar for ultra vires
0
124
Member Avatar for aminit

Hello: I'm using VC# 2008 , I created a simple project, I want to make my project is executed, it must run even if there is not VC# installed on the computer???Any idea please.... Thanks in advance...

Member Avatar for aminit
0
69
Member Avatar for VisActualyBasic

Hi everybody, I have following code: [ICODE]Public Class Form1 Private Sub btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn1.Click Dim dayChange As Date = dtp2.Value Dim answer As Date answer = dayChange.AddDays(1) dtp2.Value = answer End Sub End Class[/ICODE] Working : each time I click btn1 datetimepicker changes …

Member Avatar for VisActualyBasic
0
249
Member Avatar for isiebe

hi, is it possible to make any control (like button/textfield) transparant, just like the "alpha" method in flash? tnx

Member Avatar for scru
0
89
Member Avatar for marceta

Hey guys, I'm working on a basic search engine and am really close to completion. I currently have a function that takes a string and compares each word and its synonyms to a webpage. My output at the moment is [("closeness" percentage of terms to webpage, webpage contents,(x,y),(x,y)...(x,y)] I am …

Member Avatar for jrcagle
0
176
Member Avatar for AshishMehra

Hello All, I am trying to write a program that gets input from a USB Tv Tuner and records/captures images for further analysis. Could someone point me in the right direction and tell me what I need to do to enable my program to read in from a USB port …

Member Avatar for AshishMehra
0
90
Member Avatar for knish

Hi, scheduler.py has a function weekdaytask. It needs five parameters as stated in the scheduler.py. weekdays and timeonday I figured out. You tell me what is name and action, args=None, kw=None ? BRgds, kNish ===================================================== class WeekdayTask(DayTaskRescheduler, Task): """A task that is called at specific days in a week (1-7), …

Member Avatar for jrcagle
0
167
Member Avatar for szt1234

Hi, Can anybody help? It's about summing up the elements of column called Gyujtemeny and then column Duplak of a table of an Access database and presenting the result using ASP code. So each column is sum up by its own not one with the other. [code=html]<%@ Language="VBScript" %> <% …

Member Avatar for rupali87
0
111
Member Avatar for rajeshkhanna_in

Hi all Does anyone know about any software which will help me in making a question bank for my students? Also I want the software to help me in making a question paper for the students from the question bank that I create. Thanks in advance any help will be …

Member Avatar for mrhard2004
0
100
Member Avatar for swingingstars

Hai... I'm new to Ajax.. I've seen many cool site pumped with ajax requests. How can I fill the content with ajax responseText ONLY after the page structure has been fully loaded? is it matters if the file is not an html? is .html file faster to render than .php? …

Member Avatar for swingingstars
0
180
Member Avatar for Adila

i got until here.. [code=java] public class ButtonListener implements ActionListener { public void actionPerformed(ActionEvent buttonEvent) { int delay = 1000; //milliseconds ActionListener taskPerformer = new ActionListener(){ public void actionPerformed(ActionEvent evt) { JFrame myFrame1 = new JFrame(); MySadFace sad = new MySadFace(); myFrame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); myFrame1.getContentPane().add(sad); myFrame1.setSize(400, 200); myFrame1.setVisible(true); } }; Timer test …

Member Avatar for Adila
0
217
Member Avatar for rimmytose

Hi, first time poster here and I am trying to run the Twofish implementation that I found online. I have a very basic knowledge of C++ and I am only trying to get these files to run so that I can analyze encryption times and decryption times for a class …

Member Avatar for mitrmkar
0
108
Member Avatar for wollacott

You will read in a file supplied from the commandline (filename.ext,) and write/overwrite out a file which will be called (filename.ext.mng.) This file will be essentially the same as the original file, but will have all characters on all lines the reverse of the original. For example: The original file …

Member Avatar for Aia
0
132
Member Avatar for camdes

I have an HTML form for authorised users to upload photographs and am having problems with file size. I have my test server restricted to 2m filesize upload and am trying to add something to tell my users if they go above this. I have tried using a hidden field …

Member Avatar for somedude3488
0
91
Member Avatar for death_oclock

I'm writing a program that opens another console application with redirected input and output handles. I don't get any errors when I run this, but the console closes immediately, despite the system("pause") at the end. With the current solution, I have it redirecting to files, but another solution using pipes …

Member Avatar for death_oclock
0
272
Member Avatar for isiebe

Hey, I've made a nice class Tween, and any control on the form can call it like this: Tween tw = new Tween(btn_generate, "height", 40, 0.4, "easeOut"); BUT, would it be possible to call the tween function like this: btn_generate.Tween("height", 40, 0.4, "easeOut"); That would be a huge improvement tnx

Member Avatar for $dunk$
0
76
Member Avatar for Aamit

[code] #include <stdio.h> #include <dos.h> #include <conio.h> int main() { int i; printf("CMOS Dump (format [address=value])"); for(i=0;i<128;i++) { outp(0x70,i); if(i%8==0)printf("\n"); printf(" [%2x=%2x] ",i,inp(0x71)); } } [/code] This program compile but not run ,it give runtime error. How to solve it??

Member Avatar for Salem
0
104
Member Avatar for Mark515

does anyone know the code to output "Wrong password final try" on a 2nd unsuccessful password input? and then make the program go back to the default start position for the program below? [code] #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; static const int password=1705898; int main() { …

Member Avatar for Sky Diploma
0
91
Member Avatar for ryy705

Hello, Is there a way to install an email server on a personal computer? I don't need a fully functional email server with all the bells and whistles. I just want to build my website on my personal computer before I upload everything to a real web server. In order …

Member Avatar for ryy705
0
64
Member Avatar for doddware

Hi everyone, Please bear with me this is my first post here at daniweb. I usually develop in C or assembly for embedded systems, but occasionally I have need to develop a PC application using C/C++ and have relied on Visual Studio C++ 6.0. Unfortunately I recently purchased a laptop …

Member Avatar for doddware
0
134
Member Avatar for some one

Hi every one I am facing alittle problem I have a drop down list that enable the user to select a number when the user select anumber another drop down list will appear i write the code and it work with me but when i put it in a multi …

Member Avatar for some one
0
107
Member Avatar for Google Spider

Hi, I'm getting seg fault in this [code] #include <iostream> int main() { char *p; *p='w'; std::cout<<p; return 0; }[/code] I'm sure it is due to the line [code] *p='w';[/code] I interpret this line as [QUOTE]Value at address p = 'w'[/QUOTE]. I would like to hear an explanation on why …

Member Avatar for Google Spider
0
137
Member Avatar for farifari

hi,, can anyone tell me how to use constraints in VB.net,,, like i mean to say if i have value 10 to 20cm,, or it can b some other also,, n i wana put some constraint to that if the user wana put value above or below this value , …

Member Avatar for ptaylor965
0
153
Member Avatar for berserker

Hi! I'm new to python and having some troubles comming off java's very strict and formal OO approach. why does the following code snippet below throw this error, when I'm trying to call GenerateMoves() on an object? NameError: global name 'CheckIfRegularMove' is not defined i am trying to call the …

Member Avatar for Ene Uran
0
160
Member Avatar for sdann

Hi! I'm trying to learn PHP but as proceed with tutorials I encounter more and more problems. and I'm not sure if they are arising from my mistakes because I just rewrite very simple tutorial excerisies. I get this two errors when I load table1.php in my browser: Warning: mysql_num_rows(): …

Member Avatar for sdann
0
152
Member Avatar for prethum

hi i have a problem i need the same thing pop up a windoow when user clicks the link hear is my code plz tell me if i made a mistake [code=php]<html> <head> </head> <body> <? $company= $_REQUEST['companytype']; $companytype =mysql_real_escape_string($company); echo "<h1> <font color=green>Results For $companytype</font></h1>"; $query = "SELECT companyname,companytype,address,kommun,postcode,telephone …

Member Avatar for helraizer
0
113
Member Avatar for leedsy7

Can anyone provide me with code on how to Delete a row from a list box?? lstReorder.RemoveItem (index) I believe is the right code. However this does not actually do anything by itself. How do i tell the program what the index refers to? ie what the index is? for …

Member Avatar for Henry Schubel
0
1K
Member Avatar for brightline

I had stored a word file in database in "image field" then I restore it in a byte array. I want to convert this byte array into string to write it on the web page. I am using ASP.NET 0.2 and SQL 2005. thanks.

Member Avatar for Fungus1487
0
92
Member Avatar for Ryuji5864

[code] #include "stdafx.h" #include <fstream> #include <iostream> #include <string> #include <cmath> #include <iomanip> using namespace std; const string ID = "- CS 1361, Spring 2008 - Lab 39"; void PrintDblArray (double[],int,ofstream&); int Smallest(double[],int); int main() { int i; double n, arr[50]; ifstream fin; ofstream fout; cout << "Running Lab 35 …

Member Avatar for Ancient Dragon
0
139
Member Avatar for chandanapapa
Member Avatar for jwenting
0
106
Member Avatar for nurulshidanoni

i have this data..but how to sort the data in descending order together with the examid? [U]examid total[/U] 1: 25 2: 20 3: 46 4: 56 5: 12 6: 22 7: 20 8: 18

Member Avatar for localp
0
152
Member Avatar for krish_kooll

how to obtain query execution time? i need for mysql query in java... does anyone know

Member Avatar for krish_kooll
0
85
Member Avatar for ninjabreadman

Hello all, this is my first post here. I've been working as an assistant product manager at a software developer for 18 months, and I'm looking to put my resume out there within the next 6 months, as a either a product manager, or as an APM in a larger …

Member Avatar for ninjabreadman
0
87
Member Avatar for lifeworks

Hi Busy putting together my first competent attempt at a PHP/MySQL website, its a real estate package of sorts. I'd like to bring up a brief description of each house (in the DB) initially and when the user clicks on the photo or name etc, they will be directed to …

Member Avatar for prethum
0
116
Member Avatar for anifeelings

[B]Define the class Student which has name (char name[20]) and age(int). Define the default constructor, member functions get_data() for taking the name and age of the Student, print() for displaying the data of Student. i hv tried it.. am new to this language, am learning, this is what i had …

Member Avatar for Nick Evan
0
218
Member Avatar for cali_dotcom

hi, i keep getting this error and i just cant figure out what is wrong. i got this code off a book that uses php v 5.1.4 and my wamp server runs php v 5.2.5, could this be a problem? does anybody know where i could download a good free …

Member Avatar for helraizer
0
157
Member Avatar for mikeandike22

ok im new to PHP and sortof need to learn the basics for my job and i got the oreily PHP 5 book and in some of the examples i keep getting a parse error. here is an example [php]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta …

Member Avatar for gcardella
0
146
Member Avatar for Glitch100

Hi all Well this is my first post, and this looks like a good site to ask... Basically, i have Visual Studio 2008, without a clue on using it- My Request: To gain aid in making a program which does and has the following features- Drop down menu which contains …

Member Avatar for Ancient Dragon
0
129
Member Avatar for abcd_nima

iam a 1st yr b.e stucent.i was attending my c.p lab viva.i was asked to write a program that would exchange 2 variables without using a third variable.i could'nt do it.i know how to exchange the values by using a third variable.someone please answer this question.

Member Avatar for hammerhead
0
162

The End.