576 Topics

Member Avatar for
Member Avatar for aviavyne

Recently I was assigned to create a program driven by a main menu, followed by a submenu, followed by functions. Below is an attempt of mine, which does display the main menu, and from there a user must enter a value to proceed to a second menu, however it doesn't …

Member Avatar for Fbody
0
301
Member Avatar for flyingcurry

I am writing a program for class on catching exceptions. Everything compiles fine, but when I try to test my error trapping, this shows up. [COLOR="Red"]"How many integers would you like to enter? f Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1 This is not a correct integer, please try again. Before: …

Member Avatar for flyingcurry
0
165
Member Avatar for Danny_501

Hi all, I have a multithreaded program, one of the threads needs to listen for user input. I was wondering is there a way of checking for user input every few seconds or milliseconds, without having the thread hang on a fgets() function? Current I have: [CODE] while(keep_running == TRUE) …

Member Avatar for sree_ec
0
239
Member Avatar for PhilEaton

Hey, I'm trying to find any tutorial on taking user inputted text and displaying, on that page or another. I know how to upload a file, or provide that service to the user so I figured it might be similar, but I couldn't find any help on this scanning google. …

Member Avatar for PhilEaton
0
139
Member Avatar for pgmarco

Hello, I am having a little trouble getting the variable $total to insert into mysql table. I used javascript to get the total that is in the input box. Any help is very much appreciative. Here is site: [url]http://illcomputers.comyr.com/custom.php[/url] Thank You Snippets of Code JavaScript Code [CODE] var mainitems = …

Member Avatar for pgmarco
0
2K
Member Avatar for webweb2

Hey guys, I am a CS major at Bradley University and school is about to start so just to brush up on my C++ syntax I decided to make a simple program that would be used to study. It is basically just a notecard program, where you enter the front …

Member Avatar for Fbody
0
94
Member Avatar for lionaneesh

I am trying to solve the problem Present at [url]http://www.codechef.com/problems/INTEST/[/url] I have made a small Python script to do my job :- [CODE]array = [] no_lines = 0 no = 0 j=0 div_no=0 no_lines = input() no = input() temp = no_lines while(no_lines>0) : i=0 i = input() array[j] = …

Member Avatar for TrustyTony
0
781
Member Avatar for jjiceman

Hi, I'm developing an application, with a main GUI and another GUI that gathers some information. Upon clicking a button in the main GUI, it initializes a second GUI object that has fields for input and then an "OK" button. I need to be able to return the information in …

Member Avatar for JamesCherrill
0
217
Member Avatar for fullmetalboy

Hi everybody! I'm a newbie to C++ and I need some help to improve my skills in c++. *When you make input data "cafe monde" into a string variable, the variable only accept "cafe" and not the white space and "monde". What should I do to retrieve white spacem "monde" …

Member Avatar for fullmetalboy
0
136
Member Avatar for pumpkin_pub

