This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When you build on the Visual Studio command line, you must build the program in two steps. | |
First, run cl /c /EHsc MyLib.cpp to compile the code and create an object file that's named MyLib.obj. | |
(The cl command invokes the compiler, Cl.exe, and the /c option specifies compile without linking. For more information, see /c (Compile Without Linking).) | |
Second, run lib MathFuncsLib.obj to link the code and create the static library MathFuncsLib.lib. | |
(The lib command invokes the Library Manager, Lib.exe. For more information, see LIB Reference.) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
// THIS CODE DOES NOT COMPILE, ITS PSEUDOCODE IN C'ish style | |
1- Calculate the Sum of Forces for an object | |
2- Acceleration is proportional to the sum of forces | |
3- Calculate Velocity | |
4- Calculate Position | |
*/ | |
v2 Acceleration = {}; | |
v2 Velocity = {}; |