You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*******************************************************************
Stack2Dot
1. struct in C (for describing the data structure of Stack)
2. How to Visualize Stack Operations
COMP9024
*******************************************************************/
This project is designed to visualize stack operations.
Two configuration files (Stack2Dot/.vscode/launch.json and Stack2Dot/.vscode/tasks.json) have been preset.
2.1 Open the project in VS Code
In the window of Visual Studio Code, please click "File" and "Open Folder",
select the folder "COMP9024/Stacks/Stack2Dot", then click the "Open" button.
2.2 Build the project in VS Code
click Terminal -> Run Build Task
2.3 Debug the project in VS Code
Open src/Int2Str.c, and click to add a breakpoint (say, line 71).
Then, click Run -> Start Debugging
2.4 Directory
├── Makefile defining set of tasks to be executed (the input file of the 'make' command)
|
├── README.md introduction to this tutorial
|
├── src containing *.c and *.h
||| ├── Int2Str.c print an integer as a string (based on a stack)
| ├── Int2Str.h
| ├── main.c main()
| ├── Stack.c the implementation of an array-based stack
| └── Stack.h the header file of the stack
||
└── .vscode containing configuration files for Visual Studio Code
|
├── launch.json specifying which program to debug and with which debugger,
| used when you click "Run -> Start Debugging"|
└── tasks.json specifying which task to run (e.g., 'make' or 'make clean')
used when you click "Terminal -> Run Build Task" or "Terminal -> Run Task"