mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-28 19:43:31 +08:00
实习2023-11-06_07
This commit is contained in:
parent
dd3631f0ce
commit
98e094c466
57
exampleSite/content/post/实习-2023-11-06_07/index.zh-cn.md
Normal file
57
exampleSite/content/post/实习-2023-11-06_07/index.zh-cn.md
Normal file
@ -0,0 +1,57 @@
|
||||
+++
|
||||
author = "Wxn"
|
||||
title = "实习-2023-11-06_07"
|
||||
date = "2023-11-07"
|
||||
description = "Please read me first."
|
||||
tags = [
|
||||
"Dilay",
|
||||
]
|
||||
categories = [
|
||||
"实习日记",
|
||||
]
|
||||
|
||||
+++
|
||||
|
||||
This article offers a sample of basic Markdown.
|
||||
<!--more-->
|
||||
|
||||
# 正文开始
|
||||
|
||||
6号和7号都在找facc_cpp这个小项目的bug,
|
||||
|
||||
第一,路径加载不对(文件中写死了,需要修改)
|
||||
|
||||
第二,项目写的是读取ctm文件,而不是读取stl文件,
|
||||
|
||||
我们需要加载openctm库,来读取ctm文件从而生成vtkpolydata,然后继续接入原来的流程即可.
|
||||
|
||||
第三,我遇到好几次闪退.
|
||||
|
||||
**造成闪退的原因有下面几个:(可能是其中之一)**
|
||||
|
||||
- **指针未分配内存(即使是vtk的智能指针,也是需要分配内存的.)**
|
||||
- **文件路径不存在,项目中并没有进行防御性编程,很多文件路径都没有进行检查,很多文件路径都是相对于作者自己电脑上的路径. 换另一台电脑就不一定了.**
|
||||
|
||||
|
||||
|
||||
和同事一起看了会代码,他遇到了bug其实也很简单,就是两个if语句的判断条件都是一样的,感觉还是要在流程中多输出日志.
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
然后就是关于git,我们需要先git pull,再git push,
|
||||
|
||||
我觉得使用git pull的场景有两个:
|
||||
|
||||
- 每天早上你开始编程时,需要先git pull;
|
||||
|
||||
- 下班时,你提交代码时,你需要先git pull再git push(但是这个是你们共同开发一个分支的情况)
|
||||
|
||||
补充: 在实际的软件开发流程中,我们是每人负责一个分支的,我们需要从主分支上先拉取一个特征分支,
|
||||
|
||||
然后我们就只需要对这个特征分支进行代码编写.
|
||||
|
||||
然后我们只需要在每天早上git pull即可,下班的时候,我们不需要再git pull ,因为特质分支只有自己一个人进行软件开发.
|
||||
|
||||
[参考](https://blog.csdn.net/weixin_52668597/article/details/133580032?spm=1001.2014.3001.5501)
|
BIN
exampleSite/content/post/实习-2023-11-06_07/图片/1699104100831.png
Normal file
BIN
exampleSite/content/post/实习-2023-11-06_07/图片/1699104100831.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 254 KiB |
BIN
exampleSite/content/post/实习-2023-11-06_07/图片/1699104613607.png
Normal file
BIN
exampleSite/content/post/实习-2023-11-06_07/图片/1699104613607.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 192 KiB |
BIN
exampleSite/content/post/实习-2023-11-06_07/图片/1699104742265.png
Normal file
BIN
exampleSite/content/post/实习-2023-11-06_07/图片/1699104742265.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 168 KiB |
BIN
exampleSite/content/post/实习-2023-11-06_07/图片/1699104942538.png
Normal file
BIN
exampleSite/content/post/实习-2023-11-06_07/图片/1699104942538.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 153 KiB |
Loading…
Reference in New Issue
Block a user