576 Topics

Member Avatar for
Member Avatar for VengefulToast

Hi forum, I am just wondering how I could just use the last two digits of a four digit year the user inputs. For example, I want to drop the [19] from [1960] and just use the [60] which should be 3C in Hex so the registers would read it. …

Member Avatar for VengefulToast
0
774
Member Avatar for morganJohnson

I'm working on a small concept demo for a friend and I'm stuck on the UI. I'm trying to build something akin to an FPS interface (using mouse-look and the iconic WASD). I'm working in a Windows environment (Win7 to be precise), so I figured I'd use the standard Windows …

Member Avatar for morganJohnson
0
193
Member Avatar for harde

Slot Machine I got all this so far !!! Nex is .. First build in support for writing output to an output file. 2 Make a copy of your existing program and modify the new program to be array based or to use functions or both. It does not have …

Member Avatar for sushlet
0
152
Member Avatar for RobotFX

Hi I'll get straight to the point. I'm using this code [CODE] $sex = @$_GET['v'] ; $sex= trim($sex); //trim whitespace from the stored variable $sex = htmlentities($sex); $age= @$_GET['age'] ; $age = trim($age); //trim whitespace from the stored variable $age = htmlentities($age);[/CODE] ... to get the age and sex credentials …

Member Avatar for Sorcher
0
249
Member Avatar for Arjunah

This is a program which i am making of a quiz in which there are lifelines for helping the user solve his question. this function is to chose from whichever lifeline the user wants to chose. but my problem is that it is not inputing the string i.e not using …

Member Avatar for WaltP
0
177
Member Avatar for tedman102

I have made a program to make a rectangle in a text matrix. It begins asking for width and height. The variable must be greater than 2 and a whole number. The only problem is if a user enters a character instead of a number, or a decimal instead of …

Member Avatar for Narue
0
262
Member Avatar for xxunknown321

How do i get my program to read the last ten lines of the ".txt" file? Can you please dumb it down as much as possible. Here is what i have so far: // reading a text file #include <iostream> #include <fstream> #include <string> using namespace std; int main () …

Member Avatar for usustarr
0
8K
Member Avatar for akocnin18

can somebody help me in dealing with this project... I am making a quiz that a user can input their own set of questions..after doing a quiz other users can take it..and I don't know how to check if the user answers were right.. can you please help me? thanks! …

Member Avatar for diafol
0
242
Member Avatar for Arjunah

