Skip to content

Commit

Permalink
kibalt? 31/12 13:52
Browse files Browse the repository at this point in the history
  • Loading branch information
yarintz33 committed Dec 31, 2021
1 parent a2680d0 commit 3358715
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ class Upload:public Command{
void makeFile(string name){
std::ofstream myFile(name);
string line = this->dio->read();
while (line.compare("done") != 0) {
while (line.compare("done\n") != 0) {
myFile<<line;
myFile<<"\n";
line = this->dio->read();
}
}
};

//
class Correlation:public Command{
public:
Correlation(DefaultIO* dio):Command(dio){}
Expand Down Expand Up @@ -172,7 +172,7 @@ class UploadAnom:public Command{
dio->write("Please upload your local anomalies file.\n");
string s="";
float TP=0,sum=0,P=0;
while((s=dio->read())!="done"){
while((s=dio->read())!="done\n"){
P++;
size_t t=0;
while(s[t] != ','){
Expand Down

0 comments on commit 3358715

Please sign in to comment.