199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for flyingcurry

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 …

Member Avatar for flyingcurry
0
134
Member Avatar for trilithon

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

Member Avatar for trilithon
0
140
Member Avatar for vartol

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

Member Avatar for diafol
0
77
Member Avatar for vbx_wx

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

Member Avatar for Ancient Dragon
0
95
Member Avatar for arctushar

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 …

Member Avatar for sops21
0
136
Member Avatar for hbluthi

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 …

Member Avatar for hbluthi
0
116
Member Avatar for benhowdle89

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 …

Member Avatar for sops21
0
186
Member Avatar for Sorcher

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

Member Avatar for Sorcher
0
220
Member Avatar for BlueZephyr

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

Member Avatar for BlueZephyr
0
120
Member Avatar for Jennifer84

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

Member Avatar for WaltP
0
4K
Member Avatar for star_lavender

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

Member Avatar for Borzoi
0
139
Member Avatar for barney1

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

Member Avatar for TrustyTony
0
546
Member Avatar for rahul8590

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

Member Avatar for TrustyTony
0
202
Member Avatar for Tiny_trixer

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

Member Avatar for Tiny_trixer
0
147
Member Avatar for ultimatebuster

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

Member Avatar for ultimatebuster
0
164
Member Avatar for kra9853

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

Member Avatar for Lerner
0
122
Member Avatar for Pooch74

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 …

Member Avatar for WaltP
0
136
Member Avatar for meowbits

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

Member Avatar for goonj
0
166
Member Avatar for widapol
Member Avatar for widapol
0
83
Member Avatar for MaSSaSLaYeR

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

Member Avatar for MaSSaSLaYeR
0
168
Member Avatar for lexflash

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 …

Member Avatar for peter_budo
0
96
Member Avatar for farooq82

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 …

Member Avatar for guru_sarkar
0
134
Member Avatar for xcarbonx

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 …

Member Avatar for xcarbonx
0
111
Member Avatar for bob200707

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 …

Member Avatar for Lerner
0
693
Member Avatar for OffbeatPatriot

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 …

Member Avatar for uve
0
796
Member Avatar for peterman.k

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

Member Avatar for peterman.k
0
231
Member Avatar for bloodyjoe

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 …

Member Avatar for imvivekkapoor
0
136
Member Avatar for Xufyan

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 …

Member Avatar for ruchi18
0
241
Member Avatar for designingamy

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 …

Member Avatar for designingamy
0
134
Member Avatar for Xufyan

Setter getter ..? what is this and what it does ? i searched over google but didn't find the suitable answer...!

Member Avatar for imtiyaz41
0
460
Member Avatar for Chosen13

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...

Member Avatar for Chosen13
0
100
Member Avatar for gregarion

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 …

Member Avatar for LevyDee
0
116
Member Avatar for malcolm2979

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 …

Member Avatar for ArtistScope
0
202
Member Avatar for bobymathews

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

Member Avatar for ArtistScope
0
151
Member Avatar for phfilly

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 …

Member Avatar for phfilly
0
203
Member Avatar for ErlendHL

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

Member Avatar for ErlendHL
0
95
Member Avatar for azim_axl

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

Member Avatar for Ancient Dragon
0
977
Member Avatar for fire_

Hi. How can i make Dialog box visible only in one application window for examlpe only on firefox? I'm using MFC. Thank you

Member Avatar for fire_
0
96
Member Avatar for ielo

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

Member Avatar for ielo
0
97
Member Avatar for blackeyedanel

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 …

Member Avatar for javaAddict
0
4K
Member Avatar for andimiami

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 …

Member Avatar for Ancient Dragon
0
732
Member Avatar for raider650

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

Member Avatar for stevanity
0
111
Member Avatar for Borzoi

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 …

Member Avatar for stevanity
0
111
Member Avatar for kevintse

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

Member Avatar for kevintse
0
151
Member Avatar for myk45

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

Member Avatar for Schol-R-LEA
0
119
Member Avatar for severman

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 …

Member Avatar for alexraa
0
190
Member Avatar for ErlendHL

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 …

Member Avatar for Airshow
0
137
Member Avatar for big_k105

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]

Member Avatar for bigbass2266
0
301
Member Avatar for Kunal Aggarwal

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

Member Avatar for Kunal Aggarwal
0
198
Member Avatar for Nathaniel10

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 () { …

Member Avatar for Nathaniel10
0
74

The End.