Browse Source

makefile + poczatek

master
Piotr Dergun 8 years ago
parent
commit
9129c6207e
2 changed files with 9 additions and 1 deletions
  1. +2
    -0
      DergunPiotr-WaskoDominik/zad1/Makefile
  2. +7
    -1
      DergunPiotr-WaskoDominik/zad1/macierz_omp.cpp

+ 2
- 0
DergunPiotr-WaskoDominik/zad1/Makefile View File

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

+ 7
- 1
DergunPiotr-WaskoDominik/zad1/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);
}

Loading…
Cancel
Save