我正在读Ivor Horton的Beginning C. 无论如何我无限期地for打印我的printf声明两次,然后再继续.我确定我做错了但是我从书中复制了代码.如果重要的话,我正在使用Dev-C++.这是代码......谢谢
#include <stdio.h>
#include <ctype.h> // For tolower() function //
int main(void)
{
char answer = 'N';
double total = 0.0; // Total of values entered //
double value = 0.0; // Value entered //
int count = 0;
printf("This program calculates the average of"
" any number of values.");
for( ;; )
{
printf("\nEnter a value: ");
scanf("%lf", &value);
total+=value;
++count;
printf("Do you want to enter another value? (Y or N): "); …Run Code Online (Sandbox Code Playgroud) 我正在设置Git,我正在关注http://lifehacker.com/5983680/how-the-heck-do-i-use-github以及Git提供的常规教程.
我的问题是我不想每次都输入我的密码所以我遵循本教程,当我到达你输入git config —global credential.helper osxkeychain命令的步骤时,我得到了错误
error: key does not contain a section: —global.
Run Code Online (Sandbox Code Playgroud)
如果我LS,它显示了git-credential-osxkeychain在我的当前目录下,但我不知道这是什么错误意味着以及如何解决它...任何帮助深表感谢.