132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Kath_Fish

hey... how to do the message box that can show all the data out..without clicking many times..? Means that i do one program in for loop.Let said i do 5 times looping. After I run the program, i dun need to clicking 5 times to show the result one by …

Software Development
Member Avatar for alc6379
0
200
Member Avatar for kemkoi

Okey , this is what happends , when I write in my code and compile it this error shows up. [URL="http://data.fuskbugg.se/dipdip/Problem%20med%20c%2B%2B%20script.jpg"]http://data.fuskbugg.se/dipdip/Problem%20med%20c%2B%2B%20script.jpg[/URL] And after recieving this error I can't run it ofcourse... , I got the code from a book " Learn c++ in 3 weeks" I copied the code and …

Software Development c++
Member Avatar for Fbody
0
173
Member Avatar for LianaN

Hi! I need my own file extension for SWING desktop application (image processing tool). In fact, I want a user to be able to save locations of JLabel components on a screen. Please, give me a hint on how to implement this task. Thanks!

Software Development java java-swing
Member Avatar for LianaN
0
162
Member Avatar for unrealj

For my project, as others before have noted, I have to create a hashtable using chaining. I rewrote my Get and Put functions, but I do not know how to change the Locate Function. Here is the code [CODE]def hash_function( val, n ): """Compute a hash of the val string …

Software Development python
Member Avatar for unrealj
0
365
Member Avatar for Vhyr

Hi all, How can I retrieve info from a HTML table like this : I want the bold things. [CODE]<table class="vis "> <tr> [B]<th width="150">Opslagplaats vol</th> <th>Tijd (hh:mm:ss)</th> [/B] </tr> <tr> [B]<td width="250"><img src="graphic/holz.png?1" title="Hout" alt="" class=""/> morgen om 02:35:48 uur</td> [/B] <td> <span class="timer">8:32:33</span> </td> </tr> <tr> [B]<td width="250"><img …

Software Development vb.net
Member Avatar for Vhyr
0
96
Member Avatar for jordan0420

am adding a GUI into a python database and i was wondering if there is any way for text to be already in an entry box when it appears. The window is for adding movies to the database so i would like the following, please enter the movies title: [Title …

Software Development gui python tkinter
Member Avatar for TrustyTony
0
2K
Member Avatar for 5ophie2012

Hello! I'm currently working on a program for class and I'm stuck. Here's the directions: 1.) Read one integer, n, from file: data.dat (the number "21" is in this file) 2.) The program (4 methods) will loop n times, using indexes 1 to n. 3.) Each time through the loop: …

Software Development
Member Avatar for james6754
0
158
Member Avatar for balwin

i have written the code and tried to compile, but it always say that the file can't be read, yet i have put the same name file in one directory with the c++ file. need your help so can read the file on my mac.. #include <iostream> #include <fstream> #include …

Software Development c++ file-system
Member Avatar for Fbody
0
177
Member Avatar for vddmanikanta

Hai everyone Can u please help me in writing a basic singleton programme in C++ and please explain code that are specially used to make the class singleton else please send a link where I can get the same Thanq Have a nice day

Software Development c++
Member Avatar for mike_2000_17
0
170
Member Avatar for samm22

Hi, Am trying to create a multipage (or multitab) user form and each one of page (tab) has several textboxes in it. After user enters the input in the textboxes, the data goes into an xml file. All I wannna know is, what is the syntax for getting inputs from …

Software Development vb.net xml
Member Avatar for codeorder
0
135
Member Avatar for DecreaseEntropy

[code] # nth_prime.py def nth_prime(n): primes = [2] test_int = 1 while len(primes) < n: test_int += 2 for p in primes: if test_int % p is 0: break else: if p is primes[len(primes)]: primes.add(test_int) return primes[n - 1] while True: try: num = int(input("Enter a number:\n")) print(nth_prime(num)) except ValueError: …

Software Development python
Member Avatar for woooee
0
236
Member Avatar for LianaN

Hi! I'm trying to create borders around JLabel components. However, the line [ICODE]c[i].setBorder(border)[/ICODE] cannot be compiled. Please, help me to improve this code. Thanks! [CODE] public void mouseReleased(MouseEvent e) { if (Menu.getgroup()) { Component[] c = getComponents(); Border border = LineBorder.createGrayLineBorder(); for(int i = 0; i < c.length; i++) { …

Software Development java
Member Avatar for LianaN
0
94
Member Avatar for basketball8533

Hey guys can you help me convert this code into java... i started a little... [CODE] def minEditDistR(target, source): """ Minimum edit distance. Straight from the recurrence. """ i = len(target); j = len(source) if i == 0: return j elif j == 0: return i …

Software Development java python
Member Avatar for DecreaseEntropy
0
152
Member Avatar for yen chin

Hi, I'm yen. Recently, I am doing my thesis project on the topic of Genetic Algorithm with Integer representation. Anyone can help me to write a simple program to solve the Travelling Salesman Problem by using Genetic Algorithm which is in integer representation? The task is to find the shortest …

Software Development algorithm c
Member Avatar for jonsca
0
123
Member Avatar for Ascaris

Hi there. I was trying out a relatively simple program to convert a line of text into a 2-D string array which each word in a different row but it isn't working. The program is [CODE] #include <iostream> void main() { int i, j, k=0; char line[30]={"This is a test"}, …

Software Development c++
Member Avatar for Ancient Dragon
0
294
Member Avatar for SpecialForce

Here I have a small piece of code: [CODE]ofstream hello ("hello.txt"); hello << "Γειά σου!"; //hello in greek hello.close();[/CODE] And here is the output: [CODE]Output on greek windows: "Γειά σου!"[/CODE] [CODE]Output on english windows: "ÃåéÜ óïõ!"[/CODE] Can someone, please, help me find out how to fix this?

Software Development c++
Member Avatar for danb737
0
110
Member Avatar for lexflash

I m planning to create a web based system in which I need to allow users to upload videos and photos into my database and to display that video or photo which they request. I m more comfortable working in java, so i have placed my query here. I would …

Software Development file-system java
Member Avatar for lexflash
0
143
Member Avatar for Waldek

Hello All! Does anyone know how to list all the paths to one or several (if they exist) versions of msaccess.exe on a PC. I'm using VB2005 and have a project with an Access backend that contains reports which are called at various points. These need to be opened with …

Software Development vb.net
Member Avatar for lolafuertes
0
119
Member Avatar for Hawkeye Python

Hi! The following Tkinter buttons should call [I]opt_def[/I] with [I]opt[/I] as 1 or 2 depending on which button is pressed (see code). [CODE]from Tkinter import * class App: def __init__(self, master): frame = Frame(master) frame.pack() self.opt1 = Button(frame, text="Opt1", command=self.opt_def(1)) self.opt1.pack(side=TOP) self.opt2 = Button(frame, text="Opt2", command=self.opt_def(2)) self.opt2.pack(side=BOTTOM) def opt_def(self, opt): …

Software Development gui python tkinter
Member Avatar for Hawkeye Python
0
3K
Member Avatar for Duki

What happens if I have a method declaration of: [code=c++]int method( char * a, char * b, int * c );[/code] and then I pass in: [code=c++] char a; char b; int c; method(a, b, &c); [/code] This has me a little puzzled. What values will be passed by reference?

Software Development c++
Member Avatar for Duki
0
216
Member Avatar for midimatt

Hi Everyone, Had a friend of my come up to me today to have a look at a very strange crash that he was experiencing with a Media player he's creating. The application was previously running fine, but this time after reopening the project after a few months it crashes …

Software Development audio
Member Avatar for Ketsuekiame
0
107
Member Avatar for manugm_1987

Can anyone please help me out in creating an .exe file. I have a database included in my project as a backend. When i publish my application n run tat in my sys it works fine. When the same application is installed on other machine which doesnt contain sql server …

Software Development client-server
Member Avatar for kvprajapati
0
165
Member Avatar for dougancil

I have two forms and I am running a sql query to provide a set of variables in my first form that I need to pass to my second form. Here is the code that I have: [code] Imports System.Data.SqlClient Public Class Main Dim instForm2 As New Exceptions Public payrollstartdate …

Software Development open-source sql vb.net
Member Avatar for dougancil
0
354
Member Avatar for MrCapuchino

Hello I created a setup project for an application. The output goes to the program files folder. I create a shorcut on desktop too. The thing is that the application works with some text files embeded. When I run the application and click new there is an error saying that …

Software Development
Member Avatar for Ketsuekiame
0
152
Member Avatar for jcb1269

I'm wanting to display more than one month at a time with the datetimepicker control, I'm not having any luck. First, is this even possible and if not any recomendations on how to achieve this? Thanks in advance! Jim

Software Development vb.net
Member Avatar for jcb1269
0
85
Member Avatar for TheDestroyer

Hello programmers :), I'm creating a program that requires too many command line parameters to run. I noticed that many system programs in Ubuntu (my operating system) have the feature of auto-completion of the command line parameters. So, for example, if you type the following in Ubuntu: sudo apt-get i<tab> …

Software Development c++ operating-system ubuntu
Member Avatar for TheDestroyer
0
2K
Member Avatar for vanzhyme

ahmm.. guys could u please help me about tab control . I have a text input in textbox1 in tab page 1 and i want that text from textbox1 will be displayed in textbox2 in tab page 2. please help me ..

Software Development vb.net
Member Avatar for vanzhyme
0
152
Member Avatar for hanslim77

I'm trying to run audio in a different thread but I have no idea why but when I call wait(), my entire program seems to wait or hang.. not sure if it's deadlock since all it does is wait(), though if I set a time period, after that period it'll …

Software Development audio java multithreading
Member Avatar for hanslim77
0
214
Member Avatar for Sunshineserene

Hi all. I'm having a problem to represent or use a variable as an int. [CODE]Color c = new Color(255, 0, 0); int y = c.getRGB(); for (int v = 0; v < h; v++) { for (int u = 0; u < w; u++) { int x = image.get(u, …

Software Development java
Member Avatar for masijade
0
142
Member Avatar for chabo

hello i need a countdown timer that count from 10 to 0 and then give me a msg "win"....??

Software Development vb.net
Member Avatar for manimaran.m
0
111
Member Avatar for Annettest

Hello all: I would be grateful for some basic advice about C++ error handling. From my reading, I understand that the "try, throw, catch" method is preferable to dealing with return values, which can be cryptic. But I'm not sure if I understand exactly how this works. I made a …

Software Development c c# c++
Member Avatar for Moschops
0
174
Member Avatar for tjm6f4

Hi, I'm pretty new to C# but I'm very familiar with C++ and first off I wanted to know if anyone has a good website with some tutorials for C#. Other than that, I have a few basic questions regarding GUI programming. I suppose one question at a time is …

Software Development gui visual-basic visual-studio
Member Avatar for Ketsuekiame
0
159
Member Avatar for alex9292

hi im trying to make a simple guess a number game for an assignment and i dont get why im getting a does not exist in the current context error here is my code i put the part that gets an error in red any help appreciated thx [CODE]using System; …

Software Development
Member Avatar for alex9292
0
159
Member Avatar for ammarahmad001

I want a programme in c# in which , Delete phone numbers from csv file,if these phone no. exist in database Please helo me regarding this

Software Development c c# c++
Member Avatar for ddanbe
0
70
Member Avatar for Neversleepin

Hello, here is a code for retrieving some lines from a text file. i'd like to extract data from line2 to line4 ---> this is working but in the same time i want to data from Line10 to line12 here is the code, my conditions is not working: Thank you …

Software Development java
Member Avatar for Neversleepin
0
167
Member Avatar for Climber Ty

I am working on an ATM machine project for my college class. It's in its early stages but here what I have so far. [CODE] /** * * @author Ty */ import java.util.Scanner; public class Main { private double currentBal =1000; Scanner input = new Scanner(System.in); public void mainMenu(){ int …

Software Development java java-netbeans
Member Avatar for Climber Ty
0
8K
Member Avatar for ash07

Dear all I am developing an application in VB & Access .I am trying to secure application by adding user control,trace modules,database password. (just today i saw how to make a folder inaccesible+ not to allow delete.) 1)I would like to know how do i secure my application.. am i …

Software Development visual-basic
Member Avatar for AndreRet
0
157
Member Avatar for lochnessmonster

want user to input an integer value...the integer value is then converted to an ascii string....the ascii string is then passed into isValidNum(num); and it should return 1 if the number is valid and 0 if number is invalid. for some reason it keeps returning 1 no matter what value …

Software Development c
Member Avatar for WaltP
0
383
Member Avatar for slugdoug

I am trying to learn vbscript and am having trouble with one of me first scripts, can someone look and see what I am doing wrong? I get the following error: Line 13, Path not Found. 'if folder B does not exist it is created option explicit const OverWriteFiles = …

Software Development vbscript visual-basic
Member Avatar for AndreRet
0
104
Member Avatar for Crutoy

Hello, i'm reviewing the exercise from the book and trying to understand the point. Basically it creates a static array and declares uninitialized char pointer. Then it allocated memory dynamically to the same char pointer. What i don't understand why is the program using strcpy() to copy string into newly …

Software Development c++
Member Avatar for lisaroy1
0
306
Member Avatar for TIP.Synergy

I want to UPDATE query instead INSERT INTO using this code help me thanks. [CODE] Dim cmd As New OleDbCommand("INSERT INTO tblPurchase_Order ([Order_Id],[Supplier_Id],[Address],[Project_Id],[dtpDate],[Material_Id],[Material_Name],[Unit],[Quantity],[Unit_Price],[Amount]) VALUES (@Order_Id,@Supplier_Id,@Address,@Project_Id,@dtpDate,@Material_Id,@Material_Name,@Unit,@Quantity,@Unit_Price,@Amount)", conn) cmd.Connection = conn cmd.CommandType = CommandType.Text cmd.Parameters.AddWithValue("@Order_Id", lstItems.Items(i).SubItems(0).Text) cmd.Parameters.AddWithValue("@Supplier_Id", lstItems.Items(i).SubItems(1).Text) cmd.Parameters.AddWithValue("@Address", lstItems.Items(i).SubItems(2).Text) cmd.Parameters.AddWithValue("@Project_Id", lstItems.Items(i).SubItems(3).Text) cmd.Parameters.AddWithValue("@dtpDate", lstItems.Items(i).SubItems(4).Text) cmd.Parameters.AddWithValue("@Material_Id", lstItems.Items(i).SubItems(5).Text) cmd.Parameters.AddWithValue("@Material_Name", lstItems.Items(i).SubItems(6).Text) cmd.Parameters.AddWithValue("@Unit", lstItems.Items(i).SubItems(7).Text) cmd.Parameters.AddWithValue("@Quantity", lstItems.Items(i).SubItems(8).Text) …

Software Development vb.net
Member Avatar for TIP.Synergy
0
222
Member Avatar for Sonny101

Hi all, I am currently attempting my first project for programming using Java. One of the classes I have made contains 3 constructors, now I remember learning a little about the [I]this[/I] keyword and thought it may be appropriate here, however, I am not completely sure on how to use …

Software Development java
Member Avatar for lisaroy1
0
127
Member Avatar for ram619

In this code compiler says "type mismatch" in function. There are two diff data type in function one int and one Float. Is it possible to use two diff values or i need to take both of same type. plz rply Thanks [code=c] #include<stdio.h> #include<conio.h> void main() { int a; …

Software Development c c# c++
Member Avatar for lisaroy1
0
388
Member Avatar for Latvija13

I don't understand how to check for non-alpha characters in a string that has more than one word. I'm basically asking for a retype if the string has more than 3 words or if it has non-alpha characters. I'm wondering if Character.isLetter is not what I'm looking for since it …

Software Development java
Member Avatar for JamesCherrill
0
123
Member Avatar for owilliam

Chances are this is a dumb question, but hey, I don't have anywhere else to go. I wrote a basic hangingman game on my pc desktop using a paint event to draw the hangman. Unfortunately, this code doesn't seem to run the same on my new apple computer. It comes …

Software Development apple python
Member Avatar for richieking
0
107
Member Avatar for JD69

I have a textbox on form1, how can i get that textbox to display the same information on form2 automatically? form2.textbox1.box = form1.textbox1.box please help thanks

Software Development vb.net
Member Avatar for Luc001
0
93
Member Avatar for ubi_ct83

hi, lets say i have 2 classes 1 is to process the data and another 1 is to connect to mysql. P.java to process the data and Connection.java to connect to mysql.i use JDBC to connect and pass the data through constructor P way=new P(String side).after process the data, i …

Software Development java
Member Avatar for ubi_ct83
0
103
Member Avatar for Phinisher

How do I appropriately go about resetting where the pointer is in a file? I was under the impression that I had the correct way, but my code is not properly functioning. I need to do a character count, word count, line count. Which ever function I run first returns …

Software Development c++
Member Avatar for griswolf
0
110
Member Avatar for vienne

[B]I'm having a problem with my sorting algorithm. before I made quick sort which used insertion sort, but I don't want to use this insertion sort. I want to use recursive algorithm. Also, I want to get new idea, so If you know any quick sort algorithm, reply for me.Please~ …

Software Development algorithm c
Member Avatar for shashankc
0
268
Member Avatar for megaLU

Hey, My code was working great yesterday. I go to submit it and it's got this new error out of nowhere! It is 'class std::vector<long double>' has no member named '_'. It says instantiated from the line [code] vector <LD> matrix; [/code] and then takes me to some code entitled …

Software Development c++
Member Avatar for jonsca
0
2K

The End.