Aug 27, 2013 at 3:57pm UTC
Which other formula do you want to include? You can might as well add another function like your CurrentRatio.
Aug 27, 2013 at 4:01pm UTC
For this formula,
Gross margin = (Revenue – Cost of goods sold) / Revenue
Aug 28, 2013 at 12:37am UTC
Went I include the function, got error... The second function need include in the
functions.cpp part rite??
Aug 28, 2013 at 2:58am UTC
Please show your entire implementation. What error do you get?
Aug 28, 2013 at 12:06pm UTC
When you get an error, please post the exact text of the error.
line 19 - GetGrossMargin() is not in your class declaration.
Lines 20, 21 - revenue and cogs are not members of your class.
Aug 28, 2013 at 12:17pm UTC
||=== EntryPoint, Debug ===|
EntryPoint\main.cpp |line 2|functions.h: No such file or directory|
EntryPoint\main.cpp||In function `int main()':|
EntryPoint\main.cpp |line 6|error: `finance_state' was not declared in this scope|
EntryPoint\main.cpp |line 6|error: expected `;' before "MyState"|
EntryPoint\main.cpp |line 7|error: `MyState' was not declared in this scope|
EntryPoint\main.cpp |line 6|warning: unused variable 'finance_state'|
EntryPoint\main.cpp |line 7|warning: unused variable 'MyState'|
||=== Build finished: 4 errors, 2 warnings ===|
Aug 28, 2013 at 12:28pm UTC
It's working. Thank you so much. Really appreciate your help. Thanks again... :)
Aug 28, 2013 at 12:35pm UTC
A small doubt, if I want to use IF...ELSE statement. How to use inside the program?
Last edited on
Aug 28, 2013 at 12:37pm UTC