576 Topics

Member Avatar for
Member Avatar for reco21

Hello, I'm wondering how to add predefined text to many input fields on click of an image. so I have 4 images and I click one and 4 fields are filled with predefined text. If I click another the text is changed with some other predefined text. Thanks

Member Avatar for reco21
0
136
Member Avatar for blah123123

Im trying to make an employee database where the user can add, delete, search for, view all, edit an employee, and quit. After the user clicks the add or delete button, the program is supposed to allow them to input the names and other things nd when they press enter …

0
106
Member Avatar for minimogul

I am having trouble with my inputs. I set a border for them one class has a 1px border the other has a 2 px border. It looks fine in Chrome and I have checked everything and I don't understand because someother elements show up with a border. Is this …

Member Avatar for minimogul
0
175
Member Avatar for FAITH2011

Hi all, Could someone help with the position of text on screen in pygame. Basic structure would look something like this below. now I like the user to input the text position starting at top left and moving 1 space at a time until end of that line then onto …

0
100
Member Avatar for jay200032

Hello guys, I'm quite new to C++, I'm trying to achieve a task whereby i could read from a csv file and write to that same file and vice versa depending on the user's selection. This is what i did: [B]Here's the data already on file[/B] 1,Mickey,23,090,Girne,TRNC,465 2,Charles,23,090,Girne,TRNC,465 3,Species,23,090,Girne,TRNC,465 4,Moody,23,090,Girne,TRNC,465 …

Member Avatar for Ancient Dragon
0
292
Member Avatar for bensewards

Hey guys, This is my first official post on DaniWeb :) I am new at programming in C++ using visual studios, and right now I am fooling around with storing user input into Arrays. I am having a problem with my code, using an array size of 3 to store …

Member Avatar for jonsca
0
209
Member Avatar for flebber

Hi I was reading the thread [URL="http://www.daniweb.com/forums/thread12326.html"]http://www.daniweb.com/forums/thread12326.html[/URL] which is about getting user input from a user in python. So I thought I would write something to tst it since I haven't used python in a while so I wrote a basic program to calculate netpay. [CODE]hours = raw_input("Enter Hours Worked: …

Member Avatar for snippsat
0
2K
Member Avatar for MylesDBaker

Hello All, I am trying to solve maximum flow, and I am experiencing some problems formatting the output. Here is some pseudocode I am trying to implement. c [u, v] is capacity from u to v, f [u, v] is the flow, cf [u, v] is the residual capacity. for …

Member Avatar for daviddoria
0
228
Member Avatar for packetpirate

This is for the numerous people I see constantly asking how to "pause" the console after their code runs. The explanation for how the code works is within the snippet in comments. Basically, the "cin.clear();" function will clear the input stream, getting rid of any newline characters that would have …

Member Avatar for MosaicFuneral
-1
2K
Member Avatar for feoperro

Hi, Can someone tell me how to make an image next to an input field? Something like what you would find at [URL="http://www.facebook.com"]http://www.facebook.com[/URL] or [URL="http://twitter.com"]http://twitter.com[/URL] when looking at the search field input box, you'll notice a picture of a magnifying glass - How do they do this? Thanks, Ashton.

Member Avatar for NZprog
0
837
Member Avatar for curbster

Hi all, I am in my first Java class at the local community college but my class is online and my teacher takes DAYS to respond via email. I need some help with my homework and thought I would try here. I'm not looking for someone to give me the …

Member Avatar for curbster
0
880
Member Avatar for taylorc8

Hi, I'm trying to use an input device like a joystick as a mouse, and I've got some good behavior for desktop use by polling the state of the device in a loop and doing some work with the values, then using SendInput with some INPUT structures to make the …

0
102
Member Avatar for rcogq7

* This program inputs ten integers and * displays the mode using parallel arrays. * Use a method to calculate the mode. This is my specs. I cannot figure out a solution as to how to find the mode using only two arrays. Help would be gratefully appreciated

Member Avatar for JamesCherrill
0
97
Member Avatar for iamthesgt

Hello, I need to take a file filled with numbers and input them into a two-dimensional array. The file would look like: 3 6 3.9 4.5 2.1 1.0 2.4 4.3 3.1 4.2 5.1 6.2 1.0 2.7 1.2 2.3 3.1 4.2 5.2 6.4 where the first two numbers are the vertical …

Member Avatar for iamthesgt
0
166
Member Avatar for feoperro

Hi, How do you set a text input field to have a character limit? Say for example, the user had to enter a postal code of 4 characters, how would you limit the text field to only allow 4 characters? Thanks, Ashton.

Member Avatar for Kraai
0
127
Member Avatar for adanaz

Hi guys I'm trying to take a user input (name) and replicate the input in other methods. Can anybody help? Here is the code: [CODE]import javax.swing.JOptionPane; public class example { public static void main (String[]args) { entername(); } public static void entername() { String a=""; a = JOptionPane.showInputDialog("Welcome. Enter name …

Member Avatar for adanaz
0
955
Member Avatar for zyzagy

Hi, I am kind of new to PHP, learning through books and online resources but I am having difficulties with what seems like an easy problem. [CODE]if($pageid == 1){ echo ""; } else { [COLOR="Green"]echo '<form action="delete_ad.php" method="post">'; echo '<input name="deleteid" type="text" value="" id="deleteid" hspace="10"/>'; echo '<input name="delete" type="submit" value="Delete …

Member Avatar for Borzoi
0
165
Member Avatar for Rickay

[CODE]int main2() { cin.get(); cin.ignore(); cin.clear(); while(true) { long double x, y; char ch_op; Sleep(200); cout << "Enter an expression below: \nExamples:\n"; cout << "x + y for Addition.\nx * y for Multiplication.\n" << "x / y for Division\nx - y for Subtraction.\nx & x for Square Roots.\n" << "x …

Member Avatar for Rickay
0
199
Member Avatar for BboyRodimus

I have this recursive method that counts the amount of negative numbers that lie in the array called "NumArray" [CODE]public static int countNegative(double[] NumArray, int startIndex, int endIndex) { if (startIndex == endIndex) { if (NumArray[startIndex] < 0) { return 1; } else return 0; } else if (NumArray[endIndex] < …

Member Avatar for apines
0
1K
Member Avatar for Hawkpath

Hi, I'm trying to create a simple program in Win32 and I can't find how to accept input in the form of text. Like "What's your name: ___" then the user enters their name and my program can evaluate the input. I have already googled this for a long time, …

Member Avatar for Frederick2
0
466
Member Avatar for goodi8u

Hello, I am new to posting, but have searched these wonderful forums for a couple years. I am programming a game as a hobby. And I have been searching for a way to read what the user types. e.g. User types in "hello" and I can take that and send …

Member Avatar for goodi8u
0
244
Member Avatar for ryoonnet

Hi, I am trying to upload multiple files using file input. And I am able to do that using "multiple" attribute of input type file. I can not use file API as I am using python on server side. So after user has selected the files, I want to access …

Member Avatar for Airshow
0
269
Member Avatar for aviavyne

Hello, I started C++ and I have a trouble with this thing. I can't make it work. What I am trying to do is to get the value and calculate the area of a circle using a class type of coding style. Note that this does not even compile. "Where …

Member Avatar for Unimportant
0
107
Member Avatar for danholding

hey guys n girls, im using python 3.1.2 i am currently creating a process to: 1) check a directory does not exist, 2) check for illegal char's from a list i have made, 3) pass it to a program,-program creates directory, 4) and passes a value back to python 5) …

Member Avatar for Gribouillis
0
261
Member Avatar for sateal8

How would I validate a date input that looks like 01 / 23 / 10? It needs the spaces and slashes. i know how to validate the month day and year i just can not figure out how to validate the blank space and slash in Java.

Member Avatar for kramerd
0
82
Member Avatar for aravind rao

Hello Consider this scenario: [CODE]File file;[/CODE] and later [CODE]file = new File("Hello.txt");[/CODE] [CODE]file = new File("hi.txt");[/CODE] As you all know, this will create two text files in java. How do I delete one of these files, as in if I only wanted to delete hi.txt?

Member Avatar for javaAddict
0
80
Member Avatar for epicbeast9022

Hi everyone, I'm trying to program a game in C++ using SDL and i want to get peoples names. its not working though, and I'm really confused as to [B]why[/B]. :?: i'm using code like the following: [B]StringInput.h[/B] [CODE] class StringInput { private: std::string str; SDL_Surface *text; int x,y,r,g,b; SDL_Color …

Member Avatar for Stefano Mtangoo
0
568
Member Avatar for saad749

[B]Aim:[/B] Well, What I am trying to do is to store the names in an array and scores scored in another array. Then Write them into the file. When the program is ran again, I will like to read the stored names and scores, add the new name and score, …

Member Avatar for saad749
0
152
Member Avatar for ayoitzrimz

Hello all, I am having an issue with ifstream. Short explanation: 1. I ask the user for the filename and read it via cin 2. I store the input in a c++ string 3. I use the input as the filename Here's where it fails: When a user enters something …

Member Avatar for VernonDozier
0
237
Member Avatar for aviavyne

Hello, I got a new problem. Our teacher asked us to create a menu-driven program which will make all types of conversions ([url]http://classroom.sdmesa.edu/vtrinh/pp4.html[/url]). This program must be able to do conversions back and forth (like inches to centimeters, and centimeters to inches). Below I started the assignment and so far …

Member Avatar for prvnkmr449
0
400

The End.