RMOL Logo Get Revenue Management Optimisation Library at SourceForge.net. Fast, secure and Free Open Source software downloads

read_it_file.cpp

Go to the documentation of this file.
00001 #include <itpp/itcomm.h>
00002 
00003 using namespace itpp;
00004 
00005 int main()
00006 {
00007   // Declare the it_file class
00008   it_file ff;
00009 
00010   // Open the file "it_file_test.it" for reading
00011   ff.open("it_file_test.it");
00012 
00013   // Read the variable a from the file. Put result in vector a.
00014   vec a;        
00015   ff >> Name("a") >> a;
00016 
00017   // Print the result
00018   std::cout << "a = " << a << std::endl;
00019 
00020   // Exit the program
00021   return 0;
00022 }
SourceForge Logo

Generated on Fri Jul 30 21:53:39 2010 for RMOL by Doxygen 1.6.1