132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for daviddoria

I hear perl is the way to go for string parsing, so here is the test! I have a file like this: [code] ... <li><a href="DSC_9866.JPG"> DSC_9866.JPG</a></li> <li><a href="DSC_9867.JPG"> DSC_9867.JPG</a></li> ... [/code] and I want to get a list of the file names. That is, the result I want is …

Software Development perl
Member Avatar for daviddoria
0
90
Member Avatar for TrustyTony

As I told before here is second implementation of one word anagrams, which prepares lookup table for all available words, if it is not generated and afterwards uses it for fast lookup. The implementation of lookup table generation is quite unoptimized, but it is only done once per vocabulary. If …

Software Development python
Member Avatar for TrustyTony
0
810
Member Avatar for mack00234

I have been trying to use a wxPython textctrl to display a list of files, but it did not fit my purposes. The wx.StaticText seemed useful, and a ll works except for one major kink; I don't know how to scroll it. Moved post to its own thread, since the …

Software Development python
Member Avatar for mack00234
0
876
Member Avatar for uhmyeah

i am pretty new to c++ and dark gdk. im trying to make a simple platform game to start off. i have the basic controls down, the animations, and collision. but i am having much trouble finding how to create the effects of gravity. please help.

Software Development c++
Member Avatar for nbaztec
0
168
Member Avatar for Kanoisa

Hi everyone, I'm not so sure if this belongs in here or in computer science but I think as I want to use c++ this may be the place. I was wondering if anyone could point me towards some tutorials/references or books on methods for approaching the design of larger …

Software Development c++ opengl visual-basic visual-studio
Member Avatar for Bench
0
144
Member Avatar for Nexgr

