43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for J-M DESMETTRE

Hi, I wrote this sample code to check the integrity of an IBAN (International Bank Account Number) bank account number. (See Wikipedia for further information) Any advice to simplify this? [code=python] # # IBAN_Check.py # Utility to check the integrity of an IBAN bank account No. # Python 2.5.1 # …

Software Development python
Member Avatar for orinbai
0
3K
Member Avatar for bruceaj

I'm trying to pass "this" as an argument of a constructor. Is there any way can determine what the type of Object "this" is? Thanks....

Software Development java
Member Avatar for bruceaj
0
67
Member Avatar for naziatarannum

Hi, Am new to shell scripting. Please advise me as to how to write a shell script that checks a set of files under a directory, if the files are not updated/modified today then an alert mail should be sent to certain mail id. Please help. Am new to this …

Software Development shell-scripting
Member Avatar for naziatarannum
0
144
Member Avatar for scott_rider

I tested /project/pages/page[@completed='n'][not(text())=''] at [url]http://www.mizar.dk/XPath/Default.aspx[/url] with success but the xpath expression below doesn't work in C#. How do I re-write the xpath statement so I can use .Evaluate to return a empty node-set in C#? [code] string xpath = "/project/pages/page[@completed='n'][not(text())='']"; bool not_finished = (bool)xd.CreateNavigator().Evaluate(xpath); [/code] [code=xml] <project> <pages> <page id="1" …

Software Development xml
Member Avatar for kvprajapati
0
157
Member Avatar for Deadmon

Hello all, Let's say I have a vector like so: [CODE]vector < char *>rlist;[/CODE] and [CODE]char* word;[/CODE] Let's say char* word was pointing to a 9 character word, like "statement". If I were to do [CODE]rlist.push_back(word)[/CODE] I would get a seg fault. I believe this is because push_back expects a …

Software Development c++
Member Avatar for Ancient Dragon
0
165
Member Avatar for ineedhelp09

Hey everyone, I'm new at this.. so please bear with me. Anyway, I'm really confused. I'm supposed to convert the first character of the String firstName to upper case. Problem is... I have no idea how to :-/ I've done so much research and reading and still nothing. Please help …

Software Development java
Member Avatar for webmstr
0
194
Member Avatar for restrictment

I really want to add sounds to my programs, but all of the codes I use fail! I am using an empty project in visual c++, if anyone could find a snippet that would work for this, I would be extremely grateful. Thanks! Here is my current code that doesn't …

Software Development c++
Member Avatar for restrictment
0
396
Member Avatar for deftones

Hello, How to generate random non-repeating numbers?

Software Development visual-basic
Member Avatar for crackerjacker
0
82
Member Avatar for drabsch

i need to add code to the form using code like the Controls.Add(). but to add code not a control. any ideas.

Software Development visual-basic
Member Avatar for crackerjacker
0
126
Member Avatar for gogodr

I'm developing a 3D Board Game based on the World of Warcraft miniatures board game. I don't know what's wrong ... the game runs and the system is like this I have a model that can move in a map through Cells I made a procedure so you click and …

Software Development audio c c# c++ storage
Member Avatar for gogodr
0
152
Member Avatar for sanch01r

Hey guys, I am writing an Active Directory Tool and I created a Dictionary<> that iterates through all of the available attributes from the LDAP server. The Keys are the names of the attributes (displayname, samaccountname, gn, sn, etc), the TValues are the associated values to the keys. I am …

Software Development
Member Avatar for DdoubleD
0
177
Member Avatar for emilio

hi i have a WinForm with DataGridViewControll. one of the datagrid columns is a DataGridViewCheckBoxColumn. how can i Check or uncheck the Checkbox column of a certain row ?

Software Development
Member Avatar for emilio
0
280
Member Avatar for richman0829

I got not one but two good answers to my last question, which was how to make a function that would both create an array and fill it. I was surprised to find that the first one of them was so simple - I had been making it harder than …

