Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

Click here
Click here
MAFI_728x90
University of Maryland Masters of Economics Leaderboard
MAFI_728x90
NYU Tandon School of Engineering Leaderboard
Brandeis University Master of Finance Leaderboard 728x90
University of Maryland Masters of Economics  Leaderboard
Click here
University of California Irvine Leaderboard
University of California Irvine Leaderboard
RPI Leaderboard
  • Business
  • Culture
    • Beer Guide
    • Cheese Guide
    • Cigar Guide
    • Coffee Guide
    • Wine Guide
  • Technology
  • International Rankings
    • Bangladesh
    • Canada
    • Egypt
    • India
    • Nigeria
    • Pakistan
    • Philippines
    • United Kingdom
    • United States of America
  • Masters Rankings
    • Accounting
    • Business Analytics
    • Chiropractic
    • Computer Engineering
    • Computer Science
    • Economics
    • Education
    • Finance
    • Financial Economics
    • Financial Engineering
    • Law
    • Management
    • Marketing
    • MBA
    • Nursing
    • Social Work
  • Resources
    • C++
      • Beginner’s Guide to C++
      • An Introduction to the Imperative Part of C++
      • C++ Code
        • Sorts
        • Binary Search Trees
        • Strings
        • Binary Search
        • Math
        • Quant
        • Puzzles/Games
        • Language Concepts
        • Graphics
        • OS Operations
        • Graphs
      • C++ Full Course
      • C++ Crash Course
      • C++ Interview Questions
      • C++ Q/A
      • C++ Books
      • C++ Free Books
      • C++ Videos
    • C Questions
    • C Programming Tips
    • Java Questions
    • Quant Data Sources
    • Quant Questions
  • WSET
    • WSET Level 1 Beer
    • WSET Level 2 Beer
    • WSET Level 1 Sake
    • WSET Level 2 Sake
    • WSET Level 3 Sake
    • WSET Level 1 Spirits
    • WSET Level 2 Spirits
    • WSET Level 3 Spirits
    • WSET Level 1 Wine
    • WSET Level 2 Wine
    • WSET Level 3 Wine
    • WSET Level 4 Wine

Category: C++

C++: Greatest Common Denominator

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, common, denominator, greatest
C++: Greatest Common Denominator

int Find_Greatest_Common_Denominator(int x, int y) //Function that finds the Greatest Common Denominator ("GCD") between 2 integers { int a;

Continue Reading

C++: Multiplicative Digital Root

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, digital, Math, multiplicative, Root

The multiplicative digital root (MDR) and multiplicative persistence (MP) of a number, n, is calculated rather like the Digital root except digits are

Continue Reading

C++: Black Scholes Put Option Theta

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged black, c, option, put, scholes, theta
C++: Black Scholes Put Option Theta

// Calculate the Black Scholes European put option Theta double BS_Put_Option_Theta(double S, double K, double r, double v, double T) // Parame

Continue Reading

Why Is Subtracting These Two Times (In 1927) Giving a Strange Result?

Posted on September 1, 2017November 7, 2026 by TFE Times
Posted in C++Tagged 1927, a, giving, in, is, result, strange, strnge, subtracting, subtrctg, these, Times, two, why
Why Is Subtracting These Two Times (In 1927) Giving a Strange Result?

If I run the following program, which parses two date strings referencing times one second apart and compares them: public static void main(String[]

Continue Reading

C++: Sample Covariance

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, covariance, sample
C++: Sample Covariance

double sample_covariance(double A[], double B[], int length) // Function calculates the sample covariance the array A and array B, whose lengths

Continue Reading

C++: Calculate Geometric Mean

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, calculate, geometric, mean
C++: Calculate Geometric Mean

void Geometric_Mean_Array(double & mean_normal, const double * a, const int n) //Function that calculates the geometric mean (geometric avera

Continue Reading

C++: Create a File

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged a, c, create, crete, file
C++: Create a File

In this task, the job is to create a new empty file called "output.txt" of size 0 bytes and an empty directory called "docs". This should be done twic

Continue Reading

C++: Look-and-Say Sequence

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, john conway, look and say, lookandsay, sequence
C++: Look-and-Say Sequence

The Look and say sequence is a recursively defined sequence of numbers studied most notably by John Conway. Sequence Definition Take a decimal

Continue Reading

C++: Hamming Numbers

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, hamming, hamming numbers, number, numerical, s
C++: Hamming Numbers

Hamming numbers are numbers of the form . Hamming numbers are also known as ugly numbers and also 5-smooth numbers   (numbers whose prime div

Continue Reading

C++: Multiple Inheritance

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, inheritance, multiple, multiple inheritance
C++: Multiple Inheritance

Multiple inheritance allows to specify that one class is a subclass of several other classes. Some languages allow multiple inheritance for arbitrary

Continue Reading

Posts navigation

Older posts
Newer posts
University of California Berkeley Master of Financial Engineering MFE Sideboard
Click here
Brandeis Business School
output_8BgzjE
University of Maryland Masters of Economics Sideboard
University of California Irvine Leaderboard
University of Maryland Masters of Economics Sideboard
NYU Tandon School of Engineering Sideboard
  • Global Senior Populations

    November 20, 2026November 6, 2026 by TFE Times
  • Thanksgiving Air Travel

    November 20, 2026November 6, 2026 by TFE Times
  • Portafilter, tamper, scale, gooseneck kettle, paper filters and cupping spoon arranged on a terracotta workbench.

    Common Coffee Terms Explained: A Beginner’s Glossary

    November 20, 2026October 24, 2026 by TFE Times
  • Conceptual close-up of a snowboard's dark base and steel edge contacting a small raised ripple of snow in warm side light.

    Why Snowboarders Catch an Edge—and How to Reduce the Risk

    November 19, 2026October 26, 2026 by TFE Times
  • Wide landscape showing a shadowed glass office tower at left, an oil pumpjack in the center, and a drilling rig at right above a cutaway of a curved horizontal well and branching fractures in layered rock.

    History of EOG Resources

    November 19, 2026September 19, 2026 by TFE Times
  • Best Restaurants in Los Angeles: 15 Standout Places to Eat — illustrative editorial food collage

    Best Restaurants in Los Angeles: 15 Standout Places to Eat

    November 19, 2026October 17, 2026 by TFE Times
  • Two helmeted skiers pausing to assess an open groomed slope before descending.

    How to Ski Steeper Slopes Without Losing Control

    November 19, 2026October 25, 2026 by TFE Times
  • What a Child Custody Lawyer Reviews Before a Parenting Hearing

    November 19, 2026 by TFE Times
  • King Billy Casino Australia: 5,000 Games, A$2,500 Bonus and Crypto Banking

    November 19, 2026 by TFE Times
  • Illustrated history cover for the Tennessee Titans

    History of the Tennessee Titans: From the Houston Oilers to Nashville and the Titans’ Championship Pursuit

    November 19, 2026October 17, 2026 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes