199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for crazy_perl

Hi, I am new to the perl scripting and need your help regarding one issue. I have a piece in my perl script which looks something like below - if ($rec{user} =~ /Major |Minor |Low |High /oxi ) { print "Reject" . $_ . "\n"; next; } Now the list …

Member Avatar for crazy_perl
0
172
Member Avatar for bejfake

Hi, I have to write game Minesweeper in OOP way. I have classes: Square which inherits to mineSquare, emptySquare, digitSquare and class Board which is responsible for initialize and control the game. I have such code: [CODE=c]#include <iostream> #include <typeinfo> #include "time.h" using namespace std; class Square{ public: Square(){ this->isShown …

Member Avatar for bejfake
0
177
Member Avatar for aizel

here is the database [url]http://img214.imageshack.us/img214/3852/23405199.jpg[/url] here is the form [url]http://img254.imageshack.us/img254/3518/60904005.jpg[/url] if the search click i want the selected month in the combobox search from the database table under departure field month and it will fetch on the table.. for example: <--departure--> 09/10/2010 10/10/2010 10/11/2010 [code]<select name=\"month\"> <option value=\"01\">January</option> <option value=\"02\">February</option> …

Member Avatar for mschroeder
0
119
Member Avatar for myk45

Hello. i had seen in some places, the following piece of code: [CODE](void *)2[/CODE] Can anyone please tell me what exactly this means? What does casting a void pointer onto a constant as in the above case, signify? Thanks.

Member Avatar for myk45
0
97
Member Avatar for gis-brad

Hi, I am a beginner-novice programmer using Python to build custom tools in ESRI's ArcGIS. I have what seems like a simple problem, but I am afraid I'm missing a core concept. Here goes... In this simple example I assign string values to some variables and then change the text …

Member Avatar for gis-brad
0
298
Member Avatar for mattyd

Hello. I have been following a great tutorial that I found regarding searching a database: Tutorial: [url]http://www.phpfreaks.com/tutorial/simple-sql-search[/url] When I used this and ran it from my server (doing a search of the database), I bookmarked the page; my question relates to the next step: When I return to the page …

Member Avatar for mattyd
0
121
Member Avatar for thr

hello I am c++ and java programmer and i want to develope user interface for aria2c ( internet download manager ) like IDM( windows internet download manager ) this software( aria2c ) programmed in c++ and i have one problem with this ( i never programmed user interface software with …

Member Avatar for myk45
0
212
Member Avatar for Jsplinter

I am trying to read in user input which is a file path (riddled with escape characters) into a CString. How can I do this without asking the user to replace '' with '\'? For instance: [code] CString myString; myString = _T("c:\test\file\j\mypath\path\user.bin"); wcout << myString.GetBuffer(myString.GetLength()) << endl;[/code] outputs: c: estQilejmypathpathuser …

Member Avatar for Jsplinter
0
280
Member Avatar for debasishgang7

i have a very basic c++ problem. this is my problem first i am assigning an integer. int i=000; when i am writing the value of this integer into a file its writing only one "0". How can i write the all four zero in the file. actually i have …

Member Avatar for Fbody
0
258
Member Avatar for doolali

Like it says in the title im having problems with putting a 2D array into a function. Im not sure on the syntax of putting an array into a function and using it, any help is much appreciated! Thanks in advance! [CODE]#include <cstdlib> #include <iostream> #include <string> using namespace std; …

Member Avatar for doolali
0
127
Member Avatar for Bombshock

Heya Daniweb, I've been working on Regular Expressions, thanks to cghtkh who told me about them. I've used resources from: [URL="Newthinktank.com"]NewThinkTank.com[/URL] [URL="http://docs.python.org/library/re.html"]Python Regular Expression Documentation[/URL] and [URL="daniweb.com"]Daniweb.com[/URL]! I figured I'd share my code, ask a few questions, and get some feedback on what I did if I can. Feedback helps …

Member Avatar for TrustyTony
0
218
Member Avatar for mebrahtom

I recently want to develop an English and three other languages of my country software Dictionary and I can code in C/C++.peple told me that file operation is the best topic for that.BUt I don't have any idea on how to do that. help please!!

Member Avatar for N1GHTS
0
163
Member Avatar for kangkan_14

can anyone please tell me what is wrong with dis code.....i am getting a segmentation fault even though it has been compiled successfully(in a unix system): [CODE]#include<stdio.h> int low,high,mid; void msort(int a[],int low,int high); void merge(int a[],int low,int high,int mid); int main() { int a[10]; int count; for(count=0;count<10;count++) { printf("Enter …

Member Avatar for N1GHTS
0
177
Member Avatar for odlanzednanref

im in trouble. this program would be easy if our professor taught the lessons well. but he's just like a student reporting his assignment. err. need your help..it would be so much appreciated. here's the problem: Virtual ATM Machine Problem Create a program that displays a log in menu that …

Member Avatar for Fbody
0
607
Member Avatar for ptemedia

Hi. I am making an asp website to sell items. On the details for individual products page I have an image and 3 smaller ones beneath. Clicking on one of them will bring up a larger image on the screen. However, at the moment, I have to have 4 images …

Member Avatar for Airshow
0
211
Member Avatar for cclausen7

I decieded to make a program that translates a phrase in english to "1337" or "elite". I have searched this website and others and can't find an answer to the error I'm getting. Thanks for any help :). Btw I'm using Bloodshed Dev C++, not sure if that matters. [code] …

