199,114 Archived Topics
Remove Filter ![]() | |
Hello. This is what i'm trying to do: [code=java] public class ComputeSearch extends HttpServlet { private static final long serialVersionUID = 1L; protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter exit=response.getWriter(); exit.println("<%@ include file=\"GetByPath.jsp?path=1/2/5/\" %>"); } } [/code] The problem is that the server does not compile … | |
Here's the code I need to loop: [CODE] dmg = random.randrange(1, 10, 1) print "You have decided to attack the giant rat." ratHP = 100 ratHPN = ratHP-dmg print "you did" , dmg , "damge to the rat, giving it" , ratHPN , "left" ratHP = ratHPN [/CODE] If you … | |
I know many assembly languages so my question isn't anything assembly related it's C++ related, I understand what __asm does and I've used it before but where's where I'm hung up on __asm drops down to the assembly level for programming although it's not advisable to use it because it's … | |
Hi I am trying to write a simplie login perl script all is working apart from the final if statement. if the username and password match the data stored in the txt file $auth returns true which works then a second if checks if £name is != to "admin" if … | |
I have an win32 console phonebook application. Phone records are held as linked list. [CODE] struct Tel_dugum{ char name[NAMELEN]; char telno[TELNOLEN]; Tel_dugum *next; }; [/CODE] You can see the structure of the linked list above. My problem is when i search i dont want my app to search whole records … | |
Hello Friends, I have a site called [URL="http://minitaskr.com"]minitaskr.com[/URL] I'm getting some unknown symbol as a error in my pages. I believe the error is in the styling of the page. This is the error symbol. [QUOTE].�[/QUOTE] You can check this error in this page. [URL="http://www.minitaskr.com/faq"]http://www.minitaskr.com/faq[/URL] Can anyone solve this?. I'm … | |
hi all. im looking for a tutorial or a guide to code php script for login access for mutiple use types for eg. guest member staff admin do any any of you have any tutorial or guide me through it. i know basic login creation and mysql data handling. another … | |
I am a beginner in coding and have just started learning C++. We have been given a project of making bloxorz but unfortunately none of my team members and me know much about GUI and we are in a hurry. Plz suggest some concise locations to read only the basics..... … | |
Hi everybody, I am new to shell script. Please help me with this problem. I have a file test.txt with the content like this: [QUOTE] ! ((x5 * -1/3000) = x6) ((x5 * -1/2000) = x6)[/QUOTE] I have a shell script test.sh like this [CODE]#!/bin/sh while read line do echo … | |
Hi,I have tried to get this program to work,but it works to the moment when you enter some of the array`s numbers and then crashes.In different sizes of the matrix you can enter different number of numbers,but for instance when the matrix is 5x5 the program crashes after the 11th … | |
I am Writing a program which converts latin text to original Language script. this where i have gone so far [CODE]' Mapping for Ascii to Unicode Private mapAsciiToUnicode() As String = {"h" => "1920","S" => "1921", "n" => "1922", "r" => "1923", "b" => "1924", "L" => "1925", "k" => … | |
can someone tell me how to create magic square on c++ that something like this: 816 357 492 i need to create a program to prove the numbers that i will insert is magic square or not.. :'( i really need it.. my brain blank when i want to do … | |
hello i am supposed to display the ascii character set from 32 to 100 and then from 225-250. I have found the code to show 32 to 100 but cannot think of how to put 225 to 250 in there as well. here is my code. I just need to … | |
Hi all, I would like to ask. Im Fairuz and the new member for this forum. I having problems to sort the multi dimentional array in python. ie: [('DcaUiVb_B09398-11', [None]), ('m3sui_R66441-35', []), ('m3sui_r26557-01', []), ('m3sui_R31225-24', []), ('m3sui_r66147-03', []), ('m3sui_R31225-23', []), ('m3sui_R30803-10', [])] I have the list but im having problems … | |
I don't know why it throws the exception any ideals?? heres my error: the line it tells me is throwing the exception is highlighted in red: run: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4 at lab32analyzingscores.Main.main(Main.java:15) Java Result: 1 BUILD SUCCESSFUL (total time: 11 seconds) [CODE] package lab32analyzingscores; import javax.swing.JOptionPane; /** … | |
Whatever directX program i run gives this error. I am seriously getting pissed by this error. Cant find in which line too. Somebody please help me out. | |
I am making a program to do a breadth first search. The code which I am posting here just makes a que of the nodes visited in a binary tree in inorder fashion,so this implementation is not yet complete. While developing I got a segmentation fault which I was not … | |
Hi.. Ive been doing python for about 2 days now (my 1st programming language) and im wondering, after ive made the .py file, and all the codes in it, how do i run it? To be honest im not even sure if the term compiling is right... I am doing … | |
help me with this problem: to develop a C++ program that generates three random numbers within the range of numbers specified by the user. The program will then determine the largest and the smallest numbers among those three numbers.:'( | |
Basically, I have a class that is used to add a note to the database and it links the note to a particular business. The for loop goes through all the notes (since you can have multiple for one business) and adds them to an array that is then returned. … | |
This might be a little challenging, but I'd like to know. [code=syntax]from math import sqrt y = int(raw_input("> ")) x = sqrt(y) print x [/code] In this code, say I input 4 for y. The output will be 2, naturally. However, say I have 2 for y. I'd get something … | |
Hi Everyone, I have got a DIV that I need to refresh, its content consists of an image that will change on the insertion of a row to the SQL Database, however, when I use a refresh on my div it does refresh but does not change the image... My … | |
Hi to all, sorry for the bad English, I am a beginner programmer but yet task to develop a payroll program for a company with 350 employees. The payroll program that I will going to make is separate from the time in and out program the company have. The Time … | |
I can't get this while loop to keep looping and not do a fast loop. The full code is downloadable [CODE]while (num == 0) { cout << "Type in two values:\n"; cin >> num; num1 += num; cin >> num; num2 += num; cout << "Which measurment unit do you … | |
Tryin to finish some C# tutorial examples, I write VB and some procedural proprietary languages at work and must learn C#. I am having trouble with OOP and syntax: Why does the writeline command return no values? My struct contains the method and variables I want passed to the Main … | |
Hi there, Let's say we have the following: [code] #include <map> #include <string> #include <vector> #include <algorithm> using namespace std; typedef pair<string, int> Data; class DataCompare { public: bool operator()(const Data& el1, const Data& el2) const { return lessK(el1.first, el2.first); } bool operator() (const Data& el1, const Data::first_type& k) const … | |
How do I, if it's possible, take in user input to fill an ArrayList<Integer>? This is what I have so far, but the code doesn't let me incorporate user input. I'm having a hard time figuring this one out... [code] import java.util.*; public class Duplicates { Scanner input = new … | |
Hello guys i am in level of class and objects i need some help and guide in copy contruct i search the thread and found 1 [url]http://www.daniweb.com/forums/thread21662.html[/url] but this is not what i want... ok here is the problem.. i created contruct class ... i want in program that create … | |
![]() | I was wondering how to display php on a html page? My site has a php backend doing all the work, html to make it look good. I'm trying to display a chat box which is coded in php on my html header page. |
I need help in reading a text file and by using a switch statement the user can either press 1 to find the average of all the integers in the text file, and by pressing 2 they find only the averages of the real numbers in said file. This is … | |
$oldm='5'; I want $oldm to convert to a new variable $newm, so that $newm contains "may". I mean i want to convert $oldm to text month. How to do it ? | |
Hello, I have a bit of explaining to do so please bare with me. I am developing the backend of a site and it has a log in feature. I have separated all of the functions of the whole back end into classes: clients, users, ads, database, and security. I … | |
Hi everyone, Im new to coding and php and need some assistance on how to read php information from a file and display it in an html table. Basically the site my teacher has asked me to make is one where i can type in a url, link text into … | |
I'm starting to learn the Pep/8 simulator. Do you know where i can find some tutorials? Thanks. | |
what is event driven programming and what are the types of events? | |
I'm new to recursion and am wondering how the output of the code below is 6. So from what I can understand, there are 2 base/anchor cases which return 0 or 1? Is this correct? And the recursive/inductive case is the f() calling f(), but I'm confused on what it … | |
OK, I have a assignment due to use dynamic arrays to make a program that requires user input.It has to be dynamic array, and we never went over vectors in school..as I've seen it used in other not so similar programs, and the result is tabular output like: Canidates Votes … | |
Hi guys, I'm working on a little project and need some help. What I'm looking to do is: 1. have user fill out a form to obtain information 2. based on the information, the system will decided while file should be provided 3. system will automatically send an email to … | |
hi is there any body can help us about our project to move the mouse via a webcam who follow a pen. Thanks | |
hi people can anyone help me how to simplify these codes? [CODE]Set oExcel = CreateObject("Excel.Application") Set oBook = ThisWorkbook Set osheet3 = oBook.Worksheets("DBASE") Set osheet4 = oBook.Worksheets("List Box Lookup Demonstration") Dim listIndex As Variant On Error Resume Next osheet3.Select Range("b65536").End(xlUp).Offset(1, 0).Select Selection.Value = ListBox2.List(0) Selection.Offset(0, -1).Value = TextBox2.Text Selection.Offset(0, 1).Value … | |
i need to write a c++ program that calculates and produces these two columns using the three looping statements: for loop/while loop/do while loop. NUMBERS[INDENT][INDENT][INDENT][INDENT]SQUARED[/INDENT][/INDENT][/INDENT][/INDENT] 1[INDENT][INDENT][INDENT][INDENT]2[/INDENT][/INDENT][/INDENT][/INDENT] 2[INDENT][INDENT][INDENT][INDENT]4[/INDENT][/INDENT][/INDENT][/INDENT] 3[INDENT][INDENT][INDENT][INDENT]9[/INDENT][/INDENT][/INDENT][/INDENT] 4[INDENT][INDENT][INDENT][INDENT]16[/INDENT][/INDENT][/INDENT][/INDENT] 5[INDENT][INDENT][INDENT][INDENT]25[/INDENT][/INDENT][/INDENT][/INDENT] kindly help me please..:'( | |
Anyone know of a way to change the windows aero glass color system wide? I have been looking around and can't seem to find a way to do so. Any help would be appreciated. Thanks. | |
Hello. I am making a register/login function, and i want the user to be able to upload files to his account, and can later view these files. I wonder how i can make the upload script insert data in a mysql table only for the current user uploading, i dont … | |
Windows is shutting it down with a send error message option. [CODE]#include <iostream> using namespace std; struct attrib{ char x; int y; char cont; }; attrib brd[8][8]; int main() { for ( int x =-1; x<8; x++) //accesses all columns in the array { for ( int y=-1; y<8; y++) … | |
I'm rather new to the C programming language and I'm very stuck. Whenever I try to assign a value to dynamically allocated string, I end up with a Segmentation Fault. Could someone help me by explaining why this happens. Following is a bit of my code that I think should … | |
I'm trying to find a way to find, and remove, duplicates in an ArrayList without using sets or hashes. This is what I have so far, but I keep getting the following error: [code] import java.util.*; public class Duplicates { Scanner input = new Scanner( System.in ); int i; ArrayList<Integer> … | |
Hey there im doing a simple two up dos program for an assignment and im having some issues, we have been given a skeleton with methods and forms within it and im pretty sure were not allowed to change it. heres my code: [code] class TwoUp { Coin coin1 = … | |
Here are my questionsand my answers. Could you guys/gals tell me if i am right or wrong? Which array-based operations are O(1)? inserting item or deleting item in unsorted array Which linked-list operations are O(1)? inserting and deleteing item in unsorted lsit Which array-based operations are O(n)? traversing through the … | |
The user enters a number and the program should output that amount of rows and colunmns. I have tried a couple of different ways butcant quite get it even though I think I am close. for example if 10 is entered it should look something like this: O OO OOO … | |
|
The End.