199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aaronmk2

I am having trouble figuring out what the recursive function does in the insert sort. Wouldn't the recursive line block the rest of the code from working. I am just looking for a quick explanation. [CODE] void insertion_sort-recur(int a[], int n){ if(n<=1) return; insertion-sort_recur(a, n-1);//how does this line work temp=a[n-1]; …

Member Avatar for mrnutty
0
1K
Member Avatar for Kniggles

[CODE]<?php // open base $con = mysql_connect("xxxxxxxxxxx", "xxxxxxxxxxx", "xxxxxxxxxxxxxxxxxx"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("xxxxxxxxxxx", $con); // open table $result = mysql_query("SELECT * FROM leader"); // print table & column headders echo "<table border='1'> <tr> <th>id</th> <th>Club</th> <th>Website</th> <th>Club Badge Url</th> </tr>"; // get data …

Member Avatar for Kniggles
0
223
Member Avatar for jwill222

Problem that ask to write an application that fills an array with 50 random integers,loop through the array,displaying each value, and count the number of negative values;after the loop finishes display the count. Note: The Random32 procedure from the Irvine32 library generates random integers. *I honestly don't know where to …

Member Avatar for jwill222
0
1K
Member Avatar for yanoli

Hello, I'm trying to modify an existing php page by adding a submit button, to allow the user to change the unit cost of a product in the inventory. I can get the product informations from the database, but nothing happens when I press the submit button. The fist submit …

Member Avatar for nonshatter
0
6K
Member Avatar for wowz

