43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for drxs33

i have this kinda game, which inputs an integer.. but my problem is, when the user inputs a char variable, the program stops. it should say that the user entered an invalid box number. but it stops scanning when the user enters a char variable. help me pls... here is …

Software Development c
Member Avatar for Aia
0
78
Member Avatar for PinoyDev

Good day!. I want to copy all the folder contents to a certain location. To be specific, i have a folder named (webproject) relative on my vb program path.When the form load, i want to copy all the content of this folder(webproject) to C:\wamp\wwww\onlineweb\.I just really dont know how to …

Software Development visual-basic
Member Avatar for PinoyDev
0
191
Member Avatar for rabbithaveit

Id like it so that when you click the 'x' button to close the program it doesnt just end. How do I apply code to the 'x' button? All help is appreciated, thanks in advance -Russell aka Rabbit

Software Development visual-basic
Member Avatar for jbennet
0
2K
Member Avatar for FTProtocol

[CODE] using System; using System.Collections.Generic; using System.Text; namespace bPod { public class PodCastFunctions : Form1 { public void ClearOriginal() { newpodcastButton.Visible = false; addpodcastButton.Visible = false; finalisepodcastButton.Visible = false; overviewButton.Visible = false; this.Height = 183; this.Width = 671; this.BackgroundImage = Properties.Resources.NewPCast; podcastdescLabel.Visible = true; podcastdescTextBox.Visible = true; podcastnameLabel.Visible = true; …

Software Development
Member Avatar for FTProtocol
0
107
Member Avatar for ddanbe

I want to set binary values on and of at will. So I derived from the CheckBox class to change it's appearance. Instead of a checkmark I like to implement a [B]0[/B] or [B]1[/B] here. This is the code of my class so far: [CODE=csharp]class BinarycheckBox : CheckBox { public …

Software Development
Member Avatar for Antenka
0
104
Member Avatar for daviddoria

I am trying to write a pretty straight forward algorithm (agglomerative clustering), but the details are getting pretty hairy. (A cluster is simply a group of points. The idea is to take a list of points and decide which are "grouped" or "clustered" close together.) Here is the outline: Input: …

Software Development algorithm c++
Member Avatar for daviddoria
0
118
Member Avatar for charlie81

I want to change a while loop to a for loop but not sure how to do it. This is the loop. [CODE][LIST=1] [*]public static void main(String[] args) [*] { [*] String input = JOptionPane.showInputDialog( [*] "Please enter a number, 0 to quit:"); [*] int n = Integer.parseInt(input); [*] int …

Software Development java
Member Avatar for breandan
0
91
Member Avatar for Soccerace

I writing a program to read several data lines in from a file then using functions to process the data. One of the function is giving me an error that i can't figure out. The following code works fine with "1/2". However there is a case when the '/' sign …

Software Development c++
Member Avatar for Soccerace
0
70
Member Avatar for down with socks

[CODE] def translate(response): """Translates an English word into Pig Latin.""" # Initial lists and strings vowels = ["a", "e", "i", "o", "u", "A", "E", "I", "O", "U", "y", "Y"] consonants = ["b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", …

Software Development python
Member Avatar for down with socks
0
186
Member Avatar for BorlandNoob

I am trying to count a few different types of characters in a string and I am running into a few problems. I need to be able to count the vowels and blanks/spaces and then just everything esle and I am having problem with the everything else(by everything else i …

Software Development delphi pascal
Member Avatar for m610
0
97
Member Avatar for madeindadex305

Let's assume that your classes are working, and you have created an "A" object, and added 4 boxes. (5 x 5, 4 x 10, 2 x 4, and 6 x 12). Now choose the method for displaying all the box sizes. The following text might be displayed: box: 5 x …

Software Development java
Member Avatar for Ezzaral
0
142
Member Avatar for neutralfox

Hello friends, I am currently developing a chat application and I am having a small problem. When the user send a message, the message appears in a text area, like in MSN and when the user receives a message the message again appears in the text area, its just a …

Software Development java
Member Avatar for leverin4
0
68
Member Avatar for C++ Obliviator

I'm working on a rather big program. Everything works fine:) , until I added this simple code: [CODE]int counter_x = 0; int* x = new int; for (int a = 1; a < plain_len; a++) //plain_len: int { int b = a; while ( b != 0 ) { x[counter_x] …

Software Development c c# c++
Member Avatar for C++ Obliviator
0
595
Member Avatar for neutralfox

Hello everyone, I am having a small problem, does someone know how to break a long string into small groups of 3 characters. I've tried it but its not working. Here's a sample of my code: [code] int begindex =0, endindex = 3; String plaintext = null; String block; StringBuffer …

Software Development java
Member Avatar for neutralfox
0
114
Member Avatar for TheFueley

Hello all, I am trying to make a linked list (class-based). I'm not sure if I went actually did it right. I get a compiler error on the segment of code that deals with printing the linked list to stdout. Here is the seqment in question. [code=cpp] // print contents …

Software Development c++ linked-list
Member Avatar for TheFueley
0
185
Member Avatar for Ineedhelpplz

Hello, I have been given an assignment in which I am to write an assembly language version of the following binary search function & use a suitable main program written in C to test my function. The function in C in which I had to translate to assembly is: [CODE]int …

Software Development algorithm assembly c
Member Avatar for csurfer
0
188
Member Avatar for llemes4011

I wrote a level-editor for a game that I wrote, and I need to save the image on the screen to a file so i don't draw a bunch of tiles to the screen each frame. I have no idea how to save it. I could just screenshot it and …

Software Development java
0
76
Member Avatar for guest7

Hi, I am getting the following error when I am trying to initialize a 2 dimensional vector with 0's. I am not to figure out the reason. Any help is appreciated. [ICODE] std::vector<int> truth_table; std::vector<vector<int> > truth_table_col; double no_of_twos = 7; double base_two = 2; cout << "No of 2's …

Software Development c++
Member Avatar for guest7
0
102
Member Avatar for doha786

i have code to find next string after a particular string that shows result correctly.. right now i want to make an array to show the list of my output's name. [CODE] FileReader fr; BufferedReader br; String result=""; String word= new String(); String target = "friend"; try{ //read large text …

Software Development java
0
75
Member Avatar for shahji

I am trying to create a macro which could copy information from a datasheet and past it into sheets which are named as one of the Cells in column A. I have a datasheet which contains five columns full of data. Column A contains the Client references. There are 200 …

Software Development visual-basic
Member Avatar for Tu22
0
101
Member Avatar for csurfer

We know #define statements are executed before the program is compiled (preprocessor directives) and so the characters used should have no other meaning (say keywords),but still the following statement is not possible and is erroneous why ? [code=c]#define int float[/code] How many passes would the preprocessor directives run for as …

Software Development c
Member Avatar for csurfer
0
144
Member Avatar for dier02

I want to click on a button and have it open another form. The other form is called Kindy.

Software Development vb.net
Member Avatar for TransKim
0
139
Member Avatar for abu taher

I made simple database project. just add a data and see it. but when I run it another computer it show a massage. massage is below: 'E:\Vb6\New folder\db1.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected the server on …

Software Development visual-basic
Member Avatar for abu taher
0
79
Member Avatar for FallenPaladin

Hi, I'm hopeing someone will be willing to help me with somthing that is probably quite simple. I'm trying to bind a combobox to a data table, however it is supposed to be a foriegn key field, as such I need the items list to be populated from a different …

Software Development
Member Avatar for ddanbe
0
145
Member Avatar for PinoyDev

Good day.! I want to check all the textbox and combo box if its null or not. Once they click on the button, if one txtbox or combo box is null it will give a message that incomplete entry. I have already posted this thread, but i noticed that when …

Software Development visual-basic
Member Avatar for koolsid
0
142
Member Avatar for javaman2

hey again i hate to be a bother but i still can't get this to work my driver program(the second code) won't call the add method or the minus method to subtract input i tried to do this in my code below and have failed if you have any suggestions …

Software Development java
Member Avatar for darkagn
0
150
Member Avatar for jackiejoe

Having a problem with getting my array into a TextArea, I originally wanted to use a JTable but found the Table Model and what to do too difficult for what I want so my question is I have my array and now I want to display it inside a TextArea, …

Software Development gui java java-swing
Member Avatar for javaAddict
0
2K
Member Avatar for ssDimensionss

ok i know this is the command for reading an integer but where does it read the integer from? I got a factorial program, heres the beginning of it: [ICODE] .data prompt: .asciiz "you want n! for which value of n?\n" .align 4 n: .space4 i: .word 1 fact: .word …

Software Development assembly
0
84
Member Avatar for JeyC

Are there python commands to achieve the following : 1. Create new text files 2. Write certain text to these file (similar to DOS Echo> command ???)

Software Development python
Member Avatar for Arrorn
0
135
Member Avatar for sharat87

Hello everyone! just dumped bytes forums and joined daniweb... hope its a good decision :P anyway, could you guys take a second to look at the following code... [code=python] import subprocess as sp cmd = "awk '{print $0}'" ex = sp.Popen(cmd.split(' '), stdin = sp.PIPE, stdout = sp.PIPE, stderr = …

Software Development python
Member Avatar for sharat87
0
4K
Member Avatar for harrykokil

how do I trigger a function after x seconds in pygame?? i have seen the "pygame.time.set_timer(event,ms), but i want to trigger a function instead of an event. hoping for a quick reply thanks...

Software Development python
Member Avatar for Arrorn
0
60
Member Avatar for doha786

i m very new in java. now facing prob to get char/string after a particular string from txt file. suppose i have few text files in one folder and every txt files contain some line like my first friend jocky, second friend vicky and so on.....:$ my program should open …

Software Development java
Member Avatar for Ezzaral
0
198
Member Avatar for longmatt

Hi guys, I am going mad. I am trying to code an algorithm in C++ and already at a very early stage there appears an error that I just don't understand... These are the error messages sent by the VC++ compiler: [code] \surface_watershed_matlab\surf_watershed.cpp(138) : error C2653: 'CMesh' : is not …

Software Development algorithm c++
Member Avatar for longmatt
0
114
Member Avatar for lilkid

[ATTACH]9597[/ATTACH] ok i want to read this file into a dictionary and this is the output d={"flight":T34712, From:ABERDEEN, scheduled 0800, remark landed} etc flight is the key do i have to parse the text file i know i cant put it straight into the dictionary as i get this output …

Software Development file-system python
Member Avatar for lilkid
0
164
Member Avatar for vartikachandra

i have made the following code... but i am having problems in accessing it.. [code] //structure for queue struct queue{ int items[MAX]; int front; int rear; }; //decleration of the queues :que_term for the values printed on the terminal struct queue que_mul2,que_mul3,que_mul5,que_sort,que_write,que_term; //initializing the queue void InitQueue(queue &q) { q.front=0; …

Software Development c queue
Member Avatar for vartikachandra
0
305
Member Avatar for lllllIllIlllI

Hi I have a sorting applet that implements Bubble Sort and Insertion sort, and i have a couple of classes in my program. I made it using netbeans and i have no main class, and when i run it using this code: [code] <html> <applet code=Sorter.class width=800 height=300> </applet> </html> …

Software Development java java-netbeans
Member Avatar for lllllIllIlllI
0
368
Member Avatar for denniskhor

[CODE]{ String readPOS; readPOS = jTextArea1.getText(); String []POS; POS = readPOS.split("[-.!? ]"); jTextArea2.append("Part of Speech Result:\n"); String patternKGN,patternKPF,patternKK,patternKNA,patternKPA, patternKPC,patternKPK,patternKS; for(int i = 0; i < POS.length; i++) { try { File readKGN = new File("KGNLibrary.txt"); FileReader outKGN = new FileReader(readKGN); char[] buf = new char[(int)readKGN.length()]; outKGN.read(buf); patternKGN = new String(buf); …

Software Development java
Member Avatar for denniskhor
0
120
Member Avatar for denniskhor

[CODE] String readPOS; readPOS = jTextArea1.getText(); String []POS; POS = readPOS.split("[-.!? ,\n]"); jTextArea2.append("Part of Speech Result:\n"); String patternKGN,patternKPF,patternKK,patternKNA,patternKPA, patternKPC,patternKPK,patternKS,patternKNK; for(int i = 0; i < POS.length; i++) { if (POS[i].equals(POS[i].toUpperCase())) { jTextArea2.append(POS[i].toUpperCase() + "/KNK" + " | "); } }[/CODE] i ady split the input with "[-.!? ,\n]", for example …

Software Development java
Member Avatar for denniskhor
0
99
Member Avatar for drjay1627

if we use queue from c++ stl, we don't need //void enqueue(struct queue *q, int a) //int dequeue(struct queue *q) functions? my TA has it on the slides but since the c++ queue has push and pop enqueue and dequeue isnt needed, right?

Software Development c++ queue
Member Avatar for drjay1627
0
69
Member Avatar for artemis_f

I have the following code (this is just an example that I thought of for the concept I am having trouble with) [CODE]String fileName = "example3.txt"; Reader reader = new Reader(); ArrayList<String> vertices = reader.getVertices(fileName); Matrix m = new Matrix(vertices); Matrix m2 = m; m.setEdges(fileName); m2.print(); m.print();[/CODE] what I want …

Software Development java
Member Avatar for artemis_f
0
117
Member Avatar for Miyuki Suzuki

Hello again, today is just not my day :( I had a problem with speed this morning and got help that totally solved it, so here goes hoping for some more help. [B]background:[/B] I have an ejb that picks up a file, copies it and the has to process the …

Software Development file-system java
Member Avatar for Miyuki Suzuki
0
147
Member Avatar for denniskhor

[CODE] private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) { String readPOS; readPOS = jTextArea1.getText(); String []POS; POS = readPOS.split("[-.!? ]"); jTextArea2.append("Part of Speech Result:\n"); for(int i = 0; i < POS.length; i++) { if (POS[i].equals("makan")||POS[i].equals("kerja")) { jTextArea2.append((POS[i] + "/KK" + " | ")); } else if (POS[i].equals("sakit")||POS[i].equals("cantik")) { jTextArea2.append((POS[i] + "/KS" + " …

Software Development java
Member Avatar for denniskhor
0
99
Member Avatar for PinoyDev

Good day! I want to check all txtbox and combox(style=2) in a form when the user click save. If one textbox or one combobox is not fill in then i will show a message that cannot submit. One or more fields requires entry.I dont know whats wrong with my code …

Software Development visual-basic
Member Avatar for koolsid
0
87
Member Avatar for shadwickman

Hello, I've loved Python ever since I picked it up a couple years ago, but I have a question about the proper way to do something. There's a way of condensing an if/else conditional that has 2 options (True, False), for simple things. Assume that [icode]playerWins[/icode] is a boolean: [code=python] …

Software Development python
Member Avatar for shadwickman
0
116
Member Avatar for turbomen

To design a program that works out the powers of numbers. For example 3^5 = 3*3*3*3*3 = 243 2^3 = 2*2*2 = 8 Please help me again?

Software Development pascal
Member Avatar for m610
0
91
Member Avatar for javaman2

hello again, i hate to be a bother but this is the third day im working on this assignment and i need a little help ill point out the 2 lines im having trouble with in my driver program(driver1) but ill supply you with the class definition and the driver …

Software Development java
Member Avatar for javaAddict
0
225
Member Avatar for Miyuki Suzuki

Hello everyone, I am having some difficulty with file handling, I hope someone can help. Here is the background: 1) I have to read a .dat file, file size varies from 692kb to 109.742kb with the following format of data: eg : ID|flag 1|y 2|y 3|y 4|y 4.37777451|y 5.52625317|y 2) …

Software Development file-system java
Member Avatar for Miyuki Suzuki
0
106
Member Avatar for crumpet

Hi, I'm trying to create a "command line" in Python, which makes a user input a certain command and its associated data, without the use of brackets. So the user would input: >>> test 1 2 3 So it would carry out a command: [CODE=python] def test(firstnum,secondnum,thirdnum): return firstnum,secondnum,thirdnum [/CODE] …

Software Development python
Member Avatar for crumpet
0
154
Member Avatar for PinoyDev

I have created a flash system manual which is located relative in my program path at folder named manual. When the user click [I]play[/I] i will play the flashmanual.swf in a folder named manual relative to my program. I have coded it below but it returns error: Please help. [code=vb] …

Software Development flash visual-basic
Member Avatar for PinoyDev
0
86
Member Avatar for DisembodiedLoaf

I have two programs I've been working on for my class but I keep getting different errors. First one: Write a boolean function called isTriangle that receives three numbers and returns true or false based on whether or not the numbers are possible lengths of a triangle. If the sum …

Software Development python
Member Avatar for shadwickman
0
181

The End.