199,114 Archived Topics
Remove Filter ![]() | |
I'm currently working on a small text game project as an exercise in Java. Just recently, I've come to a point where I am having difficulty with the logic behind the flow of the program. It had started out as a console application with a very sequential series of events … | |
Dear All, I'm a newbie to both XML and XLST. I have an XML document that has the following code [CODE] <?xml version="1.0" encoding="WINDOWS-1256"?> <?xml-stylesheet type="text/xsl" href="NameEntity.xsl"?> <DOC> We are going to <ENAMEX Type="LOC">washington</ENAMEX> , after that we will go to <ENAMEX Type="MISC">Newyork</ENAMEX> city, then we will go to <ENAMEX … | |
Hi guys. I'm having a bit of a 'mare trying to return some ResultSet results. Basically, my method gets the results from a database and builds a String of the information and returns it. However, I can only get the method to return the LAST constructed String, as the "result" … | |
Here is the source code I came up with: #include <stdio.h> #define SPACE ' ' int main(void) { char c, prev; int space, newline; long other; space = 0; newline = 0; other = 0L; printf("Enter text to be analyzed (# to terminate):\n"); __fpurge(stdin); /* clears buffer */ while((c = … | |
I've been scratching my head for a bit now and I can't think of a way to make a mysql_query pull a set of data that matches a number in an array. It's easier to explain what I want to do with code.. so here goes.. Then I need my … | |
hello guys, i want to know how to write a program that can read txt file. example like this, ClassAttendance1.txt and ClassAttendance1.txt contained Student ID number and name. i want to write a program that if i run the program will detect all ClassAttendance .txt and make a summary in … | |
Hey, I'm trying to implement an email system.. I'm just wondering whether it's possible that when the user registers it creates an email address like: username @ mydomain.com If you understand? Thanks for any help :) | |
hi all, i need help... ok, about the 2nd statement... [CODE] unsigned char buffer[BUFSIZ]; ... buffer[i] ^= argv[3][j++]; [/CODE] ok buffer contains characters from a file... so im a little confused about what that statement does... both the "^=" and the argv part... can anyone explain? thanks in advance... | |
Basically I'm a noob with database work andjust need a kick start to complete the rest of my other diagrams, seeing as the use case was the first step I thought I would ask for some help :D So this is my situation, can someone help me make a use … | |
hi, I was wondering if anyone could point me in the right direction here!! I have a program that reads in lottery results from the past 6 months (from the national lottery site) from a text file 31-Mar-2010,29,18,38,44,14,43,13,3,GUINEVERE 27-Mar-2010,32,38,11,15,42,6,24,2,GUINEVERE 24-Mar-2010,3,49,28,5,23,42,41,4,GUINEVERE and stores it in an array (n-1,6) where n is … | |
Hi, I am having problems with the passing of a variable to the next page. I want to pass the $title so that I can use it in the changejob.php page. The following is my code:- [CODE]<td> <a href="changejob.php?id = "<?php $title; ?>""><?php echo $title; ?></td>[/CODE] Please help me. Thanks. | |
I'm making a library for myself, and I keep getting that error :( Pib.h: [code=cpp] #pragma once #include "stdafx.h" #include <iostream> #include <string> using namespace std; class Pib{ public: void echo (int Text); void test(void); }; void Pib::echo(int Text){ printf("Haha: "+Text); }; void Pib::test(void){ cout<<"Text"; }; [/code] Main File: [code=cpp] … | |
Hi, I'd like to set up a form similar to one I have seen on the following site: [url]https://www.mysurgerywebsite.co.uk/secure/prescriptions.aspx[/url] I have a basic knowledge of web development (although I did once set up a searchable online database) and would be really grateful for some advice on how to proceed. Regards, … | |
Hi, Can any one suggest me a java script to make a master page fit to all scree resolutions. Regards, rohith | |
I see this topic has been hacked to death but it seems to be slightly different in each case. Anyway, I've been chopping away at this code for awhile. I realize that it is easier to overload the () rather than the [] which is what I was determined to … | |
[CODE] if (x <= 22.5f) { } if (x >= 22.5f && x <= 67.5f) { } if (x >= 67.5f && x <= 112.5f) { } if (x >= 112.5f && x <= 157.5f) { } if (x >= 157.5f && x <= 180.0f) { } [/CODE] My code … | |
hi, sorry for the newb questions, ive got this part of a assignment its instructions are: "Define a class called Clock -it has a single, private, data member of type unsigned long called secs -it has these four public interface methods plus necessary constructors setClock() accepts nothing, returns nothing - … | |
Hi everyone. This is my first post here at DW. I was just experimenting with programs and thus I am trying to implement [B]Bisection Method[/B] & [B]False Position / Regula Falsi Method[/B] into a C++ program. Once I am done doing these two, ill start coding the [B]Newton-Raphson Method[/B]. All … | |
Im getting the wrong output. In my while loop for the else statement I want it to perform the subtraction operation and then put that data on the queue pq2. I put a cout statement to make sure that the data is on the pq2 queue. However Im getting weird … | |
Hi, I am working on a C++ select algorithm using the qsort function. I am suppose to first sort the array and then return the i-th smallest value, which is given by the stat value. However, I have no idea how to return the value from a void array. I … | |
Display Div tags after 4 results not from database [CODE] $a = 0; while(){ if($a == 4){<div class="result"><p>}//Display after 4 results $results .=''.$result.''; if($a == 4){</p></div>}//Display after 4 results $a++; } example: <div class="result"><p> result 1 result 2 result 3 result 4 </p></div> <div class="result"><p> result 5 result 6 result … | |
Hello guys, this is my first time in these forums, so I apologize for my bad English. Well, here's the problem: I need to get the frequency of integer numbers that are stored in a file, their range is from 0 to 100, their amount is unknown and depends on … | |
I really need some help implementing counters. I have to count the suits and faces drawn from the deck but for some reason all outputs is junk numbers. Am I missing something? I what it to come out something like this: Say a player is dealt: Ace of Hearts Ten … | |
i need a program that reads a paragraph of 6 lines of text. The user can enter extra spaces between words. The length of each line does not exceed 80 characters. The program should output the following: 1. The input paragraph without extra spaces between words 2. Average word length … | |
Hi Guys, I know loads of ppl hv seen similar problems but I just can't figure out whats wrong with my code. I keep getting the following error: Upgrade.java:133: unreported exception java.lang.Exception; must be caught or declared to be thrown new SpFwUpgrade(sp, UrlPath); SpFwUpgrade is called in Upgrade.java as follows: … | |
Hy Guys, I am having serious problem in uploading database to 123 reg server. I have Windows hosting package which supports ASP.Net andSQl hosting. I have managed to upload website to server and it works fine, the database I have is ASP.Net generated database and I have used Published to … | |
I need to write a method that returns true if all the values in two int arrays are in the range 0-10, otherwise the method returns false. The code I have written is below but is there a better/more effient way to do this? [CODE] private int[] myArray1; private int[] … | |
i have this weird problem and i dont know how to make it work. the problem appears after i consider the OR statement.without or statement the first part is working . So idont how to use this statement in mysql. i hope someone can help me. Down is my script. … | |
I need a way to get all the possible combonations of two lists. I looked into map(), but it only loops through the first array. I tried to do a map function inside a map function, but I couldnt figure out how. Heres an example: [CODE]>>> a=[1,2] >>> b=[3,4] >>> … | |
Dear help I am struggling to figure out why the following sorting algorithm doesn't work. Please help if you can. :) >> #myList is a list of arbitrary length for i in range (len(myList)): for j in range (i, len(myList) - 1): if myList[i] < myList[j]: myList[i], myList[j] = myList[j], … | |
I've been trying to make a program that can read some information from a file and store it in memory to compare with user input. It's sort of a quiz with organic synthesis. A synthesis is dived into steps so I chose to make a synthesis a vector of vector … | |
Ok so I'm learning from the book Head First Java, second edition, and I'm having a little trouble with some code. The code I'm working with compiles just fine and gives the output that I want(sort of) but whenever I run the code is doesn't stop, as if it was … | |
hey I'm trying to write a method that converts milliseconds to hours, minutes, and seconds using the following header: public static String convertMillis(long millis) My method needs to return a string as hours:minutes:seconds. For example, convertMillis(5500) returns a string 0:0:5. this is what i have so far, can someone please … | |
Okay, guys, I've been at this for hours and what is surely a simply answer has eluded me! :P Here's my situation: It's a list of computer systems, basically, that the user can purchase. I need to read this file, line-by-line, into an array. Let's call this array csvline(). The … | |
Hello. I am using Delphi 2010 to build a small application that builds a very very simple database in CSV file format. I am using the Jcl and JVCL libraries (TJvCSVDataset, TJvDataSource and TJvDBGrid). I set up the fields ("Last Name", "First Name" and "Email"), where "Email" is the only … | |
I am working with a keyloger procedure to capture user inputs even mouse has no focus on my app windows. I make it work using that code, the problem is that [CODE] event = handle.read(6)[/CODE] only reports clicks when buffer is full. Its not working ok because there is a … | |
Instead of typing :sh and being taken to the shell prompt after temporarily quitting vi, is that possible to open a split screen which is shell? Because it is difficult to keep track of whether a vi is open if working a long time in shell. | |
Trying to write a very simple function that boxes in a hello world print out. I have been stuck here for hours now and would appreciate some help as the frustration is killing me. The print out should look like this. ////////////////////// / Hello World / / Hello World / … | |
I am Linux server with cPanel. My problem is that i keep getting PermGenSpace error; even though i have set the -Xms and -Xmx attributes in starttomcat under /usr/sbin. I have searched thru the net, but I am not been able to find any solution to my problem. Any suggestions? | |
My code I'm working on has a table db the data is 4.5 I wanted it to be 4.50 any help would be great. here's my code: [code] <?php $con = mysql_connect("localhost", "root", ""); if(!$con) //If we can't connect then stop trying and say so { die("Could not connect to … | |
i have written a code for the user to select his area of expertise with respect to fields. i am able to display selected checkboxes for those fields. But when i want tio process further like when the user clicks on the particular checkbox and then submits i am not … | |
[CODE]private List list(int... ints) { List result = new ArrayList(); for (int i : ints) { result.add(i); } return result; }[/CODE] I got this method from one of my friends and wondered what it does? I have never seen int... ints construct before but am assuming it is an array … | |
very simple, is there any speed or memory diference beetwen this two whiles? [CODE] int x = 0, y = 0; while(x < size) { y++; array[x] = array[y]; x++; } [/CODE] and [CODE] int x = 0; while(x < size) { array[x] = array[x++]; } [/CODE] | |
Hi, I have a function in my program that detects if the user is already running an instance of my app. If this is the case, I want the currently starting app to shut down. I've tried a couple of ways of doing this, but I guess this would be … | |
Hello, I am currently trying to create a server/client file transfer system in which the server sends the client .mp3 files. The file transfers fine but when I go to play the file, it is all scratchy and skips and I think it has something to do with the bytes … | |
How would I create a log. What I would like to do is have the program start up and show the real time and a message. the code i have so far from searching. [code]DateTime.Now.ToString("hh:mm:ss tt");[/code] | |
[B]Please help[/B]! I'm trying to write a visual basic program that makes selections on a webpage where I work. The problem that I'm having is that the webpage has several drop down selection boxes that the values in the second and third dropdowns change once the first dropdown is selected. … | |
hello all, i need your help in visual studio 2008/asp.net 2008 i have createuserwizard in asp.net, but this template have only standard (username, password, email, etc) can i modify this template? and send data to database best regards, martin | |
hello everybody.. im creating an antivirus software with vb.net 2008 and there im scanning for viruses and put them in a listbox so we can delete them after scanning. the problem is im searching the viruses from the name and the extensions which are already exists till now. so if … | |
i m creating a Client/Server application in which my server and client can be on the same or on different machines but both are under ISP. [B]My RMI programs[/B]:- -Remote Interface:- [CODE]//Calculator.java public interface Calculator extends java.rmi.Remote { public long add(long a, long b) throws java.rmi.RemoteException; public long sub(long a, … |
The End.