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 <fstream> | |
using namespace std; | |
bool ZeroJeden (string napis) | |
{ | |
int suma0=0,suma1=0; | |
for(int i=0;i<napis.length();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
int horner(string liczba, int s) | |
{ | |
int suma=0; | |
for(int i=0;i<liczba.length();i++) | |
{ | |
if( liczba[i]-48 < 10 ) | |
{ | |
suma=suma*s + (liczba[i]-48); | |
} | |
else |
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 <fstream> | |
#include <sstream> | |
using namespace std; | |
string intToStr (int a) | |
{ | |
ostringstream ss; | |
ss << a; |
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 <fstream> | |
using namespace std; | |
fstream plik1,plikKlucz,plikZapis; | |
string Szyfr(string slowo,string klucz) | |
{ | |
int nr=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 <fstream> | |
using namespace std; | |
int sumaCyfr(int liczba) | |
{ | |
int suma=0,reszta=0; | |
while(liczba>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 <fstream> | |
using namespace std; | |
bool Palindrom (string slowo) | |
{ | |
for(int i=0;i<slowo.length()/2;i++) | |
{ | |
if(slowo[i]!=slowo[slowo.length()-1-i]) return false; |
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; | |
char intTOchar(int i) | |
{ | |
if (i<10) | |
return i+'0'; | |
else | |
return i+'A' -10; | |
} |
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 Horner(string liczba, int syst) | |
{ | |
int suma=0; | |
for(int i=0;i<liczba.length();i++ ) | |
{ | |
int a = liczba[i]-'0'; //kod 0 = 48 |
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 tab[100]; | |
int poz=-1; | |
int n=100; | |
void Push(int x) | |
{ |
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 <cstdlib> | |
#include <iomanip> | |
using namespace std; | |
/* | |
Koncepcja: | |
1. Utworzenie struktury elementu listy | |
2. Utworzyć wskaźnik na pierwszy element listy |
OlderNewer