576 Topics

Member Avatar for
Member Avatar for tentrabyte

#include<iostream> #include<cstdlib> using namespace std; int main() { srand(21); cout << "Unique numbers:"; for (int x = 1; x < 10; x++){ cout << 1 + ( rand () % 20) <<endl; } system("pause>0"); return 0; } Guys this is my program. Can i ask if how can i vertical …

Member Avatar for mridul.ahuja
0
195
Member Avatar for AllanSS

I have news pages generated dynamically using page news.php taking data that is input into a MySql table and would like to have the page title to be the same as the news headline of each page. I'm searching internet and although there is lots of info on this subject …

Member Avatar for diafol
0
2K
Member Avatar for Bashar_1

hi all this code give me input box i want to make the Characters like this ******* Dim x As String x = InputBox("inter password") If x = Label1.Text Then Me.Hide() frm_chose.Show() Exit Sub End If MsgBox("try again")

Member Avatar for mridul.ahuja
0
867
Member Avatar for cabosun

I am having trouble figuring out how to read input from the keyboard and inserting that into a LinkedList. Any help or suggestions would be greatly appreciated. import java.util.*; import java.util.Scanner; import java.io.*; public class listlist{ public static void main(String [] args){ LinkedList ll = new LinkedList(); Scanner in = …

Member Avatar for stultuske
0
7K
Member Avatar for annya

Iam facing a problem, Google input tools fonts are not rendering in my website. iam creating a website which support multi language to type. I have typed in malayalam and the font are showing correctly while trying and in the preview page it was showing like this ( മലയാളഠà´à´¨àµà´¨à´¾ …

Member Avatar for annya
0
404
Member Avatar for Varunkrishna

How do I display the individual integers from the scanner input stream for example if the user enters 500 I would like to display it as 5, 0, 0. Here is the code guys import java.util.Scanner; public class Digit { public static void main(String[] args) { int number, i = …

Member Avatar for Varunkrishna
0
1K
Member Avatar for nightcrew

[QUOTE]Assume you have a int variable n that has already been declared and initialized. Its value is the number of integers that need to be read in from standard input and printed out in sorted (ascending) order, each on a line by itself. Furthermore, there are no duplicates in the …

Member Avatar for omgerg
0
3K
Member Avatar for Cup of Squirrel

I've skimmed the manual and cant find the answer to this anywhere: In basic, to add an Input function you would do (for example): [CODE] Input "What is your name? " name$ [/CODE] How do I do this in Python?

Member Avatar for Jason_15
1
17K
Member Avatar for socialmd

This is the report.php view [CODE] if(isset($_POST["addReport"])) { $report = new Report(); $report->employee_id = $_POST["employee_id"]; $report->date = $_POST["date"]; $report->job_id = $_POST["job_id"]; $report->description = $_POST["description"]; $report->attachment = file_get_contents($_FILES['attachment']['tmp_name']); for($i = 0; $i < count($_POST['date_range']); $i++) { $report->request_date[$i] = $_POST["request_date"]; } for($i = 0; $i < count($_POST['date_range']); $i++) { $report->quantity[$i] = $_POST["quantity"]; …

Member Avatar for Ashvin_1
0
5K
Member Avatar for sushmaja.arumalla.9

I have a problem with the file upload control in MVC. My DOM element looks like @Html.TextBoxFor(m => m.logo, new { id = "logoUpload", type = "file", @accept = "image/*", @onchange = "showpreview(this);" }) onChange event looks like function showpreview(input) { if (input.files && input.files[0]) { var logo = $('#logoUpload')[0].value; …

0
133
Member Avatar for Stefce

Hello is there a way of checking the input field have a value but with out clicking a button, for ex. if i write any letter inside the field to give me result for example `hello` or something else...

Member Avatar for diafol
0
254
Member Avatar for chukka32

I trying to build a web app using html5 which has a user profile page and I am having an issue with input type="file" when testing it on an Android browser. When selected it gives me the option to open camera or gallery, when an file is selected, it populates …

Member Avatar for chukka32
0
302
Member Avatar for godzab

Hello all, I am trying to take input from user using scanner. The problem is, when the loop starts, it skips taking input for the first iteration. Here is the code: import java.util.Scanner; public class TrigTriangles{ public static void main(String[] args){ int N; double a,b,c; double A,B,C; Scanner s = …

Member Avatar for noobz32
0
203
Member Avatar for markdean1989

I wonder why this program does not do any changes to the text file that I am trying to modify. Scenario: My program uses the Fstream header file, I declared infile as IFSTREAM and outfile as OFSTREAM. I simply want to transfer data from infile to outfile. The data is …

Member Avatar for markdean1989
0
516
Member Avatar for leghorn

Hi I need to create a desktop application for a small scale firm.Its more of an inventory managemnt sort of app. I need to keep a tab on various parameters-some arithematic,others strings. I need to input these values in and retrieve the information - at that time, or months later. …

Member Avatar for sbesch
0
283
Member Avatar for nadiam

hi. i have a page that submits data without refreshing and it does work. but i m having trouble with arrays. as it is im submitting the form data using `$.post` . if i was working with just php id just do a for loop which i actually already have …

Member Avatar for AleMonteiro
0
341
Member Avatar for shashikumar s g

hi all i am trying to allow the user to select the folder to store the downloading file using javascript i didnt found input attribute for download like file i try with downloadify.js but its not work their is another way i can do it

Member Avatar for almostbob
0
173
Member Avatar for OFCLMAINrogieacuna

Hello! Badly need help. I need to do a program that will produce odd & even numbers using loop structure Sample output: Enter a number: 5 This number is an odd number! Input 1 to run the program again Input 2 to stop Enter your Choice: 1 Enter a number: …

Member Avatar for Varunkrishna
0
347
Member Avatar for borchu

Hi, I am trying to find 2nd largest number that given input of numbers. The question is actually consider that you enter 5 number : 60, 70, 30, 40, 55 randomly -the order does not matter- my function should find 2nd largest number and return it. I am trying but …

Member Avatar for Magnificant
0
3K
Member Avatar for nadiam

Hi, so i have an input text `<input type="text" name="numguest" id="number-of-guests">` and a button `Okay`. When a number say, 4 is entered into that text box and clicked okay, 4 of this text box `<input type="text" name="guest-name[]" placeholder="Guest Name" id="text-gname">` will appear. i tried: $("#okay").on("click", function(){ var num_of_guests = $("#number-of-guests").val(); …

Member Avatar for dany4ev_1
0
363
Member Avatar for Somnath_1

I am trying to get two input from a file . #!/bin/bash echo "enter clientname" read clientname echo print|nsradmin -s $clientname -p390113|egrep 'NetWorker version|IP address'>> output_$clientname the content of the file would be : $ cat test_new1 NetWorker version: 7.6.3.2.Build.860; IP address: xxx.xxx.xxx.xx; I want to grab "IP address:" to …

Member Avatar for chriswelborn
0
206
Member Avatar for stepan.adrian

Hi, I've been trying for days now to figure out a way to open a local file in WebBrowser, in an Input File, without using a file dialog. I want to be able to submit a filename stored in a variable to the <input type='file'> without triggering a dialog box …

Member Avatar for Mr.M
0
210
Member Avatar for nathan.pavlovsky

Hellp programmers! I am working on a program that uses two objects of a custom class template List [which is a linked list, with each item pointing to the next] and concatenates them. Initially, I need to input numbers into my main function, so I have two sets of while …

Member Avatar for nathan.pavlovsky
0
4K
Member Avatar for titas.datta

I am using the inkEdit Control provided with Microsoft Tablet PC SDK to take digital ink input from the user. The inkEdit control takes the data input, clears the textbox and writes the output (either recognized or in ink mode) in the same window. Is there any way to write …

Member Avatar for Boateng Appiah
0
165
Member Avatar for ultmt.punisher

I have a `input type file` named `datafile` and I want to show file name into a span when file is loaded into `input:file` I have tried to echo `$_FILES['datafile']['tmp_name']` but it output this `E:\xampp\tmp\phpFE1E.tmp` not the real file name. suppose I have file `data.txt` so I want to show …

Member Avatar for cereal
0
221
Member Avatar for thunder234

How do i rectify the error i get from yum whenever i input the code sudo yum update yum i get a series of error messages. I ampresently using the fedora 9 version which i love so much

Member Avatar for zzmrzz
0
319
Member Avatar for nadiam

Hi. i got table A(contact-names) which is where name are populated to from db and table B(guest-names) where names from table A will be appended to. this is the js i came up with to append the names: var msg2 = '<tr class="tr"><td><input type="text" name="GName" class="input-name" placeholder="Doubleclick on a name." …

Member Avatar for nadiam
0
487
Member Avatar for rzzque

I want to Delete every occurrences of Pattern in String. But What's the problem? Please help with the following C Code. #include<stdio.h> #include<string.h> #include<stdlib.h> char* SUBSTRING(char *STRING,int POSITION,int LENGTH); main() { char STRING[100],PATTERN[90]; int X,P; printf("(Input)Enter string & pattern with space between them: "); scanf("%s%s",STRING,PATTERN); X=INDEX(STRING,PATTERN); P=strlen(PATTERN); printf("Output: %d\n",X); while(X!=0) …

Member Avatar for David W
0
301
Member Avatar for sandhya1202

[QUOTE]I would like to search for more than one word in a text file and if the word found i would like to save it to a group in which i have files belonging to English,Entertainment etc.The thing is Im unable to search for more than one string in a …

Member Avatar for Vikram Kolla
0
330
Member Avatar for mbowenitj

Hi guys, I've created a login form which works fine, i need assistance in comparing uppercase and lowercase input from a login form. Whenever the password is entered, the system has to compare uppercase and lowercase characters stored in the data..following is my code: 'Logic for login... Dim conn As …

Member Avatar for mbowenitj
0
2K

The End.