199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Alex_

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 …

Member Avatar for soorajmkesavan
0
1K
Member Avatar for DocBreen

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 …

Member Avatar for Gribouillis
0
119
Member Avatar for wiseguy12851

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 …

Member Avatar for vijayan121
0
272
Member Avatar for nuttyniall

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 …

Member Avatar for richieking
0
157
Member Avatar for ilkeamasya

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 …

Member Avatar for vijayan121
0
118
Member Avatar for Viruthagiri

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 …

Member Avatar for Viruthagiri
0
91
Member Avatar for kesh1000

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 …

Member Avatar for Graphix
0
110
Member Avatar for sancharsharma

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

Member Avatar for sancharsharma
0
105
Member Avatar for Dark2Bright

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 …

Member Avatar for Dark2Bright
0
70
Member Avatar for Goshutu

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 …

Member Avatar for Goshutu
0
449
Member Avatar for raaif

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

Member Avatar for GeekByChoiCe
0
293
Member Avatar for stephanie7

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 …

Member Avatar for stephanie7
0
88
Member Avatar for rzhaley

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 …

Member Avatar for Ceerno
0
117
Member Avatar for nor_fairuz

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 …

Member Avatar for Gribouillis
0
189
Member Avatar for deleti0n

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

Member Avatar for deleti0n
0
130
Member Avatar for xtrmR

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.

Member Avatar for xtrmR
0
155
Member Avatar for onus

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 …

Member Avatar for Martin B
0
160
Member Avatar for Fallen05

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 …

Member Avatar for Fredo699
0
283
Member Avatar for NoMoreKawasaki

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.:'(

Member Avatar for NoMoreKawasaki
0
216
Member Avatar for keyroche

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

Member Avatar for keyroche
0
110
Member Avatar for KrazyKitsune

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 …

Member Avatar for KrazyKitsune
0
168
Member Avatar for public-image

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 …

Member Avatar for hielo
0
172
Member Avatar for leiron16

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 …

Member Avatar for abelingaw
0
365
Member Avatar for Dinnerfortwo

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 …

Member Avatar for Dinnerfortwo
0
131
Member Avatar for vt2009

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 …

Member Avatar for manugm_1987
0
188
Member Avatar for old_jefrey

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 …

Member Avatar for old_jefrey
0
107
Member Avatar for PDB1982

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 …

Member Avatar for eman 22
0
1,000
Member Avatar for shayankhan

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 …

Member Avatar for shayankhan
0
240
Member Avatar for JayGeePee

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.

Member Avatar for kylegetson
0
203
Member Avatar for tKc

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 …

Member Avatar for NathanOliver
0
333
Member Avatar for sakush100

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

Member Avatar for kylegetson
0
107
Member Avatar for keyroche

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 …

Member Avatar for keyroche
0
148
Member Avatar for Magic_Turtle

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 …

Member Avatar for sudeepjd
0
750
Member Avatar for garu525

I'm starting to learn the Pep/8 simulator. Do you know where i can find some tutorials? Thanks.

Member Avatar for garu525
0
585
Member Avatar for emmybear
Member Avatar for Looben
0
95
Member Avatar for bmos31

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 …

Member Avatar for mrnutty
0
103
Member Avatar for centerline00

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 …

Member Avatar for centerline00
0
115
Member Avatar for stangn99

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 …

Member Avatar for sudeepjd
0
126
Member Avatar for mouiny

hi is there any body can help us about our project to move the mouse via a webcam who follow a pen. Thanks

Member Avatar for kitty.naz
0
78
Member Avatar for claw72

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 …

Member Avatar for claw72
0
110
Member Avatar for angel28

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..:'(

Member Avatar for prvnkmr194
0
142
Member Avatar for Marcham93

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.

Member Avatar for Marcham93
0
55
Member Avatar for Sorcher

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 …

Member Avatar for ryan311
0
1K
Member Avatar for ccube921

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

Member Avatar for NathanOliver
0
131
Member Avatar for NotAround

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 …

Member Avatar for gerard4143
0
159
Member Avatar for PDB1982

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

Member Avatar for PDB1982
0
465
Member Avatar for ShinyDean

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

Member Avatar for ShinyDean
0
2K
Member Avatar for corby

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 …

Member Avatar for corby
0
102
Member Avatar for evertron

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 …

Member Avatar for evertron
0
237
Member Avatar for halil.burak
Member Avatar for halil.burak
0
135

The End.