This is a part of my quiz program in which i ask the user to input question and 4 options and the correct option after which in new funtion i ask the quiz. but although it is asking me "option-1", its skipping the "Ques-" [CODE]int quizquestion() { cout<<"\nQues- "; cin.getline(stmt,100); …

Member Avatar for Narue
0
245
Member Avatar for ag_17

I was using getline() function and it was getting skipped. I searched through the forum and found the tutorial on how to flush the input stream but there is one thing that is still unclear to me : getline() uses newline character as a delimiter. So when a '\n' is …

Member Avatar for Narue
0
166
Member Avatar for VengefulToast

Hey forum, our professor assigned us a program we have to write in assembly language and I would love to have help on it. [QUOTE]Write an upper-to-lower case and lower-to-upper case conversion program. When the user inputs a letter, your program should convert it to upper case if it is …

Member Avatar for D33wakar
0
565
Member Avatar for lps

Good day, I have a problem here: is it possible to put an input field into option such as this?[CODE]<select> <option><input type="text" value="aa"></option> </select>[/CODE] (This is not working, any suggestiuon on how to refine it for it to work?) Any help will be appriciated.

Member Avatar for Agarsia
0
251
Member Avatar for tawboiid

I hope this hasn't been discussed before. I searched but couldn't find a thread for this. I have an input (type="text") with some default text telling the user to enter something in the box. The input tag includes an onmousedown event which runs javascript function to clear the default text …

Member Avatar for tawboiid
0
348
Member Avatar for geekman92

hi i am trying to make a program that whilst ingame (magicka if anyone is interested) reads what is pressed on the keyboard and the simulates a combination of keyboard key down and keyboar key up and mouse press. eg if i press NumPad0 it would simulate Key Press A, …

Member Avatar for cybereality
0
2K
Member Avatar for BCBTP

I am looking for a replacement for _getch(); Yes I have seen other threads like this, but they do not really satisfy my need(And I do not want to waste my time trying to write one in Assembler, as it isn't my strongpoint). I need something that is exactly like …

Member Avatar for BCBTP
0
494
Member Avatar for Kron

Ok, so basically I have an assignment in which I have to determine if what the user typed in is a number between 0-9, a letter or a symbol. The commands I can use are: [CODE]cout endl system("pause") system("cls") #include<iomanip> setw(#) setfill('ch') "\t" cin getline(cin,s) bool char int double string …

Member Avatar for Narue
0
233
Member Avatar for mawk

Hello, been lurking around to see if I could find any kind of solution to what I'm trying to solve, but the closest thing I got was this old thread: [url]http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/313687[/url] [B]What I want[/B] I'm trying to create is a SELECT menu with an INPUT field, but the INPUT field …

Member Avatar for mawk
0
242
Member Avatar for loveMii

Hello.. I've been trying to create a simple postfix calculator.. Can anyone please tell me how I can input a char in assembly? i tried using char as a data type but i found out that there's no such thing as char in assembly.. Please help me.. thanks!

Member Avatar for loveMii
0
6K
Member Avatar for axxxpua

Hey, I am creating a website with two forms which contain checkboxes and displays and sends the values input by the user to display on the page as well as save onto a database. The languages I'm using are xhtml, php and sql. The problem for me is that only …

Member Avatar for axxxpua
0
186
Member Avatar for dan_code_guru

I tried to use the code on MSDN to create Rawinput but i kept getting this error: RAWINPUTDEVICE was not declared in this scope. I am writing in c++ and direct x and i am using Code Blocks [ICODE] void RawInput(void) { RAWINPUTDEVICE Rid[2]; //keyboard Rid[0] .usUsagePage = 1; Rid[0] …

Member Avatar for sfuo
0
246
Member Avatar for calebcook

Hi. I have a system where a user fills out some information. There can be multiple answers, so I've made a script that adds a new text box if you click a button. My problem is, I don't know how to process it in PHP. The script will create a …

Member Avatar for cereal
0
167
Member Avatar for JoshuaBurleson

I was just wondering if anybody has any ideas on how I could allow a users input to be disguised on the screen when they're entering their passwords (such as the case about everywhere on the internet) i.e. gmail's black dots in place of the actual text of a password. …

Member Avatar for Gribouillis
0
244
Member Avatar for RoqueyB

i am new to python and am working on a simple code for a project. I am to end up with and output that says: "Please enter your name: Bubba" I am to use [CODE]name = input("Please enter your name:")[/CODE] However, when I input the name "Bubba" the project says …

Member Avatar for RoqueyB
0
2K
Member Avatar for chiiqui

Can anyone help me with this? or alter the code of mine when it comes to the user Input here's the block of code of mine [CODE]public int Remove(int i, Briefcase c[], String[] m) { int nChoice = 0; System.out.print("\tPlease remove " + i + " cases: "); nChoice = …

Member Avatar for chiiqui
0
3K
Member Avatar for jiraiya

Hi all, I'm trying read in the contents of a series of text files located in a folder in the same directory as a jar file. I've been trying to work out how to do this for a while now, but to no success, so any pointers as to where …

Member Avatar for JamesCherrill
0
15K
Member Avatar for JoshuaBurleson
Member Avatar for JoshuaBurleson
0
222
Member Avatar for kayoh

Hey guys, Just as the title says, I want to implement using an excel spreadsheet as an argument for a python script. I already have the layout of the spreadsheet, but I want to be able to assign the variables in my python script from specific cells of the spreadsheet. …

Member Avatar for Gribouillis
0
1K
Member Avatar for mridontknow

[CODE]#include <iostream> #include <algorithm> #include <vector> #include <string> #include <ctime> #include <cstdlib> using namespace std; vector<string> function1(vector<string>v) { for(int i=0;i<4;i++) {cin>>v[i];} return v; } int main () {vector<string>v; vector<string>guess; vector<string>guess=function1(vector<string>v); cout<<"size:"<<guess.size()<<endl; cout<<"contents:"; for (int i=0; i<guess.size(); i++) {cout<<guess[i]<<"";} cout<<endl; return 0; }[/CODE] i need to build vector<string>guess(4) in function function1 …

Member Avatar for sfuo
0
128
Member Avatar for fadeterra

I searched in this forum, but it didnt help my solve my problem. Please help me. This is my code [I]int intOrderNo = (int) Session["sOrderNo"]; DetailsViewRow row0 = DetailsView1.Rows[0]; string strProductId = row0.Cells[1].Text; DetailsViewRow row6 = DetailsView1.Rows[6]; string strUnitPrice = row6.Cells[1].Text; float floUnitPrice = float.(strUnitPrice); string strQty = DropDownList1.Items[DropDownList1.SelectedIndex].ToString(); int …

Member Avatar for fadeterra
0
327
Member Avatar for vishal1949

I am trying to make a program in which the user is prompted to input a number(max length of 4 digits), and then the program shall produce the number of outcomes of a two dice roll meaning that 1 roll includes two die. The outcomes could be 2-12 and I …

Member Avatar for ddanbe
0
1K

The End.