Title: Create a console calculator in C++ | Microsoft Learn
Open Graph Title: Create a console calculator in C++
Description: Learn how to create and troubleshoot a Hello World console app and a calculator app in Visual Studio using C++.
Open Graph Description: Learn how to create and troubleshoot a Hello World console app and a calculator app in Visual Studio using C++.
Opengraph URL: https://learn.microsoft.com/en-us/cpp/get-started/tutorial-console-cpp?view=msvc-170
Domain: learn.microsoft.com
| color-scheme | light dark |
| twitter:card | summary_large_image |
| og:type | website |
| og:image:alt | Microsoft Learn |
| og:image | https://learn.microsoft.com/en-us/media/open-graph-image.png |
| platform_id | fce08709-ab28-7d7d-43d7-b72a2dd75ad2 |
| scope | C++ |
| locale | en-us |
| uhfHeaderId | MSDocsHeader-CPP |
| page_type | conceptual |
| breadcrumb_path | ../_breadcrumb/toc.json |
| ROBOTS | INDEX,FOLLOW |
| manager | coxford |
| ms.date | 2026-04-28T00:00:00Z |
| ms.topic | tutorial |
| audience | developer |
| ms.service | visual-cpp |
| ms.tgt_pltfrm | Windows |
| ms.workload | cplusplus |
| feedback_system | Standard |
| feedback_product_url | https://developercommunity.visualstudio.com/cpp/ |
| feedback_help_link_url | https://learn.microsoft.com/en-us/answers/tags/314/cpp |
| feedback_help_link_type | get-help-at-qna |
| ms.subservice | cpp-lang |
| author | TylerMSFT |
| ms.author | twhitney |
| ms.custom | acquisition, mvc |
| ms.devlang | cpp |
| document_id | f51e5807-3f78-ff63-ef41-4629b7ae84d5 |
| document_version_independent_id | c1dbef6c-f895-a6d7-9d83-e2ac8f864327 |
| updated_at | 2026-05-28T17:37:00Z |
| original_content_git_url | https://github.com/MicrosoftDocs/cpp-docs-pr/blob/live/docs/get-started/tutorial-console-cpp.md |
| gitcommit | https://github.com/MicrosoftDocs/cpp-docs-pr/blob/079a50417ea74ec627772664b319d23fc6edbb00/docs/get-started/tutorial-console-cpp.md |
| git_commit_id | 079a50417ea74ec627772664b319d23fc6edbb00 |
| monikers | msvc-180 |
| default_moniker | msvc-170 |
| site_name | Docs |
| depot_name | VS.vcppdocs |
| schema | Conceptual |
| toc_rel | toc.json |
| pdf_url_template | https://learn.microsoft.com/pdfstore/en-us/VS.vcppdocs/{branchName}{pdfName} |
| search.mshattr.devlang | cpp |
| word_count | 8551 |
| config_moniker_range | >= msvc-140 |
| asset_id | get-started/tutorial-console-cpp |
| moniker_range_name | 4581682a33ffa46eb75263dee4d6680e |
| item_type | Content |
| source_path | docs/get-started/tutorial-console-cpp.md |
| previous_tlsh_hash | 51001513A62C9711AFC34E1A19DE7F8071F08448A5A42DE8162770F1D4CA2DF75F61E84BE72B664563320B571222A35F6BDAE32A847CA3666670587C804D337193AD3FFEE9 |
| github_feedback_content_git_url | https://github.com/MicrosoftDocs/cpp-docs/blob/main/docs/get-started/tutorial-console-cpp.md |
| markdown_url | https://learn.microsoft.com/en-us/cpp/get-started/tutorial-console-cpp?view=msvc-170&accept=text/markdown |
| cmProducts | https://authoring-docs-microsoft.poolparty.biz/devrel/4628cbd9-6f47-4ae1-b371-d34636609eaf |
| spProducts | https://authoring-docs-microsoft.poolparty.biz/devrel/be21deb8-8c64-44b0-b71f-2dc56ca7364f |
Links:
Viewport: width=device-width, initial-scale=1.0