199,114 Archived Topics
Remove Filter ![]() | |
The code for the Towers of Hanoi is here, the problem is what will the rest of the recursive calls be? [CODE] //provided in the main method that String Src="Src", Aux="Aux", Dst="Dst"; public static void solve (int diskNumber, String Src, String Aux, String Dst) { if (diskNumber ==0) return; else … | |
Hi All, I need to create a dropdown box for a user to select a row from a table and populate the fields in a form for the user to update that row. What will be the best way to do this? Thank you in advance Max | |
The code is posted below, the problem is that i get a parse error at line 80 (last line) and i cannout see why from my point is correct. Thanks. <?php function select_($sql,$select_name,$selected_value,$initial_value,$val1,$val2,$post) { $result=mysql_query($sql); ?> <select name="<? print $select_name;?>"> <? if(!empty($post)) { while($row=mysql_fetch_array($result)) { print'<option '; if($row[$val1]==$post) { print'selected="selected"'; … ![]() | |
Why my program doesnt print ? [code] #include <iostream> using namespace std; class String { string s; public: String(string ss): s(ss) {} string substr(int pos = 0, int n = string::npos) { string str; int j = 0; for(int i = pos; i <= n; i++) { str[j] = s[i]; … | |
Hello I want to do that after submitting form it will insert in a table. the table has auto increment field. name of the field is ID. Now how can I get the ID number of that inserted data's ID number. for example I have a table which field are … | |
Hi guys. This is my first post here and I've read through the forum quite a bit and can't wait to get more involved. So here is my main problem: getting my code to take the text I enter into an entry box to be recognized as a string so … | |
Hi, I'm doing a site for a client and they want a blog and an articles area. What i imagined doing was designing the homepage in html/css/jquery etc...and then install WordPress through cPanel for the blog and the article area. I have a choice i need some help with, do … | |
[B]Greetings![/B] Anyone here who can correct my code? I'm abit noob to PHP, just started learning. The Ban file function of mine does the echo but it wont stop the file upload. Any idea? have i inplented it wrong or do i miss a line? Love you long time if … | |
I am have some really weird iostream errors. This is my first time using functions. Maybe I did something completely wrong. I just need someone to point out my error and maybe help with building a function to find the minimum value out of 4 input numbers. [code=c] #include <iostream> … | |
Is it possible to use a buttoncontrol to pause a for loop. Ex: When it has counted to 50000, I press Pause and when I press Pause again, the loop continues. Is it possible to achieve something like this ? [code] for ( int i = 0; i < 100000; … | |
Hi. I want to have a query as below. [CODE] $sql = "SELECT amount FROM payment WHERE id = '$a'"; $result = mysql_query($sql); $row = mysql_fetch_array($result); $amount = $row['amount']; [/CODE] The value for $a variable is getting from the selection on drop down list. For example, the user select id=11, … | |
Hello I'm trying to make a stem and leaf plot. The first function is supposed to call the other two functions and return the final plot. My code works for the first elemnt in the list and then stops. Is there something I have to do within my for loop? … | |
i have a csv file from where in i read the data and store individual coloumns in list , but for the last coloumn i am getting \n in the list . i want to get rid of that . [CODE] f = open('datagen.txt') for lines in f: line = … | |
The program I'm supposed to make a program where one thread starts three other threads. The original thread is going to wait until the three other has finished running and then the first thread can stop. The way I've built the program the three threads is started from one class, … | |
Currently I'm working on a microblog just to get familiar with PHP MySQL. I have a pretty big problem though. Here's the php code: [code] function get_all_users(){ $query = "SELECT * FROM ".$this->prefix."users"; if ($stmt = $this->prepare($query)){ $stmt->execute(); … | |
I need to modify my program to use while and for loops and be able to do the following tasks: a. A score of I on the project forces a mid-term grade of I. Notify the user to contact both the student and their advisor of the I grade. b. … | |
Hi! Having some problems with functions in this one. As ypu can see I'm a tottal beginner. What I'm trying to do here is make a program checking if a word is a palindrome. Using 2 functions, one to check and one to reverse the user input string. My problem … | |
Probably easiest if I just quote, [QUOTE]5) Assignment Entity, A class that models an association between an Employee and a Project Each project usually has several employees working on it at any one time, but there may be none at times. Each employee must work on at least one project, … | |
Hi all, Does anyone know what meanings of %-10d and %-10.10s ? | |
Hellow! I'm having a problem to get the inserted values from the detailsview. I've tried the following things: [CODE] // Get Value from DropDown int TopicID = 0; foreach (DetailsViewRow row in ItemsDetailsView.Rows) { if (row.Cells[0].Text == "Topic") { DropDownList TopicDropDown = (DropDownList)row.Cells[1].FindControl("Topic_TopicIDList"); TopicID = int.Parse(TopicDropDown.SelectedValue.ToString()); } } MsgBox(CType(DetailsView1.Rows(1).Cells(0).Controls(0), Label)) … | |
Hey guys, I need to create a software which can read a barcode and I should be able to enter the value obtained from it into a database and also I need to compare them with certain values. I am comfortable working in java and would like to know how … | |
Hello Everyone, I am create a shopping application. I have load all products to gridview with a button with rowcommand event. When I click on add cart button the current row will be add to a object of girdview row. Now how will i get value of qty which is … | |
Hi, I am trying to make a program which outputs an Invoice Number, which consists of the first 3 letters of a person's first name and the last 3 digits of their zip code. The user enter their first and last name, then enters their city, state, and zip such … | |
Could someone help me put the following C++ in correct order. The statements in the following program are not in the correct order. Rearrange the statements so that hte program outputs the total time an employee spent on the job each day. Th program asks the user to enter the … | |
I made a wxPython gui to interact with a camera, however the lab is very matlab centric and the professor wants everything to be controllable from matlab. I think this is more of a matlab problem, but it's python related and I thought it might be a little odd to … | |
I am going out of town and don't have access to my professor and / or tutors for the weekend, and we have an assignment involving a BST. I have done all of my insert, remove, and search functions, and went to the tutor about the remaining ones I have, … | |
I have this problem, i have an upload and i would like to replace all spacing with no spacing, the problem is that i have used `$abcd = str_replace (" ", "", $abcd);` this should work but i dont know where to put it in or what parameters to use … | |
From what I gather as a Java beginner, when accessing instance members, the "this" keyword may apparently be used. see this program, [CODE]class sphere{ static final double PI=3.142; static int count=0; double radius,xcentre,ycentre,zcentre; sphere(){ xcentre=0.0; ycentre=0.0; zcentre=0.0; radius=1.0; count++; } sphere(double xcentre,double ycentre,double zcentre){ this(); // what does this mean … | |
Hello all, I seem to be having a problem with pagination. I would like to have pictures and information in boxes pulled from the database, but have 4 of them in a row, making a total of 8 put on each page. Can anyone help me figure this out? Thanks … | |
Setter getter ..? what is this and what it does ? i searched over google but didn't find the suitable answer...! | |
Hello, I have a website Stickmin ([url]http://www.stickmin.com/[/url] if you want to check it out, just finished the style yesterday and I think it looks good, opinions?) I want to know the best way to handle user logins, should I make a dedicated class, user sessions, cookies, etc? Thanks... | |
Hey guys, i am having a problem passing my array into a function . What i am trying to do is to pass my array called Alphabets[] from my main into a function called Key. THe issue i am having is that i keep getting an error telling me that … | |
Hi there I have created a simple form for my assignment in Front Page(FP) Which has to submit info to a MDB file MDB file was created by FP its self. the thing is when i click submit it gives me a successful submit confirmation but when i open the … | |
How can block url in asp? here i could only when the input is https://www.myopenid.com ie, when it starts with https://www.myopenid . But i want to block the input in the following cases 1) www.myopenid.com (here .com ,.in ,.org etc) 2) myopenid.com I give asp code below that i used: … | |
hi guys I got this weird error which I cannot debug in my code. The program is to convert Roman numerals to Arabic numerals using the Interpreter design pattern. Here is a part of the program where the errors occurs RNInterpreter.C:8: error: new types may not be defined in a … | |
Hi! My append code works for Firefox and Internet Explorer but not for Opera and Google Chrome. [URL="http://3rlend.com/pjatt/append.html"]Here[/URL] is the test page. In Opera I get this error in Dragonfly: [CODE]Uncaught exception: [object DOMException] Error thrown at line 3, column 16 in append(id, text) in http://3rlend.com/pjatt/append.html: var je = document.createElement('<span>'); … | |
Hi all, I'm new to C++ & taking my first class in programming. The program ask the user to enter the loan amount, number of years, and interest rate, and then displays the amortization schedule for the loan.The monthly payment for a given loan pays the principal and the interest. … | |
Hi. How can i make Dialog box visible only in one application window for examlpe only on firefox? I'm using MFC. Thank you | |
[CODE][/CODE]I thought I knew how to use vector and manage insert, push_back and erase, but apparently I don't. I encounter an unexpected outcome when i attempt to erase the second element in a vector of four: the element is removed, yet the content of the element following it is modified. … | |
im getting an error while trying to print array contacts[i], why? any help? Thanks! :) this is my class Address where im gettingthe error: [CODE]import java.io.*; import java.util.*; public class Address{ //Declare variables String first; String last; String homeadd; String homeph; String cellnum; Scanner sc = new Scanner(System.in); public Address(String … | |
How do I write this C++ sentinel-controlled while loop? I need to write a sentinel-controlled while loop to see if the coefficients of a quadratic equation have real roots using a nested decision. A character q must be my sentinel. This is what I have so far, but it doesn't … | |
Everything runs fine, except the Lowest Temperature and HIghest Temperature do not output correctly. Also any suggestions on how I could implement vectors, Any help would be greatly appreciated. Thanks. [CODE] #include<iostream> using namespace std; int main() { int i(0); double Calc(double fahren); double Total(0),Celsius[5],Fahrenheit[5]; double CelciusLowTemp(0), FahrenheitLowTemp(0), CelciusHighTemp(0), FahrenheitHighTemp(0); … | |
I haven't done any C++ programming for quite a while now and the last compiler I used was Dev C++ (not sure which version/release but likely an old one). I want to start programming in C++ again but I'm an unaware of which free compiler would be the best to … | |
Hi, all I have been learning the python language for a couple of weeks. For now I only know a little of the language, the syntax, usage of the builtin types such as str, lists, dicts, and tuples, this is fine for writing some simple scripts to process text files. … | |
Hello. Well, for creating linked lists, i always use 2 pointers: one for beginning and one for the end of the list. Is this OK? Or am i required to have just a single pointer pointing to the beginning of the list and then traverse everytime i need to insert? … | |
Hi all I have a gantt chart which i draw with JFreeChart. I want to add to this grpah a line that shows the current date. Does any 1 knows how to do it? Here is the code that i've written: [code] /* * To change this template, choose Tools … | |
Hi! [URL="http://3rlend.com/pjatt/JStest.html"]Here[/URL] is the test page. It works fine in Firefox and Google Chrome but not in Opera and Internet Explorer. If you don't have Firefox or Google Chrome, I can tell you how it should be: when you click an element, if should be lighter green, rolling out of … | |
ok i couldnt think of where else to go so can some one here help me find the area of this white area in the picture. or on any odd shape like this with no set number of sides [url]http://www.angelfire.com/nd2/kylekonline/images/TP-18FM64test.jpg[/url] | |
I am Creating a MFC Application to Read a Text file into a Edit Box. I am implementing the following code [CODE] FILE *m_pFile ; CString m_strLine , m_strText; char line [1000] = "" ; m_pFile = fopen ( "C:\\SELF.txt" , "r" ) ; if ( m_pFile != NULL ) … | |
I am trying to do an exercise in Stroustrup's book. The task is to create two arrays (with different values) and pointers to each array, and copy the first array to the second using the pointer and reference operators. My code is below. [code] #include "../../std_lib_facilities.h" int main () { … |
The End.