adding colums to text
- From: "Bill Cunningham" <nospam@xxxxxxxxx>
- Date: Sat, 28 Jun 2008 19:34:45 GMT
I have a row of values like such, placed in a text file by fprintf.
10.50
10.25
10.00
10.75
11.00
What I want to do to the above colum is add a new column right beside it
which is a total of these values and then average them in another column.
For example.
11.00 52.50
In another column is the average of the 5.
11.00 52.50 10.50
I am assuming that fprintf is going to have to be used and maybe freopen.
Bill
.
- Follow-Ups:
- Re: adding colums to text
- From: Keith Thompson
- Re: adding colums to text
- From: pete
- Re: adding colums to text
- From: Keith Thompson
- Re: adding colums to text
- From: santosh
- Re: adding colums to text
- Prev by Date: Stats for comp.lang.c (last 7 days)
- Next by Date: Global variables.
- Previous by thread: C newbie problem
- Next by thread: Re: adding colums to text
- Index(es):