so i have a little issue here. i have a program that creates a list of random numbers, for sake of example here it is: [CODE] public class RandomSeq { public static void main(String[] args) { int n = Integer.parseInt(args[0]); for (int i = 0; i < n; i++) System.out.println(Math.random()); …

Member Avatar for ashok2004_urs
0
325
Member Avatar for wolfeater017

[This is a really long code so im just going to put the traceback part in and where I think the problem is] [def directions(): enter=0 nwscreen() Font1 = pygame.font.SysFont('ActionIsShaded', 25) d1 = basicFont.render('Directions',False,WHITE,BLACK) d2 = Font1.render('Directions',False,WHITE,BLACK) d3 = Font1.render('ALL ANSWERS MUST BE LOWERCASE',False,RED,BLACK) d4 = Font1.render ('Press enter to …

Member Avatar for TrustyTony
0
170
Member Avatar for scrupply

I am having a problem spitting out text saved into a MySQL database and displaying it in an HTML form input field. The text will spit out fine unless there is a single or double quote, then the text is spit out until the quote. The text is all in …

Member Avatar for Fbody
0
148
Member Avatar for ans025

Hello I am very new to Java and I really don't know exactly what I am doing. I know a little bit of other programming languages so I'm trying my best to figure it out for myself but I am supposed to: [B]Write a Java Application which will read a …

Member Avatar for NormR1
0
1K
Member Avatar for Jackie91

when i enter '1' .. the cout is connected,i cant even input the 1st line,which is the 'name = '.. help me pls. [CODE]#include<iostream> #include<string> using namespace std; void main() { int input; int choose; string name; string icNum; string parentName; string address; string TelNum, parentTelNum; cout << "\n\t\t\t STUDENT …

Member Avatar for jonsca
0
139
Member Avatar for seanvitalaim

Is there a way to create a certain number of double variables based on user input. For example a user has three cars so when asked by the software how many vehicles he has and he enters the number 3 my software will create 3 double variables named car01, car02, …

Member Avatar for JamesCherrill
0
212
Member Avatar for mtliendo

I'll start off by saying that not only am I new to Python but programming in general. But the problem is that whenever I have the user put in a number, then have the user put in another number, I can't get the two x,y variables to add up. the …

Member Avatar for griswolf
0
165
Member Avatar for j23

i want to use input validation so that the user can only input decimal numbers. can someone help [CODE] while int_x != : #this is where im having the problem print "the number entered must be a decimal number" int_x = input("Enter a decimal number:") [/CODE]

Member Avatar for ultimatebuster
0
2K
Member Avatar for leiger

This is code I've taken from another website, and adapted to work with the JFileChooser. I got it working so that someone could select a java file with the chooser, and I'd send a "java -jar FILENAME" to the console and the app would launch. However as soon as I …

Member Avatar for Gribouillis
0
641
Member Avatar for leiger

Python works fine in the console, but I'm having problems using python in a Java program. In case someone here has any ideas, I'm posting a link back to my original post (please reply there and not here): [url]http://www.daniweb.com/forums/post1246152.html#post1246152[/url] Thanks!

Member Avatar for leiger
0
149
Member Avatar for emmonssw

I have a csv file that has 12 columns. I've been using: [code=c++] while(!infile.eof()) { getline( infile, source, ',' ); outfile << source << ", "; getline( infile, native_ID, ',' ); outfile << native_ID << ", "; getline( infile, index, ',' ); outfile << index << ", "; getline( infile, …

Member Avatar for emmonssw
0
131
Member Avatar for pi_lord12

Hey, so I'm trying to make a text-based game using mostly Swing GUI; the code I have so far is below. When I use JOptionPanes I modify the icon, title, and suchlike on them, so I have about two lines of code for every JOptionPane. I created methods for them …

Member Avatar for pi_lord12
0
170
Member Avatar for emmonssw

Basically, after the user inputs a cvs file which is formatted like (unmod.cvs that is attached is complete file): Source, Native ID, Index, Charge, Cluster ID, FDR, Precursor Mass, Calculated Mass, Mass Error, Peptide, Mods, Search Scores /tumor/set2/mam_082208o_individualsamples_747T_set2_082008_A01,scan=771,770,2,46,0,1162.436,1162.438,0.001953125,NDDDEEEAAR,,(mvh 52.0926)(mzFidelity 69.9226) /tumor/set2/mam_082208o_individualsamples_747T_set2_082008_A01,scan=1147,1146,2,93,0,1436.543,1436.506,-0.0369873,AAEDDEDDDVDTQ,,(mvh 68.8836)(mzFidelity 92.7468) *note that the mods value is a …

Member Avatar for emmonssw
0
185
Member Avatar for NekoChan

I suggest it's just a simlpe tiny thing that has to be done to solve this but I simply can't figure it out! I hope anyone can help me. Here's what I koppied from a learnbook for python. >>> secret = 1337 >>> guess = 0 >>> l = 0 …

Member Avatar for NekoChan
0
813
Member Avatar for maf5693

hi I have been looking around for a good file io tutorial and I cant find any. It is simple enough to me the process, mov dx,043h mov al,54 out dx,al etc. but i have no idea which ports go to where or how to write to a hard disk …

Member Avatar for maf5693
0
235
Member Avatar for carrythe1

Hello, Please disregard any small syntax errors I have made in this question, I’m trying to simplify a program that is many pages long. I have a program that has 2 parts, main.cpp and a form GUI.h. Both have functions that pass variables between themselves and I don't want to …

Member Avatar for nbaztec
0
2K
Member Avatar for Ja14

This is as much of a question about algorithm as it is about code. I’m training monkeys to input data into a keyboard in the form of a table. I have created a special keyboard with nothing on it but numbers 0 - 9, a period, tab key and a …

Member Avatar for Ja14
0
121
Member Avatar for dsumner25

I have an input button that calls a javascript function: [CODE] <input type="button" name="Add_OpStds_Step" id="Add_OpStds_Step" value="Add Step" onclick="Add_OpStds_Step();" /> [/CODE] The function that is called will add some labels, input boxes, and the things needed for a table. By itself it works just fine, as soon as I wrap it …

Member Avatar for dsumner25
0
927
Member Avatar for xheavenlyx

Hello everyone, I have searched for this high and low but could not find a solution. To elaborate on the heading. I am trying to figure out a way to do this: 1. I have a text file with one line paths and file listing in it, for example: [CODE] …

Member Avatar for xheavenlyx
0
113
Member Avatar for jdoggrr

So I was happily playing Warhammer when the cat walked behind the monitor and *POOF!* no graphics signal. I waited for a while, and then hard-rebooted. Now I get a "Input signal out of range" error. I have:[LIST] [*]fiddled with/replaced the cables [*]swapped the monitor [*]tried to boot in safe …

0
141
Member Avatar for crazykid

hey guys. i'm working on this project and i can't seem to get it figured out. there's a lot of steps involved, but i can't get any further right now because i cannot seem to figure out how to place values in an array. the program should ask the user …

Member Avatar for crazykid
0
342

The End.