132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Wootens

Hi guys, I'm working on a program which is essentially Rock Paper Scissors Vs. the computer. Anyway I'm having a bit of difficulty with it and could use some assistance. I need to use a class method, so I decided to separate the computer's choice in the class method, I'd …

Software Development java
Member Avatar for Laidler
0
384
Member Avatar for Dale.E

Hi all, I apologise for possibly asking stupid questions and/or overlooking things that I possibly should not be. I'm quite new to this C# and programming in general, but it was forced upon me at university - and after a few lessons it looks something I enjoy and would like …

Software Development
Member Avatar for Dale.E
0
149
Member Avatar for jtylerboy222

I believe all of my logic is sound, but syntax is off a bit... -ask for total numbers -for loop to input total numbers -1)input first number -2)throw exception "must be positive" -3)if negative > back to 1 -4)if no exception > calculate average This is my first program using …

Software Development java
Member Avatar for NormR1
0
2K
Member Avatar for Laidler

Im trying to create a program which acts like a fruit machine at the moment i am writing an action listener to work with the spin JButton. i have a number of IconImages constructed. could i possibly set these images as an array and then use the random int method …

Software Development image java
Member Avatar for Laidler
0
825
Member Avatar for Sunshineserene

May I know how to solve floating decimal problems?

Software Development java
Member Avatar for javaAddict
0
348
Member Avatar for baconswife

Hello, I need some help figuring out which errors are syntax errors in this. Compared to what I started with this has come a long way but there are still some in there that I am having trouble spotting. I do know that they if statements are incorrect, i'm just …

Software Development c++
Member Avatar for Fbody
0
123
Member Avatar for pythonstarter

Is there an way to create matrix[a][b][c][d] in python? It seems that you can write this way in Perl but not Python? Thanks!

Software Development perl python
Member Avatar for TrustyTony
0
124
Member Avatar for arareyna

