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 <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);
|
||||
}
|
||||
Reference in New Issue
Block a user