Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

MAFI_728x90
MAFI_728x90
University of California Irvine Leaderboard
RPI Leaderboard
NYU Tandon School of Engineering Leaderboard
Brandeis University Master of Finance Leaderboard 728x90
University of Maryland Masters of Economics Leaderboard
Click here
University of Maryland Masters of Economics  Leaderboard
University of California Irvine Leaderboard
Click here
Click here
  • Business
  • Culture
  • 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

Author: TFE Times

C++: Loop Breaks

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged break, c, loop, loops, s
C++: Loop Breaks

Show a loop which prints random numbers (each number newly generated each loop) from 0 to 19 (inclusive). If a number is 10, stop the loop after print

Continue Reading

C++: Magic Squares of Odd Order

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, magic square, odd, of, order, s
C++: Magic Squares of Odd Order

A magic square is an square matrix whose numbers (usually integers) consist of consecutive numbers arranged so that the sum of each row and column, a

Continue Reading

C++: Maze Generation

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, generation, maze
C++: Maze Generation

Generate and show a maze, using the simple Depth-first search algorithm. Start at a random cell. Mark the current cell as visited, and get a l

Continue Reading

C++ Full Course

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++Tagged course, full
C++ Full Course

[pt_view id="3a900e2db9"]

Continue Reading

Read/convert an InputStream to a String

Posted on September 1, 2017April 2, 2018 by TFE Times
Posted in C++Tagged a, an, inputstream, inputstrem, n, readconvert, redconvert, string, to
Read/convert an InputStream to a String

If you have java.io.InputStream object, how should you process that object and produce a String? Suppose I have an InputStream that contains te

Continue Reading

C++: Merge Sort

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, merge, sort
C++: Merge Sort

#include <iostream> using namespace std; void merge(int a[], const int low, const int mid, const int high) { // Variables declarati

Continue Reading

C++: Bubble Sort

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged bubble, c, sort
C++: Bubble Sort

#include <algorithm> template<typename Iterator> void bubbleSort(Iterator first, Iterator last) { Iterator i, j; for (i = fir

Continue Reading

C++: 24 Game

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged 24, game
C++: 24 Game

The 24 Game tests one's mental arithmetic. Write a program that randomly chooses and displays four digits, each from one to nine, with repetitions

Continue Reading

C++: Caesar Cipher

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ StringsTagged caesar, cipher
C++: Caesar Cipher

Implement a Caesar cipher, both encoding and decoding. The key is an integer from 1 to 25. This cipher rotates (either towards left or right) the

Continue Reading

C++: Swap Containers

Posted on September 1, 2017April 1, 2018 by TFE Times
Posted in C++Tagged c, containers, swap
C++: Swap Containers

On lines 7–8, we create two std::vectors and initialise them with values. On line 10, we swap the contents of the two std::vectors using the std:

Continue Reading

Posts navigation

Older posts
Newer posts
Brandeis Business School
University of California Irvine Leaderboard
University of California Berkeley Master of Financial Engineering MFE Sideboard
University of Maryland Masters of Economics Sideboard
output_8BgzjE
Click here
University of Maryland Masters of Economics Sideboard
NYU Tandon School of Engineering Sideboard
  • Average Hourly Wage By State

    August 23, 2026December 30, 2025 by TFE Times
  • Top 10 Restaurants in Denver, Colorado

    August 23, 2026June 20, 2026 by TFE Times
  • Top 10 Restaurants in Berlin, Germany

    August 22, 2026June 20, 2026 by TFE Times
  • The History of the 8-Iron: The Club That Turned Approach Shots Into Scoring Opportunities

    August 21, 2026July 13, 2026 by TFE Times
  • Custom Metalwork Meets Digital Design: Inside CopperSmith’s Manufacturing Model

    August 20, 2026August 20, 2026 by TFE Times
  • How to Choose a Vacuum Phone Mount for Textured Car Dashboards

    August 20, 2026 by TFE Times
  • 7 Investments That Will Help Your Coffee Shop Deliver Better Products and Services

    August 20, 2026 by TFE Times
  • How to Pick a Good Bottle of Wine Under $25

    August 20, 2026July 13, 2026 by TFE Times
  • Mistakes are Feedback Not Final Grades

    August 19, 2026 by TFE Times
  • Five players who swapped Newcastle for Liverpool

    August 19, 2026 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes