Need help with simple code for calculating interest...not compound....yet. Can not figure out what code is needed to change the -double percent- to a -decimal-.
Giving me a error:
------ Build started: Project: Practice_Work, Configuration: Debug Win32 ------
Practice_Work.cpp(24): error C2440: '=' : cannot convert from 'System:ecimal' to 'double'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Here is the Code i have written so far:
// Practice_Work.cpp : main project file.
// calculating intrest over one fixed period
using namespace System;
using namespace std;
The first thing I can tell from looking at your code is that it's C++/CLI rather than "just" C++. So you should rather post your question in the Managed C++ and C++/CLI forum (unless a moderator is faster and moves the entire thread over there).
And when you do so, please use code tags which will significatly improve the readability of your code.
See you over there...
Ah, and... welcome to CodeGuru!
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.