Advertisement
Skygen

16.darbs

Apr 14th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. #include <conio.h>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. void ZIME(int &a, int &b){
  7. a = a *-1;
  8. b = b *-1;}
  9.  
  10. void RND(int &a, int &b, int &c){
  11. srand(time(0));
  12. if(b>c)a = rand()%c+b;
  13. else a = rand()%b+c; }
  14.  
  15. void TEKSTS(string a, char &b, char &c){
  16. int i = 0;
  17. b = a[i];    
  18. do i++;
  19. while(a[i]!='\0');
  20. c = a[i];}
  21.  
  22. void ATSTARPE(string &a){
  23. int i = 0;    
  24. do{
  25. i++;
  26. if(a[i] == ' '){
  27. int b = 1;        
  28. while(a[i+b]==' '){ a.erase(i+b,1); }
  29. }
  30.  
  31. }while(a[i]!='\0');
  32. }
  33.  
  34. main()
  35. {
  36.  
  37.  
  38. getch();
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement