Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <conio.h>
- #include <iostream>
- using namespace std;
- int SUMMA(int *array, int size){
- int count = 0;
- for(int i = 0;i<size;i++)
- count+=*array++;
- return count; }
- bool EKVIVALENCE(char *a, char *b)
- {
- do{if(*(a++) != *(b++))return false;
- }while(*a!='\0' || *b!='\0');
- return true;}
- main()
- {
- //int *array2 = new int[3];
- char lol[] = "f";
- char lol2[] = " j ";
- //char *lol2 = &lol;
- cout << EKVIVALENCE(lol,lol2);
- int a,b,summ = 0;
- float c,d;
- int *po =&a, *po2 = &b;
- float *po3 = &c, *po4 = &d;
- /*cout << "Ievadiet vertibu: ";
- cin >> *po;
- cout << "Ievadiet vertibu: ";
- cin >> *po2;
- cout << "Ievadiet vertibu: ";
- cin >> *po3;
- cout << "Ievadiet vertibu: ";
- cin >> *po4;
- *po+=5;
- *po4 = *po2 * *po3;
- cout << *po << endl;
- cout << *po2 << endl;
- cout << *po3 << endl;
- cout << *po4 << endl;
- //======================================================
- srand(time(0));
- int array[10];
- int *pbegin = array;
- for(int i = 0; i < 10;i++){
- *(pbegin+i) = rand()%100;
- count+=pbegin;}
- //======================================================
- */
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement