提出了问题2023-09-18
发布了文章2022-03-25
一步一步探索 git reset为求简单, 本文只考虑初始状态 Git 仓库, 缓存区域 和 当前目录 相同的情况本文的源地址: [链接]在同一目录下, 有相关的测试脚本本文使用的 Git 版本 {代码...} 探索如下构建一个测试目录 {代码...} 此时的提交记录是 A --> B --> C --&...
提出了问题2022-03-08
赞了回答2022-03-08
切换到feat1分支: {代码...}
回答了问题2022-03-02
实现供参考 {代码...}
回答了问题2021-10-31
建议:本地提交: git commit拉远程: git pull --rebase
回答了问题2021-10-10
说实话,没怎么看懂你的意思,感觉你想要的是这个 $(${b})
赞了回答2021-01-04
{代码...} 详见:Stackoverflow - Change first commit of project with Git?
回答了问题2020-07-21
差不多类似下面 {代码...}
提出了问题2020-07-09
赞了回答2020-04-09
内存重叠时不能用 strcpy, 得用 memmove 。 内存重叠时用 strcpy 是未定义行为,未定义行为什么都可能发生。 你看到的 strcpy 的实现只是一个示例,每个编译器的实现都可能不同。
赞了回答2019-12-11
6 Once the type of a declarator-id has been determined according to [dcl.meaning], the type of the declared variable using the declarator-id is determined from the type of its initializer using the rules for template argument deduction. ...
提出了问题2019-12-11
赞了回答2019-10-31
It is possible to transfer into a block, but not in a way that bypasses declarations with initialization. A program that jumps from a point where a variable with automatic storage duration is not in scope to a point where it is in scope is ill-for...
赞了回答2019-10-31
如果你在goto跳转的地方使用了这个变量怎么办?比如说从第一个goto跳到err了,又要使用a,但是你跳过了a的定义怎么处理?
提出了问题2019-10-30
回答了问题2019-10-23
使用转义字符 \, 比如: {代码...}
回答了问题2019-10-22
函数 class T *create(T *head); 中, {代码...} 应该是: {代码...} 函数class T show(class T *head);中, {代码...} 应该是: {代码...}
回答了问题2019-10-17
为啥要把目录 .git 删了? 此目录是要保存版本信息的,删了就无法区分各个提交,各个版本了, 现在的情况是现在的工作目录已经不受 git 控制了,所以,只能从头开始 那怎样可以让它不重新上传? 取决于是否你需要在本地保存信息? 如果你需要在本地保存信息,可以执行...
回答了问题2019-10-16
std::cin >> str,str 为字符数组 或 字符指针,将执行以下操作: 忽略开头的空白字符 读取输入的字符,直到遇到空白字符 或 EOF 在 str 最后添加 '0' 问题中的 str1 是含有 5 个字符的数组,而输入字符串 “Hello” 也是含有 5 个字符,所以,当在 str1 后添加 ...