小编Jor*_*dan的帖子

Git&Intellij,我如何只提交已更改文件的一部分

我似乎无法提交文件中的一小部分更改,它似乎是所有文件或什么都没有,我正在使用Git与Intellij,是否可能?

谢谢.

git intellij-idea git-commit

76
推荐指数
4
解决办法
1万
查看次数

在GCC中启用严格浮点模式

我还没有创建一个程序来查看GCC是否需要它通过,当我这样做时,我想知道如何启用严格的浮点模式,这将允许运行和计算机之间的可重现结果,谢谢.

c gcc

10
推荐指数
1
解决办法
1万
查看次数

为什么我因使用show error而得到(Show t0)的No实例?

我坚持这个问题而且我对Haskell很新,我试图用以下代码完成第一个Euler问题:

main = putStrLn . show . sum $ [3,6..1000]:[5,10..1000]
Run Code Online (Sandbox Code Playgroud)

这是错误的第一部分:

euler/1.hs:1:19:
    No instance for (Show t0) arising from a use of `show'
    The type variable `t0' is ambiguous
    Possible fix: add a type signature that fixes these type variable(s)
    Note: there are several potential instances:
      instance Show Double -- Defined in `GHC.Float'
      instance Show Float -- Defined in `GHC.Float'
      instance (Integral a, Show a) => Show (GHC.Real.Ratio a)
        -- Defined in `GHC.Real'
      ...plus 23 others
    In the first argument …
Run Code Online (Sandbox Code Playgroud)

haskell

3
推荐指数
1
解决办法
1313
查看次数

标签 统计

c ×1

gcc ×1

git ×1

git-commit ×1

haskell ×1

intellij-idea ×1