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
817df42c
Commit
817df42c
authored
Sep 05, 2024
by
刘睿博
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lab0 final ver
parent
4595d7e3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
CMakeLists.txt
CMakeLists.txt
+2
-0
src/main.cpp
src/main.cpp
+1
-1
No files found.
CMakeLists.txt
View file @
817df42c
...
@@ -5,6 +5,8 @@ set(CMAKE_CXX_STANDARD 17)
...
@@ -5,6 +5,8 @@ set(CMAKE_CXX_STANDARD 17)
set
(
CMAKE_BUILD_TYPE
"Debug"
)
set
(
CMAKE_BUILD_TYPE
"Debug"
)
set
(
CMAKE_EXPORT_COMPILE_COMMANDS ON
)
INCLUDE_DIRECTORIES
(
INCLUDE_DIRECTORIES
(
include
include
)
)
...
...
src/main.cpp
View file @
817df42c
...
@@ -30,7 +30,7 @@ int main(int argc, char** argv){
...
@@ -30,7 +30,7 @@ int main(int argc, char** argv){
}
}
// auto student1 = new Student(); //TODO: Error 1 : why?
// auto student1 = new Student(); //TODO: Error 1 : why?
auto
student1
=
static_cast
<
Student
*>
(
vec
.
back
());
auto
student1
=
static_cast
<
Student
*>
(
vec
.
back
());
// check check1 = check(
student
); //TODO: Error 2 : why?
// check check1 = check(
vec.back()
); //TODO: Error 2 : why?
check
check1
=
check
(
student1
);
check
check1
=
check
(
student1
);
// LOG(DEBUG) << student1->print();
// LOG(DEBUG) << student1->print();
// LOG(WARNING) << human.print();
// LOG(WARNING) << human.print();
...
...
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