User Tools

Site Tools


viennastar_conversion_tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
viennastar_conversion_tools [2015/03/23 15:34]
viennastar
viennastar_conversion_tools [2015/03/23 15:36]
viennastar
Line 27: Line 27:
 is an arithmetic expression with 2 variables called "​probability"​ and "​value"​ is an arithmetic expression with 2 variables called "​probability"​ and "​value"​
  
-Treat every line in the file as a new expression ​that is to be evaluated ​and prompt the user to input a value for each variable that is found (if any), then print the result to the console.+Treat every line in the file as a new expression and prompt the user to input a value for each variable that is found (if any), then print the result to the console.
  
 For example, an input file named expressions.txt containing two lines: For example, an input file named expressions.txt containing two lines:
Line 36: Line 36:
  
 Should generate something like the following output: Should generate something like the following output:
 +
 +----
  
 $ yourprogram expressions.txt $ yourprogram expressions.txt
Line 46: Line 48:
 > 2 > 2
 result of line 2: 2.5 result of line 2: 2.5
 +
 +----
  
 The goal is to make your code as robust and elegant as you can. The goal is to make your code as robust and elegant as you can.
  
 Feel free to use C++11 language features (the actual project will have to be implemented without the help of the C++11 standard, the Vienna* infrastructure offers many similar features however). Feel free to use C++11 language features (the actual project will have to be implemented without the help of the C++11 standard, the Vienna* infrastructure offers many similar features however).
viennastar_conversion_tools.txt ยท Last modified: 2015/03/23 15:36 by viennastar