Re: Writing a .txt file
- From: "Arnie" <NoOne@xxxxxxxx>
- Date: Tue, 1 Apr 2008 11:01:48 -0400
What you can do is redirect stdout so that your program's output is
written
to a file. For that, invoke your program like this:
yourprogram.exe > output.txt
Do you mean I have to invoke my program in the console?
No. That's just one way of doing it.
my goal ist not to write the array in the file only
the j and S value for every count of the loop.
Second thing here is the fact that you are using C++ but passing arrays as
pointer/size combo. You should have used a std::vector instead. Further,
it
isn't even done correctly, the size should use a size_t instead.
size_t??no idea what you are talking about.how would have my
array looked like with size_t? could you please give an example?
size_t is simply an unsigned int. It is 32 bits for a 32 bit compiler and
64 bits for a 64 bit compiler.
size_t mySize = myVector.size().
- Arnie
Thank you
Lucress
.
- References:
- Writing a .txt file
- From: Lucress Carol
- Re: Writing a .txt file
- From: Ulrich Eckhardt
- Re: Writing a .txt file
- From: Lucress Carol
- Writing a .txt file
- Prev by Date: Re: auto_ptr array
- Next by Date: Re: Writing a .txt file
- Previous by thread: Re: Writing a .txt file
- Next by thread: Re: Writing a .txt file
- Index(es):
Relevant Pages
|
Loading