576 Topics
|
|
I'm reading a big csv file into a data structure defined as such: [CODE]struct PriceInfo { double Open; double High; double Low; double Close; unsigned int Volume; unsigned int Time; std::string Date; };[/CODE] So somewhere in my main function, I have this line: // read contents of datafile by overloading … |
|
Earlier today I downloaded a game recording client from wegame.com and macromedia flash 8. After both were done my computer froze up so i had to reset. Everything seemed fine so i started working on macromedia. In the middle of me working on it the monitor turned black and said … |
|
I have a long stream of numbers that I need to be able to input all at once (basically copy and paste) into an array somehow. I need to do this so I can make every pair of those numbers to correspond to a letter. For example, I need to … |
|
i throw a string value from the database in an input box...when i click update button, i need to clear the textbox after clicking update button..how?thanks a lot... |
|
Hi, I am trying to read two strings per line and store them in strings so i can use them in my program.for example if this is my input file: [CODE]cat:yellow dog:blue chicken:red[/CODE] i wan to store cat as animal1 string dog as animal2 string and yellow as colour1 string … |
|
hi, i have this code [CODE]#include <fstream.h> #include<iostream> using namespace std; int main (char argc) { for(;;) { fstream file; file.open("file.txt"); cout << "Enter new high score." << endl; double n2; cin >> n2; double n1; file >> n1; if(n1 > n2) { cout << "You didn't beat the high … |
|
Okay the text on my input file is Wxmv_bpm_xwl_jig_lwwza,_PIT._Q'u_awzzg,_Lidm._Q'u_inziql_Q_kiv'b_lw_bpib. Here's My code but for some reason I can't get my program to convert the message to my output.txt file. Can someone please help thanks [CODE] #include <iostream> #include <fstream> #include <cstdlib> using namespace std; int main() { string str; int … |
|
hi, how would you get a certain part of code to run while the program is waiting for the input? [CODE]string in; int n1 = 0; n1++ // get this part of code to loop while the program is waiting for the input cin >> in[/CODE] thanks. |
|
Hey friends.Need a help from you again. I'm trying to study about streams and I wrote small code for get input from command line and print it in the screen,but It prints weird characters like Japanese :O . Can anyone explain what I did wrong... [CODE] import java.io.*; public class … |
|
Hi can anyone please help me with my homework assignment? I am not asking anyone to do this for me but I keep getting an error in declaring GetInput() inside Main. It says Error: No overload for method GetInput() takes 0 arguments and I can not figure out what I … |
|
I have the following template that I am using to upload files into AMAZON S3. I'll display the template right here: [CODE]<cftry> <!---ACCESS KEY ID = SECRET ACCESS ID = BUCKET NAME = cic-audio FILE NAME = amazon_s3_test.txt---> <cfparam name="URL.step" default="view"> <cfoutput> <cfif URL.step eq "view"> <cfscript> // IMPORTANT: Set … |
|
hi, i have this code: [CODE]#include <iostream> #include <fstream> #include<cstdio> #include<cstdlib> using namespace std; int main (char argc) { for(;;) { fstream myfile; myfile.open("example.txt"); cout << "1: Write" << endl; cout << "2: Read" << endl; int n1; cin >> n1; if(n1 == 1) { string n2; getline(cin,n2); myfile << … |
|
hi, i'm making a website for a company, with backoffice. when i want to add a new employee, i must specify the monthly fee and i created two inputs, one for the dollar part and the other for the cents parts. i wanted to concatenate the two parts with a … |
|
I have a jsp form with 3 buttons (New/View/Edit). On clicking New..it should open another jsp form with some input field. On clicking View..it should open the same jsp form with input field as readonly on clicking edit..it should open the same jsp form with input field pre-populated.. can i … |
|
Hey guys, I'm new to pygame, and working on a simple educational worm game project. The idea is to display a math problem every time the worm hits the apple, and then have the student answer that math question. I can't figure out a way to get the keyboard inputs … |
|
Hi! Does anybody know how to recursively read in files from a specific directory on the internet, in Java? I want to read in all the text files from this web directory: [url]http://www.cs.ucdavis.edu/~davidson/courses/170-S11/Female/[/url] I know how to read in multiple files that are in a folder on my computer, and … |
|
I've made a "more" button and whenever i click it, another upload input will be displayed. Problem is, once I add the <div>, then it stops working. Is there any way around this? [CODE] <html> <head> <script type="text/javascript"> var instance = 1; function newUpload() { instance++; var newInput = document.createElement("INPUT"); … |
|
Hi there. I'm trying to write a program that will establish a DB of names and Ids. The thing is i don't want to scan the entered data to a temporary variable and then put it into the file, but to scan the user's input directly to the file itself. … |
|
A part of one of the programs in my assignment requires to declare three arrays of same size which will be used in parallel to store gpa's, registration numbers and names of the students respectively. When I use a single loop to take input in all these three arrays then … |
|
the aim of this programme is to create a .txt file (of which the name is specified by the user) of all the items in a certain directory (also specified by the user) the problem is about half way down, the 'mydir' bit [CODE] #include <iostream> #include <fstream> #include <string> … |
|
Hi! On school we got exercise to calculate how much the length of substance grow when we know original length and temperature change. So,the case goes that i have value temperature coefficient of different substances and i have to multiply them. I'd like to it without doing several condition statements. … |
|
hi.. I have a form that needs 10 inputs from a user.. Now my problem is, once the user have input the 10 needed information, he/she cannot input another information and there will be a message stating that he/she cannot input the information because past information have inputed. What do … |
|
I have a program that runs a binary search tree and lists a menu of options. Two of the options are the only ones I can't seem to get to work which are saveToFile and buildFromFile. These methods include asking for a name to save as an output file (save) … |
|
Hi, DW complains of a syntax error that I cannot understand. I use the code as a standalone and it is not a problem, but when used as a table element as written below, it complains of a syntax error. The red highlight is where it complains, the green seems … |
|
Okay, so I have a rather easy problem that I can't seem to figure out. I'm getting cannot find symbol errors for T item=(T)input.next(); The program is a test file for a Binary Tree program. I was told the input 'item' has to be in T type. Obviously they have … |
|
Hi, I am attempting to read in a CSV file, modify certain arrays and output it into a new file. It works fine on a mac, however on Windows it does not do anything. Any ideas what im doing wrong? Code posted below; [CODE] open(FILE,"file.csv") or die $!; open(TARGET,"> newfile.csv") … |
|
How would I make an normal form input field go from editable (where someone can write text into it) to solid text (not editable) simply by clicking anywhere on the page away from the field And then.. ..the reverse. Clicking on the non-editable text would suddenly create a form field … |
|
One of the things that always irked me about C# is its lack of an InputBox function. In VB, You can simply do [CODE=VBNET]response = InputBox("Enter your name")[/CODE] Unfortunately, there is no C# equivalent. Sure, you can call the VB one, but doesn't that kind of defeat the purpose of … |
|
Hi I wrote a script for class that took one specific file as an input. Ideally, it should be able to take any file as an input. How do I do that? Someone suggested using $@ since is a global variable but I'm kinda confused on how to implement it. … |
|
Hello, I'm having difficulty getting my PHP code to read my HTML check-box code. Basically, when I submit my test form I get the following error message, Warning: Cannot modify header information - headers already sent by (output started at /home3/seguemin/public_html/feedback.php:83) in /home3/seguemin/public_html/feedback.php on line 110. I am very new … |
The End.