Member Avatar for cclausen7
0
3K
Member Avatar for pacers10

I have to write a table called tempconv.txt, the table should have temps from -300-212 fah and the cel equivalents with steps of 10 or 20, presented in 2 columns.I keep getting a syntax error. I think i am having trouble with the opening and closing of the file. Thanks …

Member Avatar for TrustyTony
0
165
Member Avatar for cherryduck

Hey guys and guyettes, I'm trying to make a game, when you click on a card, a certain set of things happen to that particular card. As the set of actions that occur are the same for each and every card, putting everything in the MouseClicked event for each and …

Member Avatar for cherryduck
0
133
Member Avatar for nagatron

The traditional way of displaying a file in a fileListBox is by using DriveListBox, DirListBox, and FileListBox. I would like to know how to show files on FileListBox by just using DriveListBox. Let say if I choose C:\, all the files on drive C: with a .ico, .dll, .exe, .ocx …

Member Avatar for nagatron
0
148
Member Avatar for TGeorge824

So I'm simulating a File system for my Operating Systems class. I'm kinda lazy and didn't want to do it in C, so I did it in Java :(. I also didn't make any new data structures, I just made a File and Directory class, where the Directory class has …

Member Avatar for JamesCherrill
0
1K
Member Avatar for DocBreen

[CODE]import random name = raw_input("Write your name:") print "Hello",name,"you're about to play Hangman." print "Everything you get a wrong guess, you will get a {}, if the word were Nicky you'd get 5 tries." raw_input("Press [[ENTER]]") words = ["bat","girl","epic","blocks","block","chips","boy","fire","fox","school","community"] wordnum = random.randrange(1,11,1) hangword = words[wordnum] a = len(hangword) print "The …

Member Avatar for TrustyTony
0
113
Member Avatar for Bandit290

I'm trying to print out the contents arr of objects, but all I get is a print out of my project name. I guess printing is working, but probably not correctly building my "result" so it can print out the contents. I don't really understand why, if someone can help …

Member Avatar for nick.crane
0
164
Member Avatar for hatux

Hello there I have a small question. I've been looking on the web for it but didn';t come down with an answer. As far as i've read we can get user input from the console via Scanner [CODE] Scanner asdf = new Scanner(System.in); [/CODE] What if we wanted to analyze …

Member Avatar for kramerd
0
153
Member Avatar for greatunknown

I am trying to let users enter various information onto my site and then let them export it into Word...I am able to get the exporting down fine and automatically open the Word Doc in Word, but Im not sure how to do formatting. Using html tags in the PHP …

Member Avatar for pbcomput
0
599
Member Avatar for Iron-Man1138

This is program for figuring out cost of carpet at X length Y Width and Z cost/sqft (turned to yard). I am not very strong in looping yet, but I am pretty sure that is what has to be done here. Ideally at the end I want to ask the …

Member Avatar for TrustyTony
0
320
Member Avatar for koduruabhinav

Hi, I have one problem in perl script development. I have big logic executing in script and finally should save in directory structure specified. directory structure is created at runtime dependind on user runtime arguments by argv my MAKEPATH.the script works if i gave destination directory as /home/abhinav/direc1/ (/home/abhinav/) is …