Software Development c++
Member Avatar for richman0829
2
86
Member Avatar for jaison2

I want to be able to draw an eye for a colour inputted by the user. If the user enters the colour green,brown or blue then the eye should be drwan orelse an error message saying "not a valid colour" should be outputted [code] from graphics import * def drawCircle(win, …

Software Development python
Member Avatar for Kobrakai
0
227
Member Avatar for Aiban

I'll keep this simple for now Can a windows (7) gadget be made with python or does some microsoft type development kit need to be used? Thanks

Software Development python
Member Avatar for vegaseat
0
83
Member Avatar for mahela007

Say I've written a function that will take an unlimited number of arguments and store them under different variables. Since the use is able to input any number of strings, it's not possible to give names to all the variables that might be created. So, how would I create variables …

Software Development python
Member Avatar for mahela007
0
111
Member Avatar for Rahyalain

This my problem>>>>if any one can solve it>>> Write a java program that calculates and prints out bills of the city water company. The water rates vary, depending on whether the bill is for home use, commercial use, or industrial use. A code of 1 means home use, a code …

Software Development java
Member Avatar for VernonDozier
0
2K
Member Avatar for siggivara

I've written a method that takes a variable number of arguments. My problem is that the method is supposed to do one thing if there is only one argument, and something different if it recieves multiple arguments. If it's one argument I'm supposed to get info from a global variable, …

Software Development c
Member Avatar for siggivara
0
188
Member Avatar for bufospro

Hi, I would like to make a database with users. But I take errors in the function Could someone help me please? My code is : [CODE]typedef struct user user; int id2=0; struct user { char name[20]; char last[20]; int id; }; int function(user* users, int id, char name[], char …

Software Development c
Member Avatar for bufospro
0
93
Member Avatar for Damon88

I am developing a application in which i need to get images from a search engine. there are many choices to do that google,yahoo, bing etc. I chose bing simply because microsoft provides tight integration with bing and it offers more functionality to developers. So after searching some more i …

Software Development api seo vb.net web-browser
Member Avatar for Damon88
0
685
Member Avatar for Bheeman89

Hello Guys. I need a help here. I am doing a system using Java with GUI. SO im curious how to add a value that i have extracted from a JTextField and display it as a List in the Jlist. Here is my coding [CODE] //function for collecting data from …

Software Development display gui java
Member Avatar for javaAddict
0
533
Member Avatar for Ryujin89

I have created the output for a program that allows a user to input their employee name and number and then their hourly wage and their total number of regular hours and overtime hours. This is my first time working with this type of program in java and I'm having …

Software Development java java-swing
Member Avatar for Ryujin89
0
209
Member Avatar for pwk064

I need to change the font size after I click. How can I do that - Thanks! here is the code [code=java]import java.applet.*; import java.awt.*; import java .awt.event.*; import javax.swing.*; import java.util.*; public class JChangeFont extends JApplet implements ActionListener { JLabel question = new JLabel("Who's number one?"); JButton click = …

Software Development java java-swing
Member Avatar for peter_budo
0
93
Member Avatar for SgtMe

Now I must explain that I am a noob. I would like to write my own header file, and use the functions from it in a program. When I get Dev-C++ to compile, it says that it is an invalid function, and I need to put that before the main. …

Software Development c++
Member Avatar for SgtMe
0
255
Member Avatar for Jannelle5

Hi, I am writing this code for a class I am taking. It works fine as long as i do not use more 9 digits in length, but my teacher wants the user to be able to be able to input a number of any length. The warning when i …

Software Development c++
Member Avatar for jbennet
0
347
Member Avatar for LadyZombie

I'm taking a beginning C++ class right now, and we're supposed to make a program that allows the user to enter as many numbers as they like and when they're done, display the largest and smallest of the numbers entered. However, I can't figure out how to make it display …

Software Development c++
Member Avatar for LadyZombie
0
91
Member Avatar for msc1004

I've been trying to figure out this problem for a week. I've searched all sites for if else statements, and I can't figure out why !!!!!!!!!!!!!!!!! What's wrong with my statements ?? Help me out !!!!!!!!!!! please. #include<iostream> #include<string> using namespace std; void main() { char hsg; //Highschool Graduate char …

Software Development c++
Member Avatar for donaldw
1
92
Member Avatar for pankaj.garg

Need help for creating an diary alphabetically...some doubts 1. Do i need to create separate recordset for each alphabet (A-Z) ? 2. How do i get the 1st letter of the name entered into a textbox ? (hav heard that "VB Controls" help...but couldnt find a control to help me..) …

Software Development visual-basic
Member Avatar for akhileshbc
1
125
Member Avatar for power_computer

For the life of me I cant figure out this simple task I know with a static array you just simple shift over one element and decrease the size in variable pertaining the length of the array as such [code] for(i = 0; i < n; i++) if(key == array[i]) …

Software Development c++
Member Avatar for power_computer
0
3K
Member Avatar for power_computer

I have a linked list containing the following data struct node { string name; int hours; node* next; } I have all function I've made so far working, adding indiviual node, deleting node, printing data in nodes, Ive made the program to read from a file upon execution to create …

Software Development c++ linked-list
Member Avatar for power_computer
2
1K
Member Avatar for godsgift2dagame

Hey guys, I'm struggling with yet another problem. The goal is to run 1000 "draws" of three numbers but the catch is, the three numbers can't be repeating. So, no 4 1 4 or 7 7 7 or 8 1 8 and so on and so forth. Every line of …

Software Development c++
Member Avatar for godsgift2dagame
0
102
Member Avatar for richman0829

Hi - I'm having a problem converting a couple of things that work fine spelled out in function main, but not when I try to define them as functions. One is a process of filling in a one-dimensional array. I'd like to just be able to say "here's the array; …

Software Development c++
Member Avatar for richman0829
0
153
Member Avatar for Deadmon

Hello all, I have a small question here. Let's say I want to tokenize a string(or multiple strings) from input. For example, my input file has the following: 1 2 3 And this is my tokenizing code: [CODE] char line[256]; vector < char *>tokenize(FILE * in) { vector <char*>tlist; char* …

Software Development c++
0
59
Member Avatar for sentinel123

Hello. Here I go again. I tried to create a computer enemy for my connect 4 game: [CODE] def turn_comp(): import random print 'Computer ist am Zug!' playchip = random.randint(0, columns) board[0][playchip] = 'O' print_board() [/CODE] Even though I limited the range of randint with 0 and columns (in a …

Software Development python
Member Avatar for pythopian
0
149
Member Avatar for sentinel123

Hello. Here I am again with my Connect 4 project and another board problem. This is my code: [CODE] fielda = [] fieldb = [] rows = int(raw_input('Height: ')) columns = int(raw_input('Width: ')) if rows < 4: rows = 4 if columns < 4: columns = 4 def print_board(): for …

Software Development python
Member Avatar for sentinel123
0
132
Member Avatar for obautista

I need help converting this code that is using Linear Probing to Quadratic Probing. I am not sue how to accomplish that. Can someone help me? Thanks so much... import java.util.*; // A HashMap class which uses linear probing public class HashMap383<K, V> { // array-based; this is the array's …

Software Development java
0
72
Member Avatar for bufospro

Hi, I need your help for my program. My code is : [CODE] void user() { char str[15]; int i=0; do{ printf("\nPrint str.\n"); fgets(str,15,stdin); i = strlen(str); }while(i>15); } void menu() { printf("Press :\n"); printf("0. \n"); printf("1. \n"); printf("2. \n"); } int get_choice() { int choice = 0 ; const …

Software Development c
Member Avatar for bufospro
0
133
Member Avatar for zakben1

Hi I have been searching the net for information on backing up files to cd from vb.net application cannot find anything any help appretiated.

Software Development vb.net
Member Avatar for zakben1
0
156
Member Avatar for hla3mi

[CODE]#include <iostream> #include <string> using namespace std; struct Employee { //Data string name; int id; string residance; int salary; }; class Node { public: // Data Employee data; // The Next Pointer Node * next; // Constructor Node(Employee Object ,Node * ptr = NULL ); }; class List { int …

Member Avatar for hla3mi
0
199
Member Avatar for pmee

Hi, I'm new to this site so apologies for any mistakes. I'm trying to write a program to parse string from a file. In each string I then have to parse the different strings for example: add h'13', 4 So I've to parse the 'add' bit, the '13' bit and …

Software Development c
Member Avatar for pmee
1
102
Member Avatar for brightsolar

//Code Written By S Barratt i would like my button display to - out put all the values of the arrayList. ------------------------------------------------------------------------------------------ i would very much like some information about key pressing so when the use presses the key enter return ( char 13). i did try - but my …

Software Development
Member Avatar for brightsolar
0
159
Member Avatar for rutaba

Hi.. I want to know that how to create a program using VISUALSTUDIO2005 and creating some windows application in layers .. I basically want to know the steps that at first i hav to creat which file nand after that which one and so on.. I reall need help of …

Software Development c#
Member Avatar for DdoubleD
0
187
Member Avatar for crazyboy

Hii every one .... I want to list out directories or folders or files which are in perticular folder or directory ... there is a control in VB 6.0 dirlistbox. Is there any control like that in C#. or open my computer and any drive of my computer.. now see …

Software Development
Member Avatar for sanch01r
0
155
Member Avatar for thelamb

Hello all, I have a VB.net application and a C++ DLL. The C++ DLL has an exported function that gets called by the VB.net application. The C++ exported function is as following: [CODE=cpp] STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory( &si, sizeof(si) ); si.cb = sizeof(si); ZeroMemory( &pi, sizeof(pi) ); TR::Log( "Starting …

Software Development c++ vb.net window-manager
Member Avatar for thelamb
0
2K
Member Avatar for gunbuster363

I am using BeautifulSoup for my project and I don't know how the object returned by the Soup is organized, so I don't know how to access it, except using only print I can only do this: [CODE]link = soup.find(attrs={'class' : re.compile("util2$")}) print link [/CODE] it print out the whole …

Software Development python
Member Avatar for gunbuster363
0
2K
Member Avatar for red999

So I am creating a program for a class that reads in from a file the appointments. The file has this format Date,Subject,Start Time,End Time,Location,, The interesting thing about the file is that it does not contain the same appointment (same name, location, and time) more than once. For example: …

Software Development c++
Member Avatar for red999
1
100
Member Avatar for kettavan

Hi guys, I need some help regarding JComboBox. I want to link the JComboBox with JTextField and this is the code that i did. It contains error and I need some guidelines for it.Thx [code=Java]private void typeof_patronJComboBoxitemStateChanged(ItemEvent event) { // clear JTextFields clearComponents(); // determine whether checkbox selected if (event.getStateChange()== …

Software Development java
Member Avatar for kettavan
0
88
Member Avatar for starlight09

Hi everyone, My goal is to generate lottery numbers that have 6 unique numbers in the range of 1-49 ex. if the user inputs 2 as the number of tickets they want, the program should print out 1 2 3 4 5 6 10 9 8 7 12 11 ---2 …

Software Development java
Member Avatar for starlight09
0
621
Member Avatar for javanub123

im trying to make my program draw lines from the top right corner of the JFrame which is 400 x 400, to the bottom of it making what looks like a curve but really is just lines. i think i know the basic idea of how to do this which …

Software Development java java-swing
Member Avatar for javanub123
0
1K
Member Avatar for jaymeaux77

Hi there, Im writing a program that takes a function and makes a plot of it. the program consists of 2 functions and each creates its own GraphWin. However i want to have a mouse click at the end close both windows. So i returned the window from the first …

Software Development python
Member Avatar for jaymeaux77
0
99

The End.