199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rpineres

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 …

Member Avatar for stultuske
0
123
Member Avatar for WaelTheNoble

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 …

Member Avatar for WaelTheNoble
0
122
Member Avatar for David22

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

Member Avatar for vchandra
0
119
Member Avatar for girishn

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

Member Avatar for WaltP
0
114
Member Avatar for Encrypted

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 …

Member Avatar for Encrypted
0
129
Member Avatar for cidalan

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 …

Member Avatar for cidalan
0
90
Member Avatar for Phil++

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

Member Avatar for cwarn23
0
97
Member Avatar for kincaide3

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

Member Avatar for kincaide3
0
50
Member Avatar for jack_fry

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 …

Member Avatar for jack_fry
0
132
Member Avatar for SCass2010

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 …

Member Avatar for kvprajapati
0
122
Member Avatar for z_jun

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.

Member Avatar for z_jun
0
210
Member Avatar for Someguynamedpie

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

Member Avatar for mrnutty
0
848
Member Avatar for reescooper

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

Member Avatar for kvprajapati
0
99
Member Avatar for Rohith Reddy

Hi, Can any one suggest me a java script to make a master page fit to all scree resolutions. Regards, rohith

Member Avatar for kvprajapati
0
85
Member Avatar for NitaB

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 …

Member Avatar for NitaB
0
186
Member Avatar for DaveTran

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

Member Avatar for DaveTran
0
117
Member Avatar for dude1

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

Member Avatar for dude1
0
122
Member Avatar for n21115

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 …

Member Avatar for _Set
0
1K
Member Avatar for bananasplitkids

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 …

Member Avatar for bananasplitkids
0
116
Member Avatar for mathpro

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 …

Member Avatar for some
0
199
Member Avatar for Barrett1

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 …

Member Avatar for Barrett1
0
109
Member Avatar for max.v8

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 …

Member Avatar for max.v8
0
181
Member Avatar for whatThewhat

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 …

Member Avatar for whatThewhat
0
129
Member Avatar for monjed

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 …

Member Avatar for monjed
0
116
Member Avatar for annazpereira

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

Member Avatar for annazpereira
0
215
Member Avatar for giahmed

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 …

Member Avatar for giahmed
0
150
Member Avatar for rowdyboudy

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

Member Avatar for Zetlin
0
86
Member Avatar for mrcniceguy

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

Member Avatar for mrcniceguy
0
376
Member Avatar for mattloto

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

Member Avatar for mattloto
0
278
Member Avatar for Siyabonga Gama

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

Member Avatar for woooee
0
79
Member Avatar for caribedude

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 …

Member Avatar for caribedude
0
103
Member Avatar for Zetlin

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 …

Member Avatar for Zetlin
0
216
Member Avatar for simplyflawless

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 …

Member Avatar for Zetlin
0
5K
Member Avatar for JCDenton

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 …

Member Avatar for Chris147
0
2K
Member Avatar for zipgenius

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 …

Member Avatar for est69dog
0
330
Member Avatar for andreski

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 …

Member Avatar for andreski
0
317
Member Avatar for johndoe444

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.

Member Avatar for penguiniator
0
87
Member Avatar for wesselnaude

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

Member Avatar for Ancient Dragon
0
101
Member Avatar for emteez

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?

Member Avatar for ~s.o.s~
0
66
Member Avatar for SCoder1

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 …

Member Avatar for almostbob
0
100
Member Avatar for rahul8590

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 …

Member Avatar for Fest3er
0
228
Member Avatar for benasour

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

Member Avatar for BestJewSinceJC
0
88
Member Avatar for gastonci

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]

Member Avatar for gastonci
0
84
Member Avatar for tiwas

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 …

Member Avatar for tiwas
0
133
Member Avatar for Bapes

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 …

Member Avatar for Bapes
0
228
Member Avatar for GAME

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]

Member Avatar for GAME
0
149
Member Avatar for timtalk

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

Member Avatar for timtalk
0
133
Member Avatar for botaxsmaniz

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

Member Avatar for botaxsmaniz
0
72
Member Avatar for dudedatroz

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 …

Member Avatar for dudedatroz
0
84
Member Avatar for Lokeshmsit

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

0
170

The End.