199,114 Archived Topics
Remove Filter ![]() | |
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]; … | |
[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 … | |
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 … | |
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 … | |
[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 … | |
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? | |
Sinx= x- (x3/3!)+ (x5/5!)- (x7/7!)+....... I can't solve it Please help me........ | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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]; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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> … | |
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 … | |
hey guys! I need to know how to use pthreads with mutex to protect the critical section!! | |
[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 … | |
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 … | |
[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 … | |
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 … | |
![]() | 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 … ![]() |
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 … | |
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 … | |
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! | |
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 … | |
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 … | |
![]() | 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 … ![]() |
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 … | |
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 … | |
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"> <! … | |
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 … | |
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 … | |
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 … | |
[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] | |
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 = … |
The End.