Member Avatar for koduruabhinav
0
172
Member Avatar for Jamesbch

Hello, I'm kinda weird I know but I'm trying to encode my mp3 to a lower quality (for my mobile phone) with one line of shell (with bash). I'm wasting some more time as I would do by hand but I'm very interested. Here is my not-working line : [CODE]find …

Member Avatar for ole.tange
0
347
Member Avatar for penny90

[CODE]#include<stdio.h> #include<stdlib.h> #include<string.h> int bin2dec1(char *afterx1); int bin2dec2(char *afterx2); void displayBits(unsigned value); /* function main begins program execution */ int main() { int opcode,dec1,dec2; char oprand1[13]="",oprand2[13]=""; char ones[13]="111111111111"; char zeros[13]="000000000000"; char afterx1[13]="",afterx2[13]=""; printf("Instruction : "); scanf("%d%s%s",&opcode,oprand1,oprand2); if((opcode == 1||opcode == 0) && strlen(oprand1)<=12 && strlen(oprand2)<=12) { if(strncmp(oprand1,ones,1)==0) { strncpy(afterx1,ones,12-strlen(oprand1)); } …

Member Avatar for N1GHTS
0
155
Member Avatar for avataralien

I got a HTML file. I wish to parse the content I need to a text file. How can I make use of The unix utility application that strips the HTML markup tags from the file’s content leaving just content text? Thanks for the advise! [B][U]Partial HTML file code[/U][/B] [CODE]<thead> …

Member Avatar for shibblez
0
569
Member Avatar for ASIWYFA

Hey guys, I am having trouble with my java pacman game. What I have currently is the basics. I am reading in my maze from a txt file which is working. I am stumpted on how to replace the W for my walls with my jpeg of a blue wall(imgGhost …

Member Avatar for JamesCherrill
0
583
Member Avatar for arawani

Hai, can anyone help me? missing return statement error keep appear when i tried to run this code class CoffeeBags{ //Data member private static final double PRICE_PER_LB = 5.99; private static final double TAX_RATE = 0.0725; private int numberOfBags; private double totalPrice; private double totalPriceWithTax; private int bagWeight; //constructor public …

Member Avatar for arawani
0
98
Member Avatar for bleedi

Hey, I was just wondering about searching a binary tree for the smallest / the largest value. Normally, the smallest is found by following the left branch until the last leaf is found. But what if we have a non-optimizing tree like this (8 being the root): 8 - 10 …

Member Avatar for Momerath
0
173
Member Avatar for unikshegz

I am working on a java project,i want to sequentially read an ASCII file into an arraylist and then add a method to print out the array. i want to also be able to search through the ASCII file can anyone help me with the coding. will realy b much …

Member Avatar for unikshegz
0
135
Member Avatar for Jazerix

Hey there. One of my friends want me to make him a gui, so i was wondering, how do I make it more graphical? I mean, in many programs I've seen the buttons look nothing like the ones I'm able to find in C#. Is there any way I can …

Member Avatar for Momerath
0
92
Member Avatar for vimax

Hey. I am new to webprogramming..so sorry if this question sounds stupid. I use the function setTimeout() and document.all[id].style...etc to take the value I need error: Matched Pattern: "/\bsetTimeout\s*\(/" else{parent_window=opener;} parent_window.setTimeout(function(parent){parent.WebRankV2.customize(1);},100,parent_window);return true;} my code is: function customizeWebRank(){var parent_window=null;if(opener&&opener.location.href.indexOf("extensions.xul")!=-1){if(opener.opener&&(opener.opener.location.href.indexOf("browser.xul")!=-1)){parent_window=opener.opener;} else{var window_service=Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);parent_window=window_service.getMostRecentWindow("navigator:browser");}} else{parent_window=opener;} parent_window.setTimeout(function(parent){parent.WebRankV2.customize(1);},100,parent_window);return true;}

Member Avatar for Taywin
0
231
Member Avatar for mjoshi

Hello, I am having trouble with a simple math operation after reading from a file. If a particular condition is met, i am copying a number(7 positions), starting from position 31. My aim is to sum all these numbers when the condition is met. I am testing the code on …

Member Avatar for r.stiltskin
0
186
Member Avatar for ktsangop

