makefile + poczatek
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
macierz_omp: macierz_omp.cpp
|
||||||
|
g++ -fopenmp -Wall -o macierz_omp macierz_omp.cpp
|
||||||
@@ -1,9 +1,15 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
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);
|
exit(0);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user