[CODE] import java.util.* ; public class CurrencyConverterTester { public static void main(String[] args) { Scanner scanner = new Scanner(System.in) ; System.out.println("How many euros is one dollar?") ; String input = scanner.nextLine() ; double rate = Double.parseDouble(input) ; CurrencyConverter converter = new CurrencyConverter(rate); boolean done = false; while (!done) { System.out.println("Dollar …

Member Avatar for wowz
0
179
Member Avatar for logicmonster

Is there a way to evaluate cosecant^2 in c? As far as I know, it isn't included in the math.h library, but could there perhaps be another one that it is included in?

Member Avatar for WaltP
0
61
Member Avatar for Sohelp
Member Avatar for Sohelp
0
138
Member Avatar for soccer13

Hey guys, I got such great help last time I decided to come back for more :). Hope I'm not bothering with these questions, my teacher isn't much for being nice or explaining.. Right now we are getting into methods, I know that they aren't that difficult but I for …

Member Avatar for peter_budo
0
79
Member Avatar for mallyonline

I have followed the article about [B]Write and read to cmd line from GUI[/B] on the post located [URL="http://www.daniweb.com/forums/thread308015.html"]here[/URL]. I have downloaded the files RedirectStandardOutput.zip posted by Diamonddrake. I found these to be exactly what i wanted to include in my own form and attempted to copy the code into …

Member Avatar for Diamonddrake
0
360
Member Avatar for burcin_erek

help me below algorithm. it gives wrong output e2 was wrong. 7.38..... [CODE]#include <cstdlib> #include <iostream> #include <math.h> using namespace std; int main(int argc, char *argv[]) { float x, err, term_1,result=1.0; int i=1,burcin; float factorial; cout << "x="; cin >> x; cout <<"error tolerance="; cin >> err; term_1=err+1; while (term_1 …

Member Avatar for burcin erek
0
134
Member Avatar for L.sha

I am trying to run this program, in this I have a class clocktype with its header file and implementation file. Now I am trying to inherit this class to implement a new function called timezone. The build is successful but I have 2 errors while compiling here is my …

Member Avatar for L.sha
0
189
Member Avatar for digan

i have to create a program in which a user is asked for: How many values (s)he wants to enter (maximum 50); Asks for the values and stores them into an array of double. Sorts the values in descending order. Prints the sorted array to the console. this is what …

Member Avatar for arkoenig
0
130
Member Avatar for ben.matthews18

I have created a very basic database in 'MySQL Workbench' just as a test.. This is the SQL it produced - [CODE]CREATE TABLE IF NOT EXISTS `CustomerOrder` ( `OrderID` INT NOT NULL AUTO_INCREMENT , `OrderDate` VARCHAR(45) NOT NULL , `ProductName` VARCHAR(70) NOT NULL , `ProductCost` VARCHAR(45) NOT NULL , PRIMARY …

Member Avatar for drjohn
0
105
Member Avatar for Altarium

Hello! I'm working with a DataGridView that I want to format based on the condition of whether or not a date has passed. For example: If the date in a cell is past the current date, that cell and its row are formatted with the forecolor red. My current code …

Member Avatar for Altarium
0
3K
Member Avatar for samsons17

Okay,i try to call a function of mysql_prep() that i made in functions.php. I try to call this function at the page of create_subjects.php by typing this [CODE]<?php require_once("includes/functions.php");[/CODE] into the create_subjects.php. and this is the full code of create_subjects.php : [CODE] <?php require_once("includes/functions.php"); ?> <?php $connection = mysql_connect("localhost","root","mypassword"); if …

Member Avatar for tyutmonster
0
316
Member Avatar for ace8957

Hello all, So I'm working on this simple program with a Queue class template that is publicly derived from the abstract base class CharQueue. The only problem is that I keep getting hit with the error "expected class name before '{' token". The reason I don't understand this is that …

Member Avatar for Fbody
0
738
Member Avatar for empyrean

Hello.. i will try to be clear.. here i am working on a datagrid. in datagrid one column is editable as i am passing DataGridTextColumn to it and holding the data when users enter data into it and writing back to database. i am saving to database using datagrid_celleditending event …

Member Avatar for "ICode"
0
156
Member Avatar for jakizak

I am needing a dropdown menu to pull data from table on a mysql database and then with the selected item, send it to a new table along with the rest of the data from the form. I have got the dropdown pulling data from the database with the following …

Member Avatar for chrishea
0
99
Member Avatar for sharifyboy7

Implement a class SortedList as defined by the following skeleton: [CODE] #define MAX_ITEMS 10 typedef float ItemType; class SortedList { private: int length; ItemType values[MAX_ITEMS]; int currentPos; public: SortedList( ); // default constructor: lenght=0, currentPos=-1 void MakeEmpty; // let length=0 void InsertItem(ItemType x); // insert x into the list void …

Member Avatar for Fbody
0
355
Member Avatar for gemp

hey guys ,, i have a register form with register button and i need the info. from that form to be stored on file (Maybe secured txt),, i know it need System.IO (StreamReader and Writter) but i forgot everything about it so plz help thanks

Member Avatar for gemp
0
65
Member Avatar for bufospro

Hi all, I am trying to make a program but I have a problem. So I can't continue. I am using a struct like that : [CODE]typedef struct account { char fullname[40]; int id; int amount; char name[15]; } account; typedef struct parking_system { int pos; char name[15]; char description[80]; …

Member Avatar for dgreene1210
0
155
Member Avatar for Syrne

Hello! Well, I've been given a fairly difficult assignment (at least to me), and I can't seem to wrap my head around some parts. Here are the objectives: [I]"In this assignment you will demonstrate your ability to design a class and provide its declaration (.h) and implementation (.cpp) files. All …

Member Avatar for Syrne
0
183
Member Avatar for globberbob

Well, in this program I want it to take in a string or character array I really don't care which, for this instance I wouldn't know which is better. Afterwords, it compares those in if statements and sets a variable to a 1(female) or 2(male). Anyways, here is what I …

Member Avatar for globberbob
0
181
Member Avatar for eorns

Hi all, I have a page on which I've done several successful ExecuteNonQuery calls that added new rows to existing tables. But one, despite all the parameters being correct and receiving a positive return value and also a valid output parameter, seems to have no effect on the database. Several …

Member Avatar for eorns
0
146
Member Avatar for LoveMyPadres

I am trying to implement virtual LEDs on a Python window. I turn the LED "on" by drawing a green oval. I then use root.after() to schedule another call that turns the LED "off" by drawing a dark green oval. I use a 250ms delay. There are 4 active LEDs …

Member Avatar for LoveMyPadres
0
2K
Member Avatar for nagatron

Hello to all, I am always mad about this problem. If I type a name with two words in a textbox like "google corporation" it will be registered in the database ms access as "Google Corporation" now that is okay. What I want is, there should be no duplicate of …

Member Avatar for nagatron
0
226
Member Avatar for trampman

Hi all Im trying to create a site that is multi language, in order to do this all copy, alt tag text and url links are stored in a db. I then get all the info for that language and put it into a cached dataset. i then loop through …

Member Avatar for haseeb1431
0
175
Member Avatar for new SE

hi all.. i'm working with slide show extender.. i'm referred to this website [URL="http://www.dotnetspider.com/resources/27734-Ajax-slide-show.aspx"]http://www.dotnetspider.com/resources/27734-Ajax-slide-show.aspx[/URL] on how to make it.. it is completely tell the way to make it but i want to modified it to make it suitable with my requirement.. this is the code [CODE] using System; using System.Data; …

Member Avatar for haseeb1431
0
184
Member Avatar for eagles39

I need to output picture of a rocket using * the program works. The top of the rocket doesn't line up with the body of the rocket. Can someone point me in the write direction on how to start it. the function i am using is called drawCone. [CODE]#include <iostream> …

Member Avatar for Taywin
0
2K
Member Avatar for shahab.burki

Hi, I am trying to develop an efficient algorithm for maximum subsequence sum. But I am stuck. I want to return the start and the end of the subsequence producing the maximum sum. Example Array Contains... -2,11,-4,13,-5,-2 Now my algorithm works as follow. [CODE] MSS(Array[],N)//Where N is the number of …

Member Avatar for apines
0
193
Member Avatar for aplh_ucsc

hey guys! I need to know how to use pthreads with mutex to protect the critical section!!

Member Avatar for aplh_ucsc
0
74
Member Avatar for prishe

[B]Hi everyone.. am looking a for an individual project in artificial intelligence..i have no idea in choosing my topic. so far i have learned logic programming, data mining, intelligence agent, fuzzy logic and neural network.. besides taking other AI subjects eg. image proccessing next semester while am doing my final …

Member Avatar for Dhruv Gairola
0
273
Member Avatar for adaniel058

I can not figure out why my code is reading in data to my vector in funny ways. I have added the input file and necesary class to test. It seems to be skipping values in the input file and also adding things to seperate places in the vector instead …

Member Avatar for kramerd
0
235
Member Avatar for raider650

[B]I included my original code down below....Basically I need some input on where to start off. From what I can tell it seems that I will need to re-organize the code into functions, while implementing the new data structure. Any input would be greatly appreciated.[/B] This time the program would …

Member Avatar for Taywin
0
99
Member Avatar for Meterior

Hey. I have this assignment in which i've to generate prime numbers up to a certain limit. Since i'm extremely new to C++ so i have absolutely no idea what's wrong with the program i have written. I have to keep it simple for my understanding. I've written it in …

Member Avatar for Meterior
0
94
Member Avatar for TechySafi

If I put this line [ICODE]$friends = $connection->get('followers/ids', array('screen_name' => '2020volt'));[/ICODE] Twitter api returns something like this : [CODE]Array ( [0] => 173605790 [1] => 187372244 [2] => 17535566 [3] => 190756198 [4] => 184577861 [5] => 119247538 [6] => 183813521 [7] => 18013082 [8] => 149601084 [9] => 186491393 …

Member Avatar for TechySafi
0
137
Member Avatar for nertos

Hi, how can I read value of dynamic MaskedTextBox created in GroupBox? [CODE] private void add_groupbox(int x, int y, int id) { GroupBox gb1 = new GroupBox(); MaskedTextBox mtb1 = new MaskedTextBox(); MaskedTextBox mtb2 = new MaskedTextBox(); MaskedTextBox mtb3 = new MaskedTextBox(); mtb1.Location = new Point(46, 18); mtb1.Size = new …

Member Avatar for nick.crane
0
106
Member Avatar for manonfire89

Hey guys i have been told to do this Bank account program as you can see the description below, what i have so far is a program that i can create the bank accounts and delete them within the Frame, what i cant get working is the withdrawing the balance …

Member Avatar for Taywin
0
218
Member Avatar for human2600

Hello, I want to ask you if you can give me an advice in how to make a secure login and register application in php and mysql. If you can give me a link or an idea I would be very thankful. Thank you!

Member Avatar for madiyasa
0
150
Member Avatar for muralibobby2015

hello.. i want to do a website wich is having search functionality. in this i have to do search flights,hotels etc.., some one suggested me to use kayak api for this. i searched every thing for this. but i didn't get any idea. anyone could suggest me how to use …

Member Avatar for muralibobby2015
0
240
Member Avatar for ggyyree

About "error: assignment of data-member ‘A::pCost’ in read-only structure". Hi there, I got an error as above. My requirements are: I need a derived class A from class B. In A, there are two member functions, i.e., Initialise() and GetCost(). The Initialise() initialises pointer pCost pointing to an array, and …

Member Avatar for Fbody
0
572
Member Avatar for feoperro

Hi, I have my project folder in www\project - for some reason, some of the images don't work and some do. All pictures are in the same path (project root) but some display a red cross and some display perfectly fine. As far as I know - theres no way …

Member Avatar for feoperro
0
167
Member Avatar for Naveed_786

Hi guys, Can any help me i had a peoblem please just give me idea. I want to calculate the share of a teacher let me explain how 1.if a teacher teaching three subjects in 10th class and three subjects in 9th 2.i have to calculate 50% of the fee …

Member Avatar for AndreRet
0
131
Member Avatar for gikonyo

please advise on how to go about implementing pop up messages on a web based system. where by a user logs in to the system using the email address and when logged in he/she can be notified on incoming emails. how can i capture incoming emails and implement a pop …

Member Avatar for gikonyo
0
66
Member Avatar for djcrab

Don't see what I missed to get this working. I've looked over it a couple times bumping it to my book and didn't notice any difference. Anybody see what I missed? Thanks. Jake [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Personal Organizer</title> </head> <body> <script type="text/javascript"> <! …

Member Avatar for Taywin
0
128
Member Avatar for pikkas

i want some help for an onChange event for 2 drop down lists in javascript. if the 2 lists for example contains exactly the same values. let say A B C D, if the user chooses the B then automatically the B value in the second list should dissapear, if …

Member Avatar for Taywin
0
124
Member Avatar for massivefermion

Hi all people I've written program below for a physics problem. [CODE]#include <iostream> #include <conio.h> #include <math.h> #define g 9.8342998109761958158459616185564 using namespace std; long double theta(unsigned long int n,unsigned long int N){ return (M_PI/2)-n*(M_PI/(2*N)); } long double V(unsigned long int n,unsigned long int N,unsigned long int h){ if(n!=0){ long double …

Member Avatar for SasseMan
0
365
Member Avatar for kimlong008

Help me ! I want to write code read file txt and I want to get each value of arry in file txt, but I don't know get it ! ex : In my file txt have : [CODE][COLOR="Red"]10/30/2010 10:42:48 PM[/COLOR][COLOR="Green"] 19,955.40 19,996.19 20,745.54 3,822.54 28,418.70 32,576.54 2,632.80 468.79 252.42 …

Member Avatar for kimlong008
0
112
Member Avatar for Sara Tech

[B][COLOR="Green"] I want to create labels dynamiclly (at run time) when user clicks one its click events will excute I want like this : [CODE] for i as integer=1 to 10 step 1 '' here label creation end for [/CODE] Thanks for who can help me ... :icon_wink: [/COLOR][/B]

Member Avatar for mihird
0
85
Member Avatar for alanlee9898

I got problem verify the link from the email...now I can receive the email... but the link pointing is a empty link... [CODE]$item_hash = md5($item_id); //Send the email user... $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'X-Mailer: PHP/' . phpversion(); $subject = …

Member Avatar for hielo
0
140

The End.