Hi everyone! My function UsbID uses the libusb library ([url]http://www.libusb.org/[/url]) to get a flash disk's serial number. Libusb needs for some reason a Window created or else it doesn't work properly for me. So i created a CWnd inside my UsbID function which is invisible. My problem is that if …

Member Avatar for ktsangop
0
140
Member Avatar for baconswife

With this program I need to be able to find the circumference, area, diameter and radius of a circle. Here is what I have, please let me know of any advice you have: [CODE]#include <iostream> #include <iomanip> #include <cmath> using namespace std; int main () { int x1; int x2; …

Member Avatar for Fbody
0
2K
Member Avatar for djcrab

Here is what I've wrote for an assignment..I would simply like to add a space between the song name and year and enclose the year in parentheses. Thanks yet again. Jake [CODE]<script type="text/javascript"> <!-- HIDE FROM INCOMPATIBLE BROWSERS var favSongs = new Array(19); favSongs[0] = "Falls Apart"; favSongs[1] = "Monster"; …

Member Avatar for Taywin
0
155
Member Avatar for exception

I used VB a long time.. i never manipulate a Class.. I just want to know what is the concept in using a class.. because i already graduated in an IT course, and then im eventually working with VB with a back-end SQL Server 2000. when i look at their …

Member Avatar for sajan666
0
87
Member Avatar for Kalusingh

Please help me in the following matter:- vb6 Ado database connection vb6 Ado recordset connection show record add record in database delete record from database edit record from database find record from database and all sort of ado connection and add record in datagrid Please give me solution.

Member Avatar for kinwang2009
0
265
Member Avatar for gchurch

hey all i need to check to see if my check box is checked, here is my code... [CODE]echo "<form id='form1' name='form1' method='post' action='".$href."' onsubmit='[COLOR="Red"]return checked_room()[/COLOR]'>"; while($row = mysql_fetch_assoc($res)) { $roomName = $row['RoomName']; if(!in_array($roomName,$taken_array)){ echo "<div id='RoomBorder'>"; echo "<table width='100%'><tr><th colspan='2'>". $row['RoomName'] ."</th></tr>"; echo "<tr><td colspan='2' align='left'>".$row['RoomDescription']."</td></tr>"; echo "<tr><td><b>Max Guests …

Member Avatar for fornandakishore
0
319
Member Avatar for juniper2009

Dear All I am trying to learn JAVA with Eclipse.I have a class like Form.java and it has a form which contains 4 text fields.When I press the submit button(Register) I want my program to put every thing into a file(test.txt) line by line. I tried to do something from …

Member Avatar for JamesCherrill
0
134
Member Avatar for MartinRinehart

I'm losing the content of a textarea in MSIE. (No problem in the other browsers.) Running short of ideas. I load .js files in this order: main, build, run. "main" does some bookkeeping. "build" creates the UI. "run" contains all the event handlers. At the last line of "run" it …

Member Avatar for Taywin
0
276
Member Avatar for Devasya

Hi all I just want to know, how to insert the data from a datagrid into access database? please help me.... :'(

Member Avatar for bbauraj
0
695
Member Avatar for slychronic

Hello. i am looking for a C++ code that caaculates permutations...for example your input is abc output should be.. sample output is abc cba bca cab acb bac its just for revision so a full answer is appreciated...:)

Member Avatar for csurfer
0
133
Member Avatar for Prachu

Hi all.. I am new to Python and badly need help...I am trying to run a DOS batch file from Python..I have given the inputs also..It runs half and then exits at the point of time when I need to give answer to whether I need to replace two files …

Member Avatar for changtraidoc
0
2K
Member Avatar for SAINTJAB

Guys, I need your help again in C#. I have a folder that contains txt files. I want to be able to convert the text to audio of any file in that folder. I know how to do the convestion but how to automatically convert whenever there is any new …

Member Avatar for Kimpl
0
103
Member Avatar for USC_Megoy

Hi everyone...Can ask some help with you guyz..I want to study cursor-base but I cant find it in the internet...can anyone help me to explain what is a cursor-base implementation and what are the functions..I saw virtualheap, Mymalloc and myfree function... Thanks for the explanations...More power...

Member Avatar for Martin B
0
131
Member Avatar for uptheirons1

Hi, I don't usually turn to forums, but I have run out of options. I am not asking any of you to complete this homework project for me, but what I am asking is if you could just give me a gameplan on how to tackle it. I am basically …

Member Avatar for uptheirons1
0
294

The End.