我正在提交我的git进程,并认为如果我忽略注释就可以了,所以我使用了这段代码
git commit filename
Run Code Online (Sandbox Code Playgroud)
Bash很奇怪,因此我在使用正确的命令时关闭了控制台
git commit -m"THIRD COMMIT" filename
Run Code Online (Sandbox Code Playgroud)
它给出了以下回应:
另一个git进程似乎在这个存储库中运行,例如由'git commit'打开的编辑器.请确保所有进程都已终止,然后重试.如果它仍然失败,git进程可能在此存储库中早先崩溃:
我该怎么办?
我创建了一个新的类分数,因为输入分子和分母是常识.我的老人建议我私下宣布分子和分母.但是如果它们可以被改变并且无论如何都会发生数据滥用,那么我为什么要将它们声明为私有?
我的分数类代码(如果你想引用我的代码):
#ifndef FRACTION_H
#define FRACTION_H
#endif // FRACTION_H
#include<string>
#include<iostream>
using namespace std;
class fraction{
int numer, denom;
void change_to_simplest_form();
void get_value_in_string();
public:
fraction(int,int);
fraction(){numer =0; denom =0;}
void display();
int get_num(){return numer;}
int get_denom(){return denom;}
float get_float_num(){return float(numer);}
float get_float_denom(){return float(denom);}
void get_it_all_done();
inline bool operator<(fraction &rhs){if(float(this->get_float_num()/this->get_float_denom())<float(rhs.get_float_num()/rhs.get_float_denom()))return true; else return false;}
inline bool operator>(fraction &rhs){if(float(this->get_float_num()/this->get_float_denom())>float(rhs.get_float_num()/rhs.get_float_denom()))return true; else return false;}
inline bool operator<=(fraction &rhs){if(float(this->get_float_num()/this->get_float_denom())<=float(rhs.get_float_num()/rhs.get_float_denom()))return true; else return false;}
inline bool operator>=(fraction &rhs){if(float(this->get_float_num()/this->get_float_denom())>=float(rhs.get_float_num()/rhs.get_float_denom()))return true; else return false;}
inline bool operator==(fraction …Run Code Online (Sandbox Code Playgroud) 我想使用大数字是我的数据,所以我尝试了这个.
#include<iostream.h>
#include<conio.h>
struct DataType{
unsigned long long int i,j;
}a;
int main(){
a.i=1;a.j=1;
while(a.j>0){
a.i=a.j;
a.j++;
}
cout << a.i;
return 0;
}
Run Code Online (Sandbox Code Playgroud)
注意:编译器:Borland 5.02