Hi! :) I have been starting this small GUI application on monitoring data sent via the serial port... I have made the necessary preparations, please see: [CODE]import wx import time import wx.gizmos as gizmos import datetime class MACE(wx.Frame): def __init__(self, parent, ID, title): wx.Frame.__init__(self, None, -1, "MACE PQ MONITORING SYSTEM", …

Software Development gui python
Member Avatar for Gribouillis
0
1K
Member Avatar for CoopOwnz

hey all, I'm writing a C++ console app that converts all the letters of a string to an ALT+NUM equivalent. e.g. e might convert to é (or ALT+1154) My problem is only with those ALT+NUM combos that have to start with a 0 For example with letter 'd' the only …

Software Development c++
Member Avatar for Banfa
0
139
Member Avatar for Kerrai

Greetings from a new Java coder. I have ran unto a problem that i cant seem too solve on my own. And since next class is on Tuesday i hope you can help me out. When i compile this i get an error on "Line 57 : "Scan cannot be …

Software Development java
Member Avatar for musikluver4
0
227
Member Avatar for burcin erek

there are four playing cards . you choose one of them if selected card is 1 spades you win else you lose but ı want to make win card as random from 4 cards. i dont know how. [CODE] #include <cstdlib> #include <iostream> using namespace std; const int clubs=0; const …

Software Development c++
Member Avatar for burcin erek
0
107
Member Avatar for alex-i

Hi everyone I need a help about checkbox. when I select 3 or 4 checkbox from 6 checkbox who I have in my form, and I click Submit button all name of checkbox selected to save on text document on drive c or any other location. thank you for help

Software Development
Member Avatar for kvprajapati
0
82
Member Avatar for Isha810

hello everyone, I am using System.Timers.Timer class. its object is myTimer and am using myTimer_Elapsed event to raise the event. I have used two masked textboxes that takes start and stop time as input and one button. The timer is instantiated in button click event . The code is shown …

Software Development
Member Avatar for nick.crane
0
209
Member Avatar for Nivass

Hi, I have a rich text box and i like to skip enter key on the rich text box. i.e; If user pressed enter key the rich text box cursor should not move to next line rather than it should do some action. I have achived this to some what. …

Software Development
Member Avatar for kvprajapati
0
100
Member Avatar for kbalba

is there a possible way to create a speech recognition software program using C#??

Software Development c#
Member Avatar for reshmiullas
0
79
Member Avatar for varunrathi

Can anybody help me with permutation in c++. say if the entered string is "stop" then there must be 24 (=4*3*2*1) different words made by the letters s,t,o,p. Similarly if the entered string is "abcde" then there will be 120 (=5*4*3*2*1) different words made using the letters a,b,c,d,e. Please Help. …

Software Development c++
Member Avatar for richieking
0
921
Member Avatar for pennylynne

Hi, I'm working on a program with GUI and I'm having a fair amount of trouble with the following code. As you can see below, I have an application and a support class. [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class StyleOptionsPanel extends JPanel { private JLabel saying; private JCheckBox …

Software Development gui java java-swing
Member Avatar for pennylynne
0
115
Member Avatar for Ajith007

Dear friends.. i have been assigned the project of designing source code for Booth's multiplication algorithm in C. We have reached 60% of success but are now stuck.. if anyone has the source code in C or may be in C++ or even in microprocessor 8086 pls send it here …

Software Development algorithm c email
Member Avatar for Adak
0
297
Member Avatar for NewVBguy

Hi There, I am trying to open a txt file with no header using vb6. my problem is that it's converting the first record as header. how can I solve this problem so that my first record will stay. Below is my code: [code]Private Sub ccommand1_Click() Dim cnn As New …

Software Development visual-basic
Member Avatar for peter_budo
0
138
Member Avatar for arjen

hello guys i need help is it possible to check if the customer input his complete name is valid or not? if yes how?

Software Development vb.net visual-basic
Member Avatar for JJCollins
0
176
Member Avatar for duggie

Hi, I have quite a bit of data processing to do and i would really appreciate some help to make it go faster. I have recorded a macro but I am having 2 problems with my coding. I have two spreadsheets open, Lets call them A and B. I want …

Software Development visual-basic
Member Avatar for AndreRet
0
111
Member Avatar for icpeople

Hi everyone, I'm having problems with the output of this coding and I would really appreciate the help. The assignment requires to show how someone's taxes are distributed by first ask the user for the amount of money (dollar[] and income) and at the same time prompt for the taxes …

Software Development c++
Member Avatar for Ryaether
0
83
Member Avatar for jknapp06

Hello, I'm in a software design class and we are using java; I've taken other programming classes and I'm familiar with a few other languages but that's the problem. I feel like I'm missing the point of java. I don't even know the term for it...but the java style I …

Software Development gui java oop
Member Avatar for JamesCherrill
0
139
Member Avatar for Mubusher

Salaam to all viewers Dear please help me on this topics iam having a form,DatagridView,textbox datagridview contains a data when we write in textbox so the datagriview row select who matching data with textbox for example i write in textbox Nims so the datagridview row select where the nims find …

Software Development vb.net
Member Avatar for Mubusher
0
105
Member Avatar for Wootens

Hey guys, I'm working on this program. It should roll 2 separate die and repeats until the computer rolls doubles. I'm having some issues with it and could use some help. [CODE]// RollDoubles.java // import java.util.Scanner; public class RollDoubles { // Dice roll repeatedly until computer rolls doubles // print …

Software Development java
Member Avatar for Darryl.Burke
0
125
Member Avatar for croc85

HI guys, I would like to create a Java file based on the information from an XML file. I would like to read the info from an xml and generate a class and it's method. e.g [CODE] <person> <name>croc</name> <surname>crocky</surname> <age>12</age> </person>[/CODE] then it should generate: [CODE] public class Person …

Software Development java xml
Member Avatar for Darryl.Burke
0
566
Member Avatar for htetnaing

Hi everyone, I am thinking of doing something like this but I am not sure it can be done or not. Normally, if i write a program (Windows Form) I drag and drop what button and textboxes are necessary on the form then do necessary procedures and actions. What I …

Software Development
Member Avatar for htetnaing
0
162
Member Avatar for amitbhanot

Hi. I am trying to create a stand alone app but stuck somewhere. When i click on a JCheckBox, it opens up another frame window. in this window if i click cancel then the JCheckBox in the previous frame is not checked. but if i click OK then this JCheckBox …

Software Development java
Member Avatar for amitbhanot
0
136
Member Avatar for pythonlearning

Hello, just find this website and feel it is great to learn Python here. I have a question when I try to read data from file and compile a dictionary from the data. The data look like this, 1 1 A A 0 1 2 A B 1 1 3 …

Software Development python
Member Avatar for pythonlearning
0
109
Member Avatar for TheBaby7591

This is the code I have so far. I can't even get the numbers range to print to the screen correctly. I am very new to all this stuff so go eacy on me. Can anyone help?? [code=c] #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> int main() { unsigned …

Software Development c
Member Avatar for TheBaby7591
0
115
Member Avatar for _neo_

Hi. How can I get subprocess.Popen.stdout size? Before reading from Popen.stdout I want to check its size, then get bytes from it. [CODE] def execute_bash(self): wait_sec = 5 import time import subprocess wForceKill = True res = subprocess.Popen(self.command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) for i in range(wait_sec): res.poll() if res.returncode != None: …

Software Development python
Member Avatar for _neo_
0
177
Member Avatar for Spartan_MSU12

I am trying to complete this program. It is excuting the second part of it, Which every 5th word needs to be replaced with an underline. But I need to print out the text with out the underlines first. then have it replaced with underlines. Also, the user has to …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
127
Member Avatar for Caeon

I am currently writing a simple program that will either allow me to add music or show all of my albums, artists, and songs. The program starts in main(); then after selecting "View Music" it goes to the viewMusic() function but runs through the function and skips the getchar() for …

Software Development c
Member Avatar for Adak
0
91
Member Avatar for onlinessp

Hi, please help me to get the URL from the address bar. Example when i write [url]www.google.com[/url] in my address bar my application in c# return the value of URL that is [url]www.google.com[/url] please help me to write this code. Thanks in Advance

Software Development
Member Avatar for wenlong88
0
870
Member Avatar for aliskov

Hi, I found a very useful app on the web. Downloaded the .class file and was just wondering if it would be possible to somehow put that app on my phone. It's a Nokia E5 and I'm certain it has java. Please advise. Thank you.

Software Development java
Member Avatar for aliskov
0
151
Member Avatar for Beancounter5

okay , i see .... i have situation where i have a list called bunnyList containing mutantType objects, i want to create a new object using a constructor and add this object to my list. Like below. bunnyList.push_front( new mutantType ); with the aid of the newly discovered rbegin pointer …

Software Development c++
Member Avatar for arkoenig
0
78
Member Avatar for emko

Hi, I have to make a program that takes an input text file and reverses the contents of that file, and outputs that into another text file. I am new to stacks, but what I have so far nothing happens, it just outputs a blank text file. I just wanted …

Software Development c++
Member Avatar for emko
0
112
Member Avatar for vitin6039

I need help with a homework, i been working in this for the past 2 weeks and can't get it to work. I need to make a function that will allow me to create a dynamic array and them expand the old array of 3 subcript into the new array …

Software Development c++
Member Avatar for LevyDee
0
114
Member Avatar for emko

Hello, I have to write a program that prompts the user to enter a phone number expressed in letters and outputs the corresponding phone numbers in digits. The user can use lowercase and uppercase letters, as well as spaces between words. And I am supposed to use the charAt method …

Software Development java
Member Avatar for emko
0
4K
Member Avatar for bosdak

#include<stdio.h> #include<conio.h> main() { int num, dep, with, bal; clrscr(); num=1; printf("MENU"); printf("\n\n1. Deposit\n2. Withdraw\n3. Check Balance"); printf("\n\nEnter a number of choice: "); scanf("%d", &num); switch(num) { case 1: printf("\n\n\nEnter an amount to be deposited: "); scanf("%d", &dep); { printf("You have successfully deposited an amount of %d.", dep); } getch(); …

Software Development c
Member Avatar for justiceigwe
0
2K
Member Avatar for baconswife

Hello, I'm new here and not quite sure what it means by wrapping code in code tags so for my future posts can someone let me know how this should have been formatted so it would be a correct post? My question is I have a program I am writing …

Software Development c++
Member Avatar for Grn Xtrm
0
140
Member Avatar for Enders_Game

hypothetical say i have [code] for i in range(20): for j in range(20): for k in range(20): [/code] How could I != all fo them without writing 20 statements i !=j !=k doesnt work obviously (I have to compare 5 words so writing a seperate for each combination would take …

Software Development python
Member Avatar for Gribouillis
0
90
Member Avatar for phil750

Hey all, I've been trying to build a simple c shell for assignment, and im a bit stuck. It doing something different on my laptop to that it does on my pc :S laptop is on mint 7 pc is virtual machine on mint 8. Im using the getcwd to …

Software Development c
Member Avatar for C++ThugLife
0
282
Member Avatar for y2kshane

im developing a language converter so i want to do like this source | target (this is only example) aa | q bb | w cc | e im using netbeans ide i have a one textfield for input strings and textarea(i used textarea becoz i dont know how to …

Software Development ide java java-netbeans
Member Avatar for NormR1
0
174
Member Avatar for gaurav_13191

I have the following function to delete nodes in a doubly linked list at a specified position [CODE]void Delete(struct dnode **ptr,int pos) /*pos refers to position at which element is to be deleted and ptr is the pointer to the first node in the list */ { struct dnode *temp; …

Software Development c linked-list
Member Avatar for prvnkmr194
0
1K
Member Avatar for Bri426

Hey everyone :) I'm writing a program for my class that has the user input 5 test scores and then from the inputted numbers, return the letter grade. I've begun writing the LetterGrade function, but it's not working. I'm getting a strange array of numbers/letters instead of the actual letter …

Software Development c++ ios
Member Avatar for mrnutty
0
144
Member Avatar for djdanjo82

Hello Everyone! First of all thanks again for viewing my thread. I was hoping someone could give me some good advice or point me to some code examples of java code calling an Ant JUnit Target if that makes sense. Basically I have a very basic java gui that upon …

Software Development gui java
Member Avatar for Jolint
0
489
Member Avatar for ttback

I have been trying to replicate Matlab's patch() function (reference url: [url]http://www.mathworks.com/help/techdoc/ref/patch.html[/url]) with numpy and wxpython. The ultimate goal is to replicate the functionality of following line in python: [CODE] patch(vertices(i,[1,5,9]),vertices(i,[2,6,10]),(ctotal/3))[/CODE] It is a 2D patch function which draws triangular polygons. I am familiar with using wxPython for simple GUI …

Software Development gui opengl python
Member Avatar for ttback
0
706
Member Avatar for PDB1982

I can't figure out what the error means that I keep getting on my loop. I have it set to only take 5 arguments, which is my limit, but I can't tell what it's saying: [code] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4 at Duplicates.EnterNumbers(Duplicates.java:20) at Duplicates.main(Duplicates.java:28) [/code] Here's my code: …

Software Development java
Member Avatar for kvass
0
156
Member Avatar for Haxifix

I am attempting to learn Assembly (x86 Assembly on Windows using NASM) but am having trouble understanding what this is doing. Can someone please explain line by line what this code is doing? I have commented the lines that I think I know what they do, but I'm not sure. …

Software Development assembly
Member Avatar for Ancient Dragon
0
184

The End.