64,152 Solved Topics
Remove Filter ![]() | |
[ATTACH]17854[/ATTACH] [ATTACH]17855[/ATTACH] [ATTACH]17856[/ATTACH] Guys I am trying to help a friend of mine with this project they have due in a few days and because I program in Java mainly I am a bit rusty with this. I can not figure out why my getInput function shows up under the … | |
I am working on a control break algorithm in C, and part of this algorithm is to have while loop check for the end of file and whether two strings equal each other. the first string is a part of a typedef struct structure called 'record' [I]rec.state[/I], and the second … | |
please can anyone tell me why this script doesnt seem to work.thankz [CODE]<script> function calculate (){ var age = document.getElementById('age'); var amt = document.getElementById('amount'); var plan = document.getElementById('plan'); var ben1 = document.getElementById('benefit1'); var ben2 = document.getElementById('benefit2'); var yrs = document.getElementById('length'); var ap = (amt.value/yrs.value)+Math.pow((100*Math.sqrt(age.value/(55*yrs.value))),2); document.write('annual premium'+ap); } function checkplan(){ var … | |
Hi, I have this code. It is not working properly. Anybody may know the solution? Thank you [CODE]<?php include 'admin_homepage.php' ?> <div id="sidebar1"> <b></b><br /></br></br><img src="MMU_logo.jpg" width="180" height="150"/><br /> <a href="admin_view_student.php" style="font-size:13px" >View Student</a><br /> <a href="admin_new_student_reg.php" style="font-size:13px">Add Student</a><br /> <a href="student_excel.php" style="font-size:13px">Get Excel File</a><br /> <a href="student_mailing_list.php" style="font-size:13px">Get Mailing … | |
Hi, I need to make a simple calculator that just does addition and subtraction. But the program should keep a running total of the calculations entered like this: sum = 0 12 + 3 sum = 15 5-2 sum = 12 1+1 sum = 13 But it also needs to … | |
I am trying to add two hexadecimal numbers. [CODE]def addbinary(n1,n2): s = "" carry = '0' for i in range(3,-1,-1): if (n1[i] == '1' and n2[i] == '1' and carry == '0'): s = '0' + s carry = '1' elif (n1[i] == '1' and n2[i] == '1' and carry … | |
What does this mean and how can I fix it? An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll Additional information: Index was out of range. Must be non-negative and less than the size of the collection. [CODE]dgtsCustomers.GridColumnStyles(0).HeaderText = "Factory ID" dgtsCustomers.GridColumnStyles(0).Alignment = _ HorizontalAlignment.Left[/CODE] | |
I received the following error, but I don't understand how to fix it. Help? "readline() on closed filehandle IN at transcribe.pl line 21." [CODE]#!/usr/bin/perl #transcribe.pl #convert DNA to RNA (T to U) use strict; use warnings; #TASK: Read DNA sequences from ‘DNAseq’ input file – #there is one sequence per … | |
I have joined our local high school's FIRST robotics club, but their programmer graduated last year, so who got selected? The wimpy freshman: me! I am an intermediate programmer (PLEASE don't look at my previous posts, I now know two languages, and am better). So I downloaded an instruction booklet. … | |
This is probably really more of a math problem. I hope I want have to go into too much (for you, boring) detail about the code, as the problem resides in this loops. Please let me know if I provided too little detail :) Now for the problem: I would … | |
Dear All, I am currently working on a web assignment. But I do not know what is wrong with this ^piece of code. Can anyone of you find the bug in it please ;[code]<? $con=mysql_connect("localhost","root",""); if(!$con){die("could not connect".mysql_error());} mysql_select_db("idareyou",$con); echo("dbconnect is working"); $fname=a;//$_GET('search_fname');echo $fname; $lname=a;//$_GET('search_lname'); // include("dbConnect.php"); echo "blaljfkdjfjdfk"; echo … | |
def getAverage(numList): total = 0 for i in range(0, len(numList)): total = float(numList[i]) total = total + numList[i] average = total/len(numList) return average Hi, I'm really, really new to python, I'm having error on this function and I can't solve it yet, so can someone help? Thank-you :) | |
The first one is: A program that searches within a file and by user input for a word, and counts how many of this word in the file, and if its in the file or not. Thats what i reached so far: sword, line= 0, 0 filename= raw_input("please input file … | |
Thank you very much for reading this. I've been programming for 15 years (VB, a lot of PHP, etc), but I've never considered myself a 'real' programmer. Mainly I'll build things that I need that are too specialized to be made by anyone else - simple programs and scripts to … | |
I have a question. I have a list of numbers like: Bobby 9 9 8 4 8 5 6 7 3 8 6 5 5 7 6 9 6 4 6 4 3 4 7 6 6 I have already written a code to take the numbers in range (1,15) … | |
Hi. I would like help on undoing and redoing using the memento design pattern. I want to save a state that a board is in. Like a chessboard. If the user uses the undo option a previous board should be loaded and all of the states that the pieces was … | |
Need help please. This program is supposed to be a do while loop and convert fahrenheit to celcius and vise versa using user defined methods but as of right now it just doesn't work. I need to make a do while loop in main method too, but was just trying … | |
OK, I've been searching numerous discussion boards and searching the archives and the web for just the right answer to this question, even posted related questions on a couple, and got some responses, but they never really 'Solved' my dilema. I've concluded that I can't use a url like [url]http://username.domainname.com[/url] … | |
i am trying to create a nextrow button to work with a bound datagridview the problems i have: 1. the row moves down, but the first row is the one who has the focus (the little black triangle is staying to it's left. 2. i am trying to set a … | |
This one is pretty strange (or at least I can't figure out what triggers it). I have the piece of code below, but there seems to be a bug with the second call of [icode]scanf[/icode]. It simply gets skipped. So the input should be something like [code] 10 3 fbfbfbfbfb … | |
![]() | We have this massive project due tomorrow - a chess game that enables two or more players to play against each other. We have a board class, that contains a 2D array of Piece object pointers representing the lay area of the board. In the board constructor, the Piece array … ![]() |
![]() | Wait you don't need to read the whole things :) Just scroll down, and see what I've asked :) [CODE]stdClass Object ( [friends_count] => 54 [description] => i'TS THE digiTAL vERSiOn 0b devilZ! tECH & mUUsic fReak. sImpLE buT.......! [screen_name] => 2020Volt [profile_sidebar_border_color] => 181A1E [status] => stdClass Object ( … ![]() |
Hello I am trying to get to a Component On a JInternalFrame. I have a reference to the frame on the frame there is a panel. on the panel there is a JTabbedPane. to add a tab to the JTabbedPane I need to reference the Pane. Is there a way … | |
Hi, I have a javaproblem that I just can't solve. "Write a [B]recursive[/B] method who returns the largest value in an array with the signature: [CODE]public int max(int[] v)[/CODE] (Hint: If you need to, use a private help-method) It would be easy if it was allowed to change the signature … | |
Hi, I need to call a public static method that returns in xslt. I'm using jstl to do the transformation and hence using the jaxp parser which would use XSLTC or Xalan internally. The way I have the namespacee declaration for my xslt is <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:autn="http://schemas.autonomy.com/aci/" xmlns:myUtil="http://xml.apache.org/xalan/java/com.csa.porter.scat.CategoryUtils" xmlns:java="http://xml.apache.org/xalan/java" … | |
I just need a little advice. This code I have written works well. The only problem I am having is that the output is not lining up and I don't know what to do. If everything was entered line by line I could get it to line up. Since it … | |
I'm working on a self-project called 'Project Calculus' (Not that you care about the name). It's a huge calculator that works cross-platform and only uses 'already implemented' modules (So no SymPy, no NumPy, no SciPy, et cetera.) in it. I need help (If you even bother to cooperate with a … | |
Hi! Sorry for my bad english! I want to make a function that will replace "[LINK=url]Some text[/LINK]" with "<a href=url>Some text</a>". I tried, but the code is too long. Is there any shorter code for this. Here's how I do this (but this code make only first [LINK] into <a … | |
So I got this assignment to combine two arrays without using strcat(). The two arrays must be passed to function as parameters. The arrays need to be merged into one array in the function with dynamic memory allocation and then the new string needs to be returned back to main. … | |
Hi, How do I sum all occurrences of a number in a file? I have a file with a bunch of numbers, each on it's own line: 5 3 11 3 7 3 5 5 11 7 7 ... How do i sum them up so that the output will … | |
![]() | I have a script called setuptex that is run on a terminal as [CODE]. ~/context/tex/setuptex[/CODE] I wanted to execute it from a bash script file instead of typing it each time on an interactive terminal. Since the dot operator and the source builtin command are similar, and I wanted a … |
I add connections in server explorors. Then, I use AdventureWorks Person.Contact to set up a query by searching peter and mary ,but how to add it on form 1 ? and I type part of their names and by the way how to link a "VB label of text" or … | |
Hey guys and gals I am really struggling with this program. I have been working on it for about a week now and every time I think I am getting somewhere it seems like it flops and I get frustrated and start over. I would appreciate it if anyone could … | |
Hi.. first of all, I want an answer in details if u dont mind.. When we use a class with Pointer data members,why do we need to: 1. include a destructor and a copy constructor in the class 1. overload an assignment operator which return pointer this for example: // … | |
If I was to set a wildcard in my subdomain (*.example.com) to redirect to www.example.com, would that affect any pre-existing subdomains (for example, blog.example.com) or would it only redirect things I haven't set? | |
[code=c] // ----------------------------------------------- mySquare( y1) // rcv'ing dbl = 4 { double x1=1 ;// valid, but impossible to reach. printf("\n SQRD incoming Y1: %d",y1); // shows 4 printf("\n SQRD return y1*y1: %d",y1*y1); //shows 16 x1 = (y1*y1); // ??? printf("\n SQRD return X1: %d",x1); //shows 0 ! return x1; // … | |
hi i am trying to explicitly link a dll to my console application however LoadLibrary() keeps returning with error 126: the specified module could not be found the file is in the same folder as the exe, and i've tried moving it to system32 and it's the same error, so … | |
I need to know if i can take a user inputed string such as [code=python]name = raw_input("Enter Name:")[/code] and take the word inputed and break the string apart by letters for example: If the user enters "joe" i will get "j", "o", "e" is this possible? also i need to … | |
I hope I'm doing this right since it's my first post. I have a hash table (HList, vector) of lists and I want to use bubble sort to sort my list of entries (HashEntry,class). It compiles fine and temp is a valid list, but my temp.end() is a bad pointer. … | |
Hello, Is it possible for anyone to explain to me what "Initialize the 3 parallel arrays" means? Here is the problem. A file called seats.txt contains a description of an airline seating arrangement and a list of individual seat assignments. An example is shown here: rows 7 leftSeats 1 rightSeats … | |
Hey everyone, I'm having abit of trouble with a seg fault. As said in the topic, the piece of code that gives the error isn't really working with an array. I ran the program through the gdb tool in g++, and it says the the seg fault occurs in the … | |
Hello everyone, If I was to set my site to redirect any subdomain to the main page in the htaccess file like so: [code] RewriteCond %{HTTP_HOST} ^(.*).example.com RewriteCond %{HTTP_HOST} !^www.example.com [NC] RewriteRule ^(.*)$ http://www.example.com/ [P] [/code] Would this mean that if I was to type in elephant.example.com it would redirect … | |
I'm a newbie to SOAP, and have been searching for an answer with no luck. Hopefully someone can help me out here. I have a VB script which successfully retrieves a SOAP response (xmlhttp.responseText). I can see the response with WScript.Echo, save it in a variable or can save it … | |
Im a beginner programmer this semester, and python is my first language. I can do the homework but am naturally curious at spiffing up my programs to help me understand how to have many things working at once in a program. I have some ideas but have not been able … | |
how do you fill an object such as a rectangle with a colour using setfillstyle(); ?? I dont want to use flood fill as i am having more problems with that.. | |
I keep getting a error for adding strings and integers together. how can I fix this? It is in the line hours.append(hWork + "\n") [CODE] hours=[] hWork="1" while True: employee=raw_input("\nPlease enter the employees' first and last name. ") hWork=int(raw_input("How many hours did they work this week? ")) if hWork < … | |
Hi, I keep getting the error Traceback (most recent call last): File "<string>", line 11, in <fragment> builtins.TabError: inconsistent use of tabs and spaces in indentation (<wingdb_compile>, line 11) With the lines being [CODE] for line in datafile: pricedata = line.split(",") newdata[pricedata[0]] = pricedata[6][/CODE] I have taken out and put … | |
Database: motion_world table: accounts columns: id | username | password | register_date | account_level When i go into HeidiSQL -> Query and write: [CODE]SELECT account_level FROM accounts WHERE username='Sha11e'[/CODE] it returns: administrator But if I, in a PHP file, write: [CODE] mysql_connect("localhost","root",""); mysql_select_db("motion_world"); $hi = mysql_query("SELECT account_level FROM accounts WHERE … | |
Does anyone know how I would go about creating a IM bot which repeats back what you say? | |
Dear All, I am not only new to python, but completely new to programming in general. So please don't laugh (too much) of this certainly dumb question. I was going through the first pages of "A Byte of Python" and decided to change a bit one of the models and … |
The End.