Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
2
2024ustc-jianmu-compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
compiler_staff
2024ustc-jianmu-compiler
Commits
799c5002
Commit
799c5002
authored
Aug 28, 2024
by
刘睿博
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ver 1.1
parent
23c992e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/main.cpp
src/main.cpp
+9
-1
No files found.
src/main.cpp
View file @
799c5002
...
@@ -3,6 +3,13 @@
...
@@ -3,6 +3,13 @@
#include "Student.hpp"
#include "Student.hpp"
#include <vector>
#include <vector>
class
check
{
public:
explicit
check
(
Student
*
student
){
printf
(
"Student object created
\n
"
);
}
};
int
main
(
int
,
char
**
){
int
main
(
int
,
char
**
){
printf
(
"Hello, from stl_debug!
\n
"
);
printf
(
"Hello, from stl_debug!
\n
"
);
std
::
vector
<
Human
*>
vec
;
std
::
vector
<
Human
*>
vec
;
...
@@ -13,5 +20,6 @@ int main(int, char**){
...
@@ -13,5 +20,6 @@ int main(int, char**){
for
(
const
auto
&
h
:
vec
)
{
for
(
const
auto
&
h
:
vec
)
{
h
->
print
();
h
->
print
();
}
}
static_cast
<
Student
*>
(
vec
.
back
())
->
print
();
auto
student1
=
static_cast
<
Student
*>
(
vec
.
back
());
check
check1
=
check
(
student1
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment