576 Topics
|
|
#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 … |
|
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 … |
|
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") |
|
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 = … |
|
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 ( മലയാളഠà´à´¨àµà´¨à´¾ … |
|
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 = … |
|
[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 … |
|
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? |
|
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"]; … |
|
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; … |
|
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... |
|
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 … |
|
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 = … |
|
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 … |
|
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. … |
|
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 … |
|
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 |
|
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: … |
|
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 … |
|
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(); … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 |
|
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." … |
|
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) … |
|
[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 … |
|
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 … |
The End.