ā¹ļø Skipped - page is already crawled
| Filter | Status | Condition | Details |
|---|---|---|---|
| HTTP status | PASS | download_http_code = 200 | HTTP 200 |
| Age cutoff | PASS | download_stamp > now() - 6 MONTH | 0.3 months ago |
| History drop | PASS | isNull(history_drop_reason) | No drop reason |
| Spam/ban | PASS | fh_dont_index != 1 AND ml_spam_score = 0 | ml_spam_score=0 |
| Canonical | PASS | meta_canonical IS NULL OR = '' OR = src_unparsed | Not set |
| Property | Value |
|---|---|
| URL | https://pythontutor.com/cpp.html |
| Last Crawled | 2026-04-10 03:15:34 (7 days ago) |
| First Indexed | 2021-08-21 23:39:28 (4 years ago) |
| HTTP Status Code | 200 |
| Meta Title | Visualize C++ Code - C++ Visualizer, Tutor, and Debugger with AI Help |
| Meta Description | C++ visualizer, visual debugger, and AI tutor - the only tool that lets you visually debug your C++ code step-by-step (also debug Python, JavaScript, Java, and C code) |
| Meta Canonical | null |
| Boilerpipe Text | Please wait ... your code is running (up to 10 seconds)
Write code in
1
2
3
4
int
main
(
)
{
return
0
;
}
Are you 60 or older?
Help our research
on older adults learning to code
teachers
get
free access
to ad-free/AI-free mode
NEW:
C/C++ now supports user input via stdin and showing std::string
C/C++ options
(
click for help
):
(currently no basic options)
show advanced options
hide all code examples
C++ Examples
Basic
|
Pass by ref
|
Class
|
Class pointer
|
Date class
|
Inheritance
|
Virtual method |
| Markdown | [C++ Tutor](https://pythontutor.com/index.html)
[Python Tutor](https://pythontutor.com/python-compiler.html) [Java Tutor](https://pythontutor.com/java.html) [C Tutor](https://pythontutor.com/c.html) [JavaScript Tutor](https://pythontutor.com/javascript.html)
[Teacher Mode](https://docs.google.com/forms/d/e/1FAIpQLSfvs94n1d3ZaXDgytT7JhXBafS8q12ucr9YNiZCBakCQ-w6LA/viewform?usp=dialog) [Docs](https://docs.google.com/document/d/13_Bc-l2FKMgwPx4dZb0sv7eMfYMHhRVgBRShha8kgbU/) [Impact](https://pythontutor.com/index.html#impact) [Donate](https://docs.google.com/forms/d/e/1FAIpQLSeVehBoLGJhbB9GGSh5Bj8AWa0rF5NCMjLCtuA3rhaEJlsRlg/viewform?usp=sf_link)
[Python Tutor](https://pythontutor.com/index.html)
[Java Tutor](https://pythontutor.com/java.html) [C Tutor](https://pythontutor.com/c.html) [C++ Tutor](https://pythontutor.com/cpp.html) [JavaScript Tutor](https://pythontutor.com/javascript.html)
[Teacher Mode](https://docs.google.com/forms/d/e/1FAIpQLSfvs94n1d3ZaXDgytT7JhXBafS8q12ucr9YNiZCBakCQ-w6LA/viewform?usp=dialog) [Docs](https://docs.google.com/document/d/13_Bc-l2FKMgwPx4dZb0sv7eMfYMHhRVgBRShha8kgbU/) [Impact](https://pythontutor.com/index.html#impact) [Donate](https://docs.google.com/forms/d/e/1FAIpQLSeVehBoLGJhbB9GGSh5Bj8AWa0rF5NCMjLCtuA3rhaEJlsRlg/viewform?usp=sf_link)
[Teacher Mode](https://docs.google.com/forms/d/e/1FAIpQLSfvs94n1d3ZaXDgytT7JhXBafS8q12ucr9YNiZCBakCQ-w6LA/viewform?usp=dialog) [Docs](https://docs.google.com/document/d/13_Bc-l2FKMgwPx4dZb0sv7eMfYMHhRVgBRShha8kgbU/) [Impact](https://pythontutor.com/index.html#impact) [Donate](https://docs.google.com/forms/d/e/1FAIpQLSeVehBoLGJhbB9GGSh5Bj8AWa0rF5NCMjLCtuA3rhaEJlsRlg/viewform?usp=sf_link)
# C++ visualizer, visual debugger, and AI tutor
The only tool that lets you visually debug your C++ code step-by-step.
Please wait ... your code is running (up to 10 seconds)
Write code in
1
2
3
4
int main() {
return 0;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Visualize Execution Are you 60 or older? [**Help our research**](https://docs.google.com/forms/d/e/1FAIpQLSc7VY-E0Z543viybFvgn1yMZGg79nLUrkwgjQAsAoUB1uPK1A/viewform?usp=dialog) on older adults learning to code
teachers get [**free access**](https://docs.google.com/forms/d/e/1FAIpQLSfvs94n1d3ZaXDgytT7JhXBafS8q12ucr9YNiZCBakCQ-w6LA/viewform?usp=dialog) to ad-free/AI-free mode
NEW: C/C++ now supports user input via stdin and showing std::string
**C/C++ options** ([click for help](https://docs.google.com/document/d/13_Bc-l2FKMgwPx4dZb0sv7eMfYMHhRVgBRShha8kgbU/edit?tab=t.0#bookmark=id.9kyub681p4yl)):
(currently no basic options)
[show advanced options](https://pythontutor.com/cpp.html)
visualizer should
[hide all code examples](https://pythontutor.com/cpp.html)
C++ Examples
[Basic](https://pythontutor.com/cpp.html) \| [Pass by ref](https://pythontutor.com/cpp.html) \| [Class](https://pythontutor.com/cpp.html) \| [Class pointer](https://pythontutor.com/cpp.html) \| [Date class](https://pythontutor.com/cpp.html) \| [Inheritance](https://pythontutor.com/cpp.html) \| [Virtual method](https://pythontutor.com/cpp.html)
š¤ Greetings, human! š¤
I'm a new AI Tutor ready to help you with C++.
You have not written any code yet, so feel free to ask me general questions about C++. **If you write some code above**, then I can answer specific questions about your code.
š ļø Instructions
Edit
Send
Reset chat
AI Tutor may be inaccurate. Scroll up and click **Edit and re-send** to generate a *different* AI response.
Tips for good questions:
- Edit your code to be [as small as possible](https://stackoverflow.com/help/minimal-reproducible-example).
- [Be specific](https://www.sscce.org/) and ask about specific parts of your code.
- Include enough context, such as instructions for your assignment.
## Python Tutor
Keep this tool free for everyone\! [Donate](https://docs.google.com/forms/d/e/1FAIpQLSeVehBoLGJhbB9GGSh5Bj8AWa0rF5NCMjLCtuA3rhaEJlsRlg/viewform?usp=sf_link)
### Languages
- [Python](https://pythontutor.com/python-compiler.html)
- [Java](https://pythontutor.com/java.html)
- [C](https://pythontutor.com/c.html) and [C++](https://pythontutor.com/cpp.html)
- [JavaScript](https://pythontutor.com/javascript.html)
### About
- [Teacher Mode](https://docs.google.com/forms/d/e/1FAIpQLSfvs94n1d3ZaXDgytT7JhXBafS8q12ucr9YNiZCBakCQ-w6LA/viewform?usp=dialog)
- [Docs](https://docs.google.com/document/d/13_Bc-l2FKMgwPx4dZb0sv7eMfYMHhRVgBRShha8kgbU/)
- [Impact](https://pythontutor.com/index.html#impact)
### Help
- [Report a Bug](https://docs.google.com/document/d/13_Bc-l2FKMgwPx4dZb0sv7eMfYMHhRVgBRShha8kgbU/edit?tab=t.0#bookmark=id.15szxjmdeghv)
- [Unsupported Features](https://docs.google.com/document/d/13_Bc-l2FKMgwPx4dZb0sv7eMfYMHhRVgBRShha8kgbU/edit?tab=t.0#bookmark=id.foejiogbhizj)
- [Terms of Service](https://docs.google.com/document/d/13_Bc-l2FKMgwPx4dZb0sv7eMfYMHhRVgBRShha8kgbU/edit?tab=t.0#bookmark=id.zaiomiz3ejh9)
- [Privacy Policy](https://docs.google.com/document/d/13_Bc-l2FKMgwPx4dZb0sv7eMfYMHhRVgBRShha8kgbU/edit?tab=t.0#bookmark=id.zaiomiz3ejh9) |
| Readable Markdown | Please wait ... your code is running (up to 10 seconds)
Write code in
1
2
3
4
int main() {
return 0;
}
Are you 60 or older? [**Help our research**](https://docs.google.com/forms/d/e/1FAIpQLSc7VY-E0Z543viybFvgn1yMZGg79nLUrkwgjQAsAoUB1uPK1A/viewform?usp=dialog) on older adults learning to code
teachers get [**free access**](https://docs.google.com/forms/d/e/1FAIpQLSfvs94n1d3ZaXDgytT7JhXBafS8q12ucr9YNiZCBakCQ-w6LA/viewform?usp=dialog) to ad-free/AI-free mode
NEW: C/C++ now supports user input via stdin and showing std::string
**C/C++ options** ([click for help](https://docs.google.com/document/d/13_Bc-l2FKMgwPx4dZb0sv7eMfYMHhRVgBRShha8kgbU/edit?tab=t.0#bookmark=id.9kyub681p4yl)):
(currently no basic options)
[show advanced options](https://pythontutor.com/cpp.html)
[hide all code examples](https://pythontutor.com/cpp.html)
C++ Examples
[Basic](https://pythontutor.com/cpp.html) \| [Pass by ref](https://pythontutor.com/cpp.html) \| [Class](https://pythontutor.com/cpp.html) \| [Class pointer](https://pythontutor.com/cpp.html) \| [Date class](https://pythontutor.com/cpp.html) \| [Inheritance](https://pythontutor.com/cpp.html) \| [Virtual method](https://pythontutor.com/cpp.html) |
| Shard | 0 (laksa) |
| Root Hash | 3858471113823220000 |
| Unparsed URL | com,pythontutor!/cpp.html s443 |