makefile + poczatek

This commit is contained in:
2016-10-17 21:07:42 +02:00
parent 308542e673
commit 9129c6207e
2 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
macierz_omp: macierz_omp.cpp
g++ -fopenmp -Wall -o macierz_omp macierz_omp.cpp

View File

@@ -1,9 +1,15 @@
#include <iostream>
#include <cstdlib>
using namespace std;
int main(int argc, char *argv[])
{
cout << argc;
if (argc < 3)
{
cerr << "Usage: " << argv[0] << " <n> <size>" << endl;
exit(1);
}
cout << argv[argc-1];
exit(0);
}