It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
#define test( v1, op, v2 ) if( v1 op v2 ) printf( #v1 " " #op " " #v2 "\n" )
#include
#include
int main( )
{
volatile double a, b, c;
char buf[ 50 ];
a = 13.06;
b = 0.54;
sprintf( buf, "%lf", a + b );
c = atof( buf );
printf( "a = %lf, b = %lf, c = %lf\n", a, b, c );
test( c, >, 13.60 );
test( c, ==, 13.60 );
test( c, <, 13.60 );
test( a + b, >, 13.60 );
test( a + b, ==, 13.60 );
test( a + b, <, 13.60 );
return 0;
}
a = 13.060000, b = 0.540000, c = 13.600000
c == 13.60
a + b > 13.60
#define test( v1, op, v2 ) if( v1 op v2 ) printf( #v1 " " #op " " #v2 "\n" )
#include
#include
int main( )
{
volatile double a, b, c;
char buf[ 50 ];
a = 13.06;
b = 0.54;
sprintf( buf, "%lf", a + b );
c = atof( buf );
printf( "a = %lf, b = %lf, c = %lf\n", a, b, c );
test( c, >, 13.60 );
test( c, ==, 13.60 );
test( c, <, 13.60 );
test( a + b, >, 13.60 );
test( a + b, ==, 13.60 );
test( a + b, <, 13.60 );
return 0;
}
a = 13.060000, b = 0.540000, c = 13.600000
c == 13.60
a + b > 13.60
...
while( true )
{
... original code here ...
char ch;
cout << "Again or Quit? [aq]";
cin >> ch;
if( ch == 'Q' || ch == 'q' )
break;
}
...
#include
#include
using namespace std;
void main()
{
double bal; // card balance
double r; // interest rate
double mc; // monthly charge
double mp; // monthly payment
double fc; // finance charge
double lp; // last payment
double negbal = 1.0; // to be used when bal is <= 0
int month = 0; // month counter
bool hasHeader = false; // I used this variable so that I would not display the column titles in the case that the card cannot be paid off
cout.precision(2);
cout.setf(ios_base::fixed);
cout << "Initial balance? ";
cin >> bal;
cout << "Interest rate?\t "; // asking for a % APR
cin >> r;
cout << "Monthly charge?\t ";
cin >> mc;
cout << "Monthly payment? ";
cin >> mp;
r = r / 12 / 100; // convert APR to MPR
double orbal = bal; // orbal will later represent the original balance, to test whether balance increases over time (and thus cannot be paid off)
do
{
month++;
fc = bal*r;
bal = (fc + mc + bal) - mp;
if(orbal < bal)
{
cout << endl << "Card cannot be paid off." << endl;
bal = 0.0;
}
else
{
if (hasHeader == false)
{
cout << endl << "Month " << "F/C " << "Balance" << endl;
hasHeader = true;
}
if(bal <= 0)
{
negbal = bal;
bal = 0.0;
}
cout << setw(3) << month << setw(10) << fc << setw(12) << bal << endl;
if (bal <= 0) // loop to determine last payment
{
lp = mp + negbal;
cout << endl << "Your last payment was " << lp << endl;
}
}
}
while(bal > 0);
system("Pause");
}