log base c++
int intlog(double base, double x) {
return (int)(log(x) / log(base));
}
log base c++
int intlog(double base, double x) {
return (int)(log(x) / log(base));
}
log base e synthax c++
#include <math.h> /* log */
double param, result;
param = 10;
result = log (param);
printf ("log(%f) = %f\n", param, result );
how to make a login c++
// a simple login for c++ using while loops and io (input output)
#include <iostream>
#include <string>
using namespace std;
int main() {
cout << "please enter password";
string pass = "0"; // making a string for user input
cin >> pass; // could be replaced with getline(cin, pass);
while (pass = "1234") { // while loop for when password is wrong
cout << "incorrect, try again";
cin >> pass; // could be replaced with getline(cin, pass);
}
cout << "correct password"; // runs when the while loop is no longer happening
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us