Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <conio.h>
- #include <iostream>
- using namespace std;
- void ZIME(int &a, int &b){
- a = a *-1;
- b = b *-1;}
- void RND(int &a, int &b, int &c){
- srand(time(0));
- if(b>c)a = rand()%c+b;
- else a = rand()%b+c; }
- void TEKSTS(string a, char &b, char &c){
- int i = 0;
- b = a[i];
- do i++;
- while(a[i]!='\0');
- c = a[i];}
- void ATSTARPE(string &a){
- int i = 0;
- do{
- i++;
- if(a[i] == ' '){
- int b = 1;
- while(a[i+b]==' '){ a.erase(i+b,1); }
- }
- }while(a[i]!='\0');
- }
- main()
- {
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement