This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
WARNING: Do NOT edit the input and output ports in this file in a text | |
editor if you plan to continue editing the block that represents it in | |
the Block Editor! File corruption is VERY likely to occur. | |
*/ | |
/* | |
Copyright (C) 1991-2011 Altera Corporation | |
Your use of Altera Corporation's design tools, logic functions | |
and other software and tools, and its AMPP partner logic | |
functions, and any output files from any of the foregoing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() { | |
while(true) { | |
cout | |
<< "Pola powierzchnii figur" << endl | |
<< "1 - prostokat" << endl | |
<< "2 - kolo" << endl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
string asdasds(unsigned int pkt) { | |
if(pkt == 0 || pkt == 1) { return "mierna"; } | |
else if(pkt == 2 || pkt == 3) { return "niedostateczna"; } | |
else if(pkt == 4 || pkt == 5) { return "dostateczna"; } | |
else if(pkt == 6 || pkt == 7) { return "dobra"; } | |
else if(pkt == 8 || pkt == 9) { return "bardzo dobra"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
string asdasds(unsigned int pkt) { | |
switch(pkt) { | |
case 0: case 1: | |
return "mierna"; | |
break; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <math.h> | |
#include <iomanip> | |
using namespace std; | |
/** wyznacznik arraya */ | |
float fckd(float jpdl[2][2]) { | |
return jpdl[0][0] * jpdl[1][1] - jpdl[0][1] * jpdl[1][0]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <math.h> | |
using std::cout; | |
using std::cin; | |
using std::endl; | |
int main() { | |
float a, b, c; | |
cout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_.mixin({ | |
partialBind: (fn: Function, context: any, ...args: any[]): any => { | |
return _.bind(_.partial(fn, ...args), context); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<div class='kalkulator'> | |
<input type='text'> | |
<select> | |
<option>+</option> | |
<option>-</option> | |
<option>*</option> | |
<option>/</option> | |
</select> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> | |
void silnia() { | |
int n = 0, t = 1, i =0; | |
printf("Dawaj silnie:"); scanf("%d", &n); | |
if(n >= 0) { | |
for(i = 1;i <= n; ++i) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String.prototype['format'] = function(...params: any[]): string { | |
return this.replace(/\{(\w*)\}/g, (match, val) => { | |
return isNaN(val) ? params[0][val] : params[val]; | |
}); | |
}; |