Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/getian107/SuSiEx
Browse files Browse the repository at this point in the history
  • Loading branch information
yorkklause committed May 17, 2024
2 parents eb67d33 + 81df451 commit c11dc6f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions utilities/convert2bin.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# include <iostream>
# include <fstream>
# include <sstream>
# include <vector>
# include <map>
# include <cstdlib>
# include <cmath>

using namespace std;

int main(int argc, char **argv)
{
string line;
ofstream fpo(argv[1]);
while(getline(cin, line))
{
istringstream cl(line);
float num;
while(cl >> num)
fpo.write(reinterpret_cast<const char*>(&num), sizeof num);
}
}

0 comments on commit c11dc6f

Please sign in to comment.