I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
When you sit down and start a new project, often times, you'll want to set up a virtual host,
a spoof domain that will emulate a live environment. The effort is usually two parts: set up a
domain in /etc/hosts
, and then add a <VirtualHost>
entry in /Applications/MAMP/conf/apache/httpd.conf
to make your files accessible.
This tutorial is setting up a 'zero-configuration' development environment. We'll be setting up a
spoof domain ending in .dev
. In MAMP, we'll create a folder called dev
. Any folder inside,
the name will become the domain.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <cmath> | |
using namespace std; | |
int main() { | |
int userDay = 0; | |
int userYear = 0; | |
int userMonth = 0; |