v1 done
This commit is contained in:
parent
003a258572
commit
04e2b81674
32 changed files with 878 additions and 20 deletions
27
feladat3/IFPQYY_feladat3V1/main.cpp
Normal file
27
feladat3/IFPQYY_feladat3V1/main.cpp
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
// IFPQYY | Tóth Dániel Mátyás | V1
|
||||
#include "feladat3.h"
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
char infn[MYMAXFILES][MYMAXFN];
|
||||
char outfn[MYMAXFILES][MYMAXFN];
|
||||
static unsigned char buf[MYBUFSIZE];
|
||||
unsigned short minv, maxv, avgv, nv;
|
||||
if (GetFilenames(argc, argv, infn, outfn) == NOK)
|
||||
{
|
||||
return(NOK);
|
||||
}
|
||||
for (int n = 0; (n < MYMAXFILES) && (infn[n][0] != '\0'); n++)
|
||||
{
|
||||
if (SortFile(infn[n], outfn[n], buf, &minv, &maxv, &avgv, &nv, MYBUFSIZE, true) == NOK)
|
||||
return(NOK);
|
||||
}
|
||||
/*cout << argc;
|
||||
for (size_t i = 0; i < argc; i++)
|
||||
{
|
||||
cout << '\n';
|
||||
cout << argv[i];
|
||||
}*/
|
||||
return(OK);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue