199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Insomniac119

Everything work except for the fact that it cannot solve the whole puzzle, only a few rows. If somebody could just look over the recursive backtracking part of the algorithm, that would be greatly appreciated. Here's the snippet of code that I think is causing me grief: [code] /* @member …

Member Avatar for tux4life
0
1K
Member Avatar for akhileus87

Hy all, Firstly sorry for my English. I do one school project where I need to open one app with web page, what is generated with python. This process or app will make calclulation and create models. I created .bat to open this app: C:\\OpenModelica1.4.3\\bin\\omc +d=interactivCorba This works fine, but …

Member Avatar for akhileus87
0
124
Member Avatar for aodpreacher

I have a Class and then a made a sub class that would check if the letter "a" is in the string. i don't know how to call the subclass i made. i want to insert the subclass object into a StringDetail array but i keep getting an error. i …

Member Avatar for aodpreacher
0
155
Member Avatar for dekaya

once I have assigned a file name to a stream object, and no longer have direct access to that file name but I do have access to the stream object is there a way to extract the file name from it? It has to know it because subsequent operations read/write …

Member Avatar for dekaya
0
2K
Member Avatar for coder101

Hi all. I'm a novice with C++ and I'd like to make a program that will present the user with a series of exam questions, most of which are numbers but some of which are descriptions. I want each question to repeat until the user enters the correct response (but …

Member Avatar for WaltP
0
168
Member Avatar for sid78669

Following is a perl script. It is running on shell when I go perl followed by the filename and works perfectly. But when I try to open it from browser, it gives back a 500. The permissions are fine because if i make some syntax error, it gives me the …

Member Avatar for sid78669
0
225
Member Avatar for joozi

Im doing a c++ course at uni and one of my questions is to read in an external file, input a number (like 64) then the program will search the file for the number and output how many times the number the user input comes up in the file. here …

Member Avatar for WaltP
0
103
Member Avatar for Malestryx

Good afternoon, I have posted a similar question before. I am a Python Newbie. But, I really need some code help here. I am writing a payroll program. Here is my code: [ICODE] employee=[] eName="Employee" pRate="Payrate" hWork="Weekly Hours" while (eName, pRate, hWork)>0: eName=raw_input("\nEnter the employees' first and last name. ") …

Member Avatar for Malestryx
0
108
Member Avatar for sid.coco

I have built an application in V C# Express Edition, now in express edition there is only ClickOnce and we can not publish the application, i hav used Windows iexpress wizard to create the setup but in vain, so if anyone can tell me what should I do in order …

Member Avatar for JerryShaw
0
121
Member Avatar for OmniX

List of possible php functions validation: strip_tags() nl2br() htmlspecialcharacters() escapeshellarg() addslashes() stripslashes() realpath() basename() umask() is_uploaded_file() move_uploaded_file() magic_quotes_gpc() mysql_real_escape_string() Now obviously some of these are not required for input validation but I thought I might as well list them. Now I would like to make some function to check against …

Member Avatar for cwarn23
0
216
Member Avatar for 0o0

Hello, I'm new to gui programming althou i've done things before in c++ i've always encountered this error and never really tried to fix it. Lets for say I have a counter label and a button that says "Start" when one clicks start the label changes values from 0 to …

Member Avatar for 0o0
0
207
Member Avatar for sautap4u

I AM FACING PROBLEMS WITH SEPARATING SENTENCES FROM A TEXT . FOR eg. if i separate sentence after each '.' then it won't help for Dr.xyz. it would consider them as two different sentences.. but it is not. please help if possible with a suitable code..

Member Avatar for Ancient Dragon
0
270
Member Avatar for snowfish

hi, i think i should add a password protection for my app.When the application starts, ask the user to enter the password. If the password is valid, the app continues to work normally. If the password is wrong, ask them to enter it again or close the app. if there …

Member Avatar for lllllIllIlllI
0
10K
Member Avatar for easytrucker45

I am having problems getting my program to compile and run. Newbie from the word go. The main problem is I have all of the code but I cannot make the other classes go with the main class. Any help would be great. Here is the code that I have …

Member Avatar for easytrucker45
0
253
Member Avatar for tortoiseman

Hi, I've never used PHP before so I don't even know if I'm posting in the right place, but I'm wondering if it's possible to scrape information from a dictionary-like Web page. I want to take a list of words and retrieve piece of information about each word, but the …

Member Avatar for tortoiseman
0
139
Member Avatar for linhngoc2100

I have a homework that only uses loops and selections. I do not know how to do it. Here is the topic: Write a program that prompts the user to enter the number of students and each student's name, score. Finally, display two students have the highest scores. Thank you.

Member Avatar for GDICommander
0
107
Member Avatar for baudday

Can anyone provide me some tips on user management using php? What do you consider to go about registering users and allowing them to login.?

Member Avatar for baudday
0
103
Member Avatar for student_x

given a queue: queue<int> myqueue; write a function to remove the last entry in the queue. remark: you can't use stack, pointers, or linked list to do that. You can only use functions such as myqueue.pop(), myqueue.front() etc... Anyone has any ideas?

Member Avatar for student_x
0
6K
Member Avatar for saltysnack

Right now im making a converting program for myself. I got it to convert correctly but it only converts one character so here is my code [CODE]map<string,string>datamap; datamap["A#"]="b"; datamap["C"]="DD"; string change; getline(cin,change); for(int i=0; i<change.size(); i++) { //output based on what character gets passed to the map cout << datamap[string(change.begin() …

Member Avatar for GDICommander
0
103
Member Avatar for archangelzero6

I am writing a program and want to have a a file loaded to be written to a specific location on the drive when an option is selected in a combobox. Here is the code that I have: [code] Private Sub ComboBox5_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles …

Member Avatar for martonx
0
180
Member Avatar for klas

Hi All, I am new to this forum and looking for your help. I am a Software Tester and trying to build a C# program that would be logging in to the website and clicking links, inputing text and loging out. The code below works to the point where it …

Member Avatar for Fnky
0
345
Member Avatar for vidaj

Hello I'm building my own html parser in python, and have ran into some problems. First off, I'm using python 3, so I can't use the old bundled sgmlparser, or beautiful soup and could not find windows binaries for lxml, so I'm rolling my own. It is for my master …

Member Avatar for vidaj
0
1K
Member Avatar for Tigran

Hello, A few days ago I visited a lecture of a teacher in an university that was about parallel processing. He explained why it's good etc, and how you can make programs that use multiple cpus in C. He used MPI and the code looked nice, wasn't too hard and …

Member Avatar for tux4life
0
95
Member Avatar for krm08

Hello friends, I want to get the row position a table with respect to the primary key.How can I do that?.Please help me!

Member Avatar for freshfitz
0
69
Member Avatar for seao111

Hi, i am trying to make a general compression algorithm in c++ but i haven't really gotten the i/o part of this right yet. What i want to do somewhere along the line is to have my program parse say 10 or so characters at a time from a binary …

Member Avatar for seao111
0
163
Member Avatar for Helgso

This program is "C:\test\program.exe": [code]#include <iostream> #include <fstream> using namespace std; int main() { int choice; cout<<" Which name to embrace?\n\n"; cout<<" - 1. Fight Club\n"; cout<<" - 2. Shawshank Redemption\n"; cout<<" - 3. Italian Job\n"; cin>> choice; }[/code] There's also a .txt file there named file.txt, "C:\test\file.txt\". Inside this …

Member Avatar for tux4life
0
219
Member Avatar for pythonator
Member Avatar for phouse512

Hello, I'm learning to start to program in C++, and I have a problem with the prompt closing before the program ends. I know there's a lot of info about it, and I've googled it and searched here, but all the solutions to system("pause") don't work for me. I'm using …

Member Avatar for phouse512
0
105
Member Avatar for Malestryx

Good evening, I was wondering how I could set up a loop for the following code that will exit the loop when the person types done. Would the while command work to do that? [ICODE] def hours(): hours = input("How many hours did they work?: ") return hours def payrate(): …

Member Avatar for woooee
0
91
Member Avatar for originalremix

Hi all, New to these forums, i've just started learning python, and for my class i have one question that i have to do that i understand but aint to sure about what exactly is required. "Design, code and test a comp program that reads a character entered from the …

Member Avatar for woooee
0
172
Member Avatar for mimis

Hello, I have seen many problems that inputs an unknown size of tests and i have to output the result of each test. An example is here: [QUOTE] The Input The input will consist of a series of pairs of integers i and j, one pair of integers per line. …

Member Avatar for mimis
0
186
Member Avatar for Lazzi

Hi I have to solve this problem with dynamic programming We have system that generates sequence of chars, system can be only in one stat at a time. If system is in the state qi in the next step he goes to state qj with probability pij while generating char …

Member Avatar for thoughtcoder
0
99
Member Avatar for MaestroRage

A huge huge thanks for all the assistance in my previous thread. It has me well on my way. The problem right now is I am trying to read input from a file using the '<' redirection. I however, am completely lost on how to do this. Searching google has …

Member Avatar for Aia
0
13K
Member Avatar for edb500

Ok i have a parent class called MobileAccount, it has a public method called void PrintAccountInfo(), and within this PrintAccountInfo() method I call a private method called void PrintAccountType(). Now as I mentioned the parent class called MobileAccount has a subclass called AdvancedAccount, it too has a method called PrintAccountInfo() …

Member Avatar for ArkM
0
80
Member Avatar for turbomen

Dear Sir / Madam, The following is the game of Rock, Paper, Scissors. But I don't know why computer is always choose Rock. My Answer:- program RPS5; {$APPTYPE CONSOLE} uses SysUtils, ourcrt; var Computer : integer; Choice, Move : char; begin repeat writeln('Rock(R), Paper(P), Scissors(S)'); readln(Choice); until (Choice = 'R') …

Member Avatar for FlamingClaw
0
88
Member Avatar for chaney44145

I am having some problems with python. If I use IE to POST data to a page using a simple form, I get the following [code] POST /automa/auth.php HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */* Referer: http://maroon5/automa/login.php Accept-Language: en-us Content-Type: application/x-www-form-urlencoded UA-CPU: x86 Accept-Encoding: gzip, …

Member Avatar for chaney44145
0
183
Member Avatar for punitdam

Hi, I am new to PHP and Mysql development . I had installed RHEL5 Server, Apache, PHP5 and MYSQL5.1. I got below script which actually give status of the Apache, PHP and MYSQL. [code] <?php session_start(); ?> <!-- INSTRUCTIONS: 1. Please copy this file anywhere in the DocumentRoot of your …

Member Avatar for nav33n
0
202
Member Avatar for senaddor

Hello. I am having hard time understanding recussion in binary search tree. Assuming we have 6,4,7 in our tree the following inorder function should print 4,6,7 and I don't understand how it's done. Can somebody help explaining in more detail. Thank You. [code=cplusplus] void BinarySearchTree::print_inorder() { inorder(root); } void BinarySearchTree::inorder(tree_node* …

Member Avatar for Narue
0
178
Member Avatar for ChintuChowdary

HI TO ALL... how to find and get mac address using php. THANKS IN ADVANCE..........

Member Avatar for ChintuChowdary
0
109
Member Avatar for taylormsj

Hey I need some more help with my program for my mum's indoor childs play center program. I have a database with information about the child, including date of birth in format 01/01/0001. I want the user to be able to click a button say 'btnjanuary' and for a list …

Member Avatar for taylormsj
0
92
Member Avatar for becdudek

hey i am meant to write a method to display a number of prime numbers specified by the user. here's my code and i know its prob all wrong and there are much easier ways to do it but i just wanna know what to do to make it compile …

Member Avatar for rahul8590
0
157
Member Avatar for prabu.r

Hai , I am new to this forum as well as to Visual Studio 2005. i need to know all controls in VB.Net and their uses. which site i have to refer? Thank You.

Member Avatar for Teme64
0
70
Member Avatar for Acute

Hi everybody! I have a problem here while using an http authentication: when you open the page with http-auth code in the browser, the user-name and password box appears-it is Ok, however, I can't make the user-name&password box to apperar again....For example, if you login wrong user-name or pw you …

Member Avatar for jbennet
0
108
Member Avatar for joshmo

I have two .java files and I want to access a variable of a method in one of the files and use it in another. However, I dont want to call the whole method and I dont want the method to return a value...I'll try to illustrate below [code=java] [COLOR="Red"]//file_A.java[/COLOR] …

Member Avatar for javaAddict
0
3K
Member Avatar for king_786

hello i am stuk on this piece of work which i have no understaning at all!!! this is the question could someone please show me or give me gudlines in how to do it!!! Write a Java application that asks a user for their name and displays it in a …

Member Avatar for javaAddict
0
187
Member Avatar for MukeshZ

Hi I am facing logon Failed problem in VB.Net Crystal Reports after i deployed it at client side... A window showing Database name, user name, Server and password I fill it manually still it fails... Can any one help me to sort out this solution... Thanks :)

Member Avatar for maczoon
0
688
Member Avatar for raul15791

Hi, I'm trying to save some images into my Database of my application. Can I know which of the method below is [B]better [/B]and [B]why[/B]? 1. Store only the picture path into the database. Retrieve Picture according to its path. 2. Store the Picture in Database as bytes. Thanks.

Member Avatar for maczoon
0
155
Member Avatar for shahzadhard

Hi I worte this code can any body tell me why its not working Error can be seen in the attached file whis…. Value cannot be null. Parameter name : data source Private Sub btnTotal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTotal.Click Dim ConnectionString As String = "Integrated …

Member Avatar for maczoon
0
93
Member Avatar for king_786

Write a Java application that helps a programmer check that the name to be used for a variable is syntactically correct. The rule for a valid Java name (called an identifier and is described on page 35 of the textbook) is a sequence of letters, digits, underscores (_) and dollar …

Member Avatar for bluesea50
0
116
Member Avatar for turbomen

Dear Sir / Madam, Please help me again on Delphi. Please help me to write a program that uses a function to caoculate the commission payable to the sales person, when passed the commission rate for the item, the total items sold and the price per item. For example, if …

Member Avatar for FlamingClaw
0
97

The End.