I am trying to implement the A* algorithm in C++ ([url]http://en.wikipedia.org/wiki/A*_search_algorithm[/url]). The pseudocode i am trying to implement is: [code]function A*(start,goal) closedset := the empty set // The set of nodes already evaluated. openset := set containing the initial node // The set of tentative nodes to be evaluated. g_score[start] …

Software Development algorithm c++ data-structure queue
Member Avatar for Nexgr
0
171
Member Avatar for mahmud2008

[code] using System; using System.Collections.Generic; using System.Text; namespace Factorial { class Program { static void Main(string[] args) { int i, n, fac = 1; string s; Console.Write("Please enter any number to find it's factorial(0 to 19):\n"); s = Console.ReadLine(); n = Int32.Parse(s); for (i = 1; i <= n; i++) …

Software Development c#
Member Avatar for ddanbe
0
221
Member Avatar for oimenoi

I am keep having the "No overload for method 'GenerateSignature' takes 9 arguments" problem. Can you please tell me what is wrong with this class. This code is the sample from the Oauth.net . I think it too old for my asp.net 3.5 or 4.0. My page. [CODE]<%@ Page Language="C#" …

Member Avatar for oimenoi
0
108
Member Avatar for Maya Pawar

I bind the two comboboxes with table. one combo contains product and another contains subproduct. when i clicked first combobox then subproduct of that is filtered in another combo. when i clicked next,previous ,it is working properly. but when i go to last record second combo is refreshed means it …

Software Development vb.net
Member Avatar for Maya Pawar
0
135
Member Avatar for morelve

I want to make a native win32 program that simply moves the cursor to x=100 y=200 on the screen, and then clicks the left mouse button once. Where do I start? For once, Google got me nowhere. I use VC++ 2010 to compile.

Software Development c pc-peripheral windows-api
Member Avatar for Adak
0
3K
Member Avatar for angelrapunzel

hi frnds!! i have d code for series x^!+x^2+x^3+....x^m with single loop only //wap to find sum of series and print series also //x+x^2+x^3+......x^n #include<iostream.h> #include<conio.h> void main() { clrscr(); int n,x,count1; int sum=0; cout<<"enter a number"; cin>>x; cout<<"enter nth term till which u want to compute"; cin>>n; int count=1; …

Software Development c c# c++
Member Avatar for NathanOliver
0
111
Member Avatar for Tejas

Can smeone help me to write a prog. to find the sum of the following series: 1+(1+2)+(1+2+3)+....... n terms Regds. TEJAS

Software Development c++
Member Avatar for angelrapunzel
0
167
Member Avatar for CSherman

Hello all. I am working on this program and having some troubles with it. I have tried lots of different things and can't get it to do what I want. I guess I am not really understanding the code and how to word it properly. I am writing a program …

Software Development c++
Member Avatar for Taywin
0
129
Member Avatar for Dorayaki

Hello, I try to do a program that can search whatever the user typed. But I kind of having a problem, which I cannot select everything matches. For example, I type "Hi there hello, what is your name ? please say hello" The I click on the search button. It …

Software Development java java-swing
Member Avatar for Taywin
0
99
Member Avatar for vbx_wx

Hello. Can anyone help me how to implement the subscript ([]) operator for a STL list class ? [code] T& operator [] (int n) { } [/code] [code] template <typename T> class list { public: struct node { T data; node* prev; node* next; node(T t, node* p, node* n) …

Software Development c++
Member Avatar for nbaztec
0
268
Member Avatar for nsutton

I have a few things I want to make that I havent yet so this will be a later project but I was just wondering, How would a anti virus program work in C#? I've seen ones on youtube that iterate through your HD and looks for keywords like "Virus","Trojan" …

Software Development programming-construct virus-malware
Member Avatar for finito
0
149
Member Avatar for mebob

I have to make a program that takes 4 inputs and outputs the 2 largest inputs. So I wrote this code, [CODE] #include <iostream> using namespace std; void largest_two ( int input[4], int output[2] ) { bool restart; int i; int temp; do { restart = false; for ( i …

Software Development c++
Member Avatar for thelamb
0
104
Member Avatar for ashish2234

I know its silly but once i tried this and output is not what it should be.. [code] #include<stdio.h> #include<conio.h> int main() { int i=0; i=i++; printf(i); } [/code] i MEAN post increment will store a value, say 0 here.and then increment but that value is given to the variable …

Software Development c
Member Avatar for genie0582
0
310
Member Avatar for jrw89

I've been trying to learn C++ for about a year now and came across [URL="http://openbookproject.net/thinkcs/cpp/english/chap04.htm"]this excellent tutorial[/URL]. I can't leave anything alone so I changed some single quotes to double quotes and have the following code:[CODE=C++]#include <iostream> void printTwice(char phil) { std::cout << phil << phil << std::endl; } int …

Software Development c++
Member Avatar for jrw89
0
567
Member Avatar for Madawar

Hi, I recently started using Linux and have come to find that it suits me better than Windows. I am a newbie in C/C++ programming and my questions are [LIST=1] [*]How suitable is Linux for learning C/C++ programming as most of the books i have come across are based on …

Software Development c
Member Avatar for lionaneesh
0
125
Member Avatar for NewOrder

[code]import java.io.*; class Ex4 { public static void main(String[] args) { Console console=System.console(); String input; System.out.println("Please enter the number"); input=console.readLine(); int number; number=Integer.parseInt(input); int sum; sum=((number/10)*10); switch(sum) { case 60: System.out.println("E"); break; case 70: System.out.println("D"); break; case 80: System.out.println("C"); break; case 90: System.out.println("B"); break; case 100: System.out.println("A"); number=100; break; default: …

Software Development java
Member Avatar for NewOrder
0
86
Member Avatar for trpsjt2008

Create Panel And ToolStrip in panel Panel Property [CODE] Dock = Dock At Left Or Right Or Buttom Or Top High = 40 Backgroundcolor = Black [/CODE] ToolStrip Property [CODE]Dock = None RenderMode = System GripStyle = Hidden Background = Transparent ImageScalingSize = 32,32[/CODE] U Can Extend any side by …

Software Development vb.net
0
144
Member Avatar for Dimansu

Hi, I am using RDLC in my reports.Can someone tell me the syntax for IF THEN ELSE statement in RDLC? I want to write else if loop in my expression. Thnx in Advance

Software Development asp.net
Member Avatar for chan_lemo
0
3K
Member Avatar for invisi

Below is the code I wrote, for taking the arrow key imput, just wanted to share it and get some feedback thanks :) [CODE]#include <iostream> #include <conio.h> using namespace std; int main() { int number = 0; int number2 = 0; while(true) { int arrow = getch(); if (arrow == …

Software Development c++
Member Avatar for invisi
0
189
Member Avatar for michtan

I use picture box to view web cam, it works. But i wan to add another transparent picture box on top with upload a picture transparent background circle . So when i open web cam there is a circle on the web cam. Is that possible? How to make picture …

Software Development vb.net webcam
Member Avatar for trpsjt2008
0
2K
Member Avatar for Olliepop

This code should get one random line from sample.txt and put it in Label1 - problem is that it's only getting line 2. Every single time. What's wrong with it? Please help. I bet it's something rediculously obvious but i can't find it :'( Thank you so much in advance. …

Software Development vb.net
Member Avatar for Olliepop
0
113
Member Avatar for lllllIllIlllI

Hi I was wondering if there was any way in which using Python i would be able to move the mouse pointer and make it click at certain x and y values. This would be used in a Macro type machine for the mouse. I have looked around for modules …

Software Development python
Member Avatar for TrustyTony
0
2K
Member Avatar for prajaktaran

Hi, I have develop a project on "Hospital Managment System". I want to run that project on client server system. what code or any chages I have to perform to run the project. Thank You prajaktaran

Software Development client-server windows-server
Member Avatar for prajaktaran
0
105
Member Avatar for Thew

Hello everyone, I have a problem in my Borland C++ project. I need to use my own COM object written in C# (this COM allows me to directly print PDF files) in my another project in C++, but as soon as I call some COM functions which require a string …

Software Development asp.net c# c++
Member Avatar for Thew
0
250
Member Avatar for BasicDinosaur

Hi. This may seem simple to most but has consumed 3 days so far and a bit of $$ trying to learn simple how to use Enter as a Tab (Yes I know it is a Fau-par but I need it regardless). The idea is to move the focus to …

Software Development vb.net
Member Avatar for finito
0
253
Member Avatar for n30h4x

My question is how would I implement sending arguments to a program running in the background? Can anyone point me in the right direction?

Software Development c
Member Avatar for n30h4x
0
205
Member Avatar for xdeja

[I]What I have accomplished so far... Design and implement a Nim class and a NimGame application to allow two human players to play the game of Nim. The game starts with four piles of stones. The first pile has 3 stones, the second pile has 5 stones, the third pile …

Software Development java
Member Avatar for Taywin
0
4K
Member Avatar for IconKana

Hi folks, I'm wondering how to close a VB6 multiform application using the red x on the main form. There should be a message box that lets the user confirm the exit ( yes ), or ( no ) resume the application. Thank You!

Software Development visual-basic
Member Avatar for kinwang2009
0
117
Member Avatar for MONabas

Hello programmers :) I'm new to the c# world as I only have c/c++ programming skills ... I needed a consultation for my graduation project ... any intervention is much appreciated :) I'm thinking about a program that automatically obtains the results of a multiple-choice-exam (auto correction)... it takes scanned …

Software Development
Member Avatar for MONabas
0
118
Member Avatar for frankinaround

hi. wondering if someone can take a few min to help me out. Well im taking this opencourseware from MIT, intro to programing. I got this assignment [url]http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/assignments/pset9.pdf[/url] and I could do it on my own... the only problem is I dont understand what the hell they want me to …

Software Development engineering pdf python
Member Avatar for TrustyTony
0
264
Member Avatar for noobuser

hi guys is it timeconsuming to use memset instead of for? i mean suppose we have an array of int int prime[200000]; we use memeset(prime, 200000, 0, sizeof(prime)) also we can use for(i = 0; i < 200000; i++) prime[i] = 0;

Software Development c
Member Avatar for Ancient Dragon
0
207
Member Avatar for iamcreasy

This code is supposed to get one int and one string.But after entering the int, the [B]getline[/B] line is acting weird...it dont prompt me for any string input, rather then it shows the same value as the int. [CODE]#include<iostream> #include<string> using namespace std; int main() { int teacherID; string teacherName; …

Software Development c++
Member Avatar for Bench
0
438
Member Avatar for DelilahDemented

I'm trying to use a switch statement in my code but I'm having a bit of difficulty. I have an error message I do not understand and do not know how to fix. The message reads, "switch quantity not an integer". I'm new to C++ and would appreciate any help …

Software Development c++
Member Avatar for arkoenig
0
222
Member Avatar for Alex_

Hi, i want to do a listener and this is what i have at the moment: [code] class MyListener extends MouseInputAdapter implements KeyListener{ @Override public void mousePressed(MouseEvent e) { if(e.getButton()==1){ out.println("MSE press "+e.BUTTON1_MASK); }else if (e.getButton()==2){ out.println("MSE press "+e.BUTTON2_MASK); }else if (e.getButton()==3){ out.println("MSE press "+e.BUTTON3_MASK); } } @Override public void …

Software Development java
Member Avatar for Alex_
0
164
Member Avatar for seena_srini

Hi I'm devolping a project in which backend is ms access and front end is vb 6.0. For security reasons i made the ms access as password protected. when i tried to connect the vb and access, the following message is displayed. How to handle it? Please help me.. [IMG]http://i48.tinypic.com/ddyge0.jpg[/IMG]

Software Development visual-basic
Member Avatar for bhrain
0
1K
Member Avatar for charmed94

I have used Resource Hacker to extract all the files from an .exe so I could translate the menus right (translating in the program shows me wrong characters). Now I want to compile these files into an .exe file. How can I do that? Thank you in advance.

Software Development vb.net
Member Avatar for charmed94
0
108
Member Avatar for muthulazmi

import MySQLdb db = MySQLdb.connect(host = "localhost",user = "root",passwd = " ",db = "TESTDB" ) cursor = db.cursor() sql = """CREATE TABLE CRAWLER ( FIRST_NAME CHAR(20) NOT NULL, LAST_NAME CHAR(20), AGE INT, SEX CHAR(1), INCOME FLOAT )""" cursor.execute(sql) db.close() when i execute this code there is an error occure like …

Software Development python
Member Avatar for muthulazmi
0
91
Member Avatar for trelek2

Hi! I'm writing a Java simulation of a physical system. I wrote the whole simulation without any problems and later decided to add very simple GUI to paint the current sate of the system after each iteration. This is where the first problem occurred. After creating my JFrame and JPanel …

Software Development gui java java-swing
Member Avatar for trelek2
0
200
Member Avatar for mihir.p

We are planning to make a commercial GUI based software (for both desktop and mobile) targeting individual users. We plan to have good web 2.0 like rich application features (Google like dynamic auto suggest, drag and drop, browser based look and feel etc) and lot of user controls (trees, grids, …

Software Development gui ide java postgresql web-browser
Member Avatar for ~s.o.s~
0
171
Member Avatar for Niner710

I have a function called read() that interacts with some hardware and sometimes it returns the value very quickly and other times it could be very slow. I would like to have a timeout associated with my function read() so that if it takes over maybe a second then the …

Software Development c++
Member Avatar for nbaztec
0
2K
Member Avatar for muthulazmi

how to install the msqldb package and where to place it in python? then when i compile the code there is an error like no module named MySQLdb.... pls clarify this....

Software Development mysql python
Member Avatar for muthulazmi
0
106
Member Avatar for ttboy04

Hello, I am getting "non-static variable friends cannot be referenced from a static context" error msg when I complie this program. If I create TreeSet inside the Names method body there is no errors when compiling and it works but that is not how I want it work. Could someone …

Software Development java
Member Avatar for ttboy04
0
150
Member Avatar for Hawkpath

Hello All! I ran across a bit of code that I wanted to try. In this code it had a line reading, "[COLOR="Red"]orig = POINT()[/COLOR]" When I tried to run I got this error: [COLOR="red"]NameError: name 'POINT' is not defined[/COLOR]. This led me to believe that I didn't have the …

Software Development python
Member Avatar for Beat_Slayer
0
126
Member Avatar for vuki27

I have been using Borland Turbo C++ 3.0 to get started with C/C++. I am making a graphics application and this error has come up. I know that my code is too big but I cannot cut it down and I need to add more features. Can someone please tell …

Software Development c++ image
Member Avatar for mitrmkar
0
171
Member Avatar for personx1212

hi , i have been searching for a way to modify .exe files using python, to make changes to the exe (inject user code), i found examples using other languages, but how can i do this using python? i know it is possible to alter the exe file because i …

Software Development python
Member Avatar for personx1212
0
93

The End.