Forum: Legacy and Other Languages Oct 15th, 2005 |
| Replies: 2 Views: 3,068 I know this thread has gotten some view but no replies....does someone suggest I post this elsewhere so I can possibly get some help? |
Forum: Legacy and Other Languages Oct 14th, 2005 |
| Replies: 2 Views: 3,068 I was told awk is great for working with columns of data. From what I have seen it's pretty cool, but I haven't found a good site that shows useful (to me) commands. What I'm looking for are the... |
Forum: C++ Aug 28th, 2005 |
| Replies: 12 Views: 3,931 I know essentially no nothing about writing scripts, I was led to believe I could write a script in c++ (the only language I know). All I need to do is execute the fortran program, nothing more than... |
Forum: C++ Aug 28th, 2005 |
| Replies: 12 Views: 3,931 What will that do?
The program I am running is a Fortran program. What is does is run a simulation. I have a code that outputs a file for the fortran program, and when it has that program I... |
Forum: C++ Aug 28th, 2005 |
| Replies: 12 Views: 3,931 My problem is to have the program execute pretty much indefinitely while I'm away. Pretty much...
Random number--->move file--->run program--->repeat |
Forum: C++ Aug 28th, 2005 |
| Replies: 12 Views: 3,931 I have a random number generator which outputs a file that my program uses. I want to be able to write something so that I don't have to manually execute the random number generator and then... |
Forum: C++ Aug 28th, 2005 |
| Replies: 12 Views: 3,931 Hello,
I need to write a script for a program I am running and I have never written on. I don't even know what commands scripts use, or what they even look like. Does anyone know any tutorials... |
Forum: C Aug 18th, 2005 |
| Replies: 9 Views: 2,131 Awesome, I want to thank you again for all your help, I learned a whole lot from it. I have never used anything we had gone through in this post. Have a great day! |
Forum: C Aug 18th, 2005 |
| Replies: 9 Views: 2,131 The only differences I see between what you have and I have are the F in your defining your float, and the endl; at the end. From what I read endl; ends the line and flushes the stream. I flushed... |
Forum: C Aug 17th, 2005 |
| Replies: 9 Views: 2,131 I tried changing the precision, but what happens is if the random number is greater than nine, it alters the number of decimal places. So if it's set for 2 and the number is 10.XXXX it only prints... |
Forum: C Aug 17th, 2005 |
| Replies: 9 Views: 2,131 I figured out the E problem, I'm still working on the decimal problem. |
Forum: C Aug 17th, 2005 |
| Replies: 9 Views: 2,131 Thanks for your reply, I changed my code with your suggestion and at first I thought it was working the way I wanted, but it didn't. The first value that was written out seems fine, the second value... |
Forum: C Aug 17th, 2005 |
| Replies: 9 Views: 2,131 Hello, I'm almost done with my program however I'm having trouble getting what I want printed to a file. I'm familiar with the printf function and what I want is to print out to the file in... |
Forum: C Aug 12th, 2005 |
| Replies: 6 Views: 3,090 Can someone tell me why am I only getting the tenth entry to print out. Thanks.
#include <fstream>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#define MINMASS (0.0000515053396)... |
Forum: C Aug 12th, 2005 |
| Replies: 6 Views: 3,090 |
Forum: C Aug 12th, 2005 |
| Replies: 6 Views: 3,090 I looked at the tutorial and I modified the code a bit but I can't get it to print out my random numbers. I know what I'm doing is probably sill, but I can't figure how to print out what I want. ... |
Forum: C Aug 11th, 2005 |
| Replies: 6 Views: 3,090 Hello I'm trying to test out a random number generator to see how the distribution is and I want to write the values I get from the number generator to a file. Can someone show me in a simple code... |
Forum: C++ Aug 7th, 2005 |
| Replies: 1 Views: 1,730 I've been working on this code which generates random numbers, however I need it to generate random numbers between 5.15053396E-5 and 0.013365. Is there a way to define rand() to only generate... |
Forum: C Aug 4th, 2005 |
| Replies: 6 Views: 1,285 Thank you so much, now I can continue modifying the code. I really appreciate your willingness to help me out. |
Forum: C Aug 4th, 2005 |
| Replies: 6 Views: 1,285 The thing is that I need the format that it's in, I can't really move things around. The ouput is going to be used by another program and that's the format it expects. |
Forum: C Aug 4th, 2005 |
| Replies: 6 Views: 1,285 I'm still pretty new at c++, that's what I was thinking but I don't know how to fix the problem. Thanks |
Forum: C Aug 4th, 2005 |
| Replies: 6 Views: 1,285 Hello,
I've been working on this random number generator code and got it to work using integer outputs, however I need scientific notation. I read on a site that I can use %E for... |
Forum: C++ Jul 27th, 2005 |
| Replies: 3 Views: 2,714 I guess what I'm asking is I'm not sure how to have a random number generator that places the values it comes up with in the places where the bold letters are in my previous message. From the random... |
Forum: C++ Jul 27th, 2005 |
| Replies: 3 Views: 2,714 Hello all,
I haven't used c++ for years and now I need it for school. I am running a fortran 77 code and I wanted to know if it is possible to write a program in c++ (That's the only language I... |