HomeHome  SearchSearch  RegisterRegister  Log in  

Share | 
 

 AVERAGE FINDER

View previous topic View next topic Go down 
AuthorMessage
Anupam (Administrator)
Admin
avatar

Posts : 117
Join date : 2012-02-25

PostSubject: AVERAGE FINDER   Tue Sep 25, 2012 11:34 am

Quote :
#include <fstream.h>

void main () {

ifstream f1;
ofstream f2;
f1.open("scores.96");
f2.open("final.96");

int s1, s2, s3;
float w1, w2, w3;

f1 >> s1 >> w1;
f1 >> s2 >> w2;
f1 >> s3 >> w3;
f2 << (s1*w1+s2*w2+s3*w3);

}
Back to top Go down
View user profile http://milanstopper.fullboards.com
 
AVERAGE FINDER
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Opponent finder
» Roughly Calculated Average Age of CEF Members.
» AngMohKia's Trail Finder 2
» The Building of Trail Finder 2 - Zax13's TF2
» Badass Craigslist parts finder

Permissions in this forum:You cannot reply to topics in this forum
 :: PUBLIC :: C++ TUTORIALS-
Jump to: