Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- int f2(int &y)
- {
- return ++y;
- }
- int f1(int x, int &y)
- {
- return x + f2(y);
- }
- void main()
- {
- //bool x = 0;
- //bool y = 65;
- //cout << boolalpha << x << " " << noboolalpha << x << endl;
- //cout << boolalpha << y << " " << noboolalpha << y << endl;
- //cout << y << endl;
- /*int x = 12, y = 5;
- cout << f2(y)<<" "<<f1(x, y) << endl;*/
- //cout << f2(y) << endl;
- //cout << f1(x, y) << endl;
- /*char m[5] = { 'A','B','C','D','E' };
- m[1]+=32;
- cout << m[1] << endl;*/
- /*for (int i = 0; i < 5; i++)
- {
- m[i] = m[i] + 32;
- cout << m[i] << " ";
- }*/
- }*/
- //int matrica[1][5] = {};
- //int niz1[5] = { 1,2,3,4,5 };
- //int niz1[] = { 1,2,3,4,5 };
- //void main()
- //{
- // /*int niz[] = { 1,2,3,4,5 };
- // cout << niz[4] << endl;
- // cout << niz1[4] << endl;
- // cout << niz1[5] << endl;*/
- //
- //
- //
- // //int niz[5] = { 1,2,3,4,5 };
- // //cout << niz[5] << endl;
- // //cout << niz1[5] << endl;
- //
- // /*int matrica[2][2] = { {2,'A'},{} };
- // cout << matrica<< endl;
- // cout << matrica[0][0] << endl;
- // cout << matrica[0][1] << endl;
- //*/
- //
- // /*unsigned short int x = 65535;
- // cout << x << endl;
- // x += 1;
- // cout << x << endl;
- //*/
- // //bool x = 0;
- // //cout << boolalpha << " " << noboolalpha << endl;
- // //cout << boolalpha << " " << noboolalpha << endl;
- //
- //}
- //int x = 5;
- //const int y = 5;
- //void funkcija()
- //{
- // cout << y << endl;
- //}
- //void funkcija2(int &x)
- //{
- // cout << ++x <<endl;
- //}
- //
- //int main()
- //{
- // /*int x = 2;
- // int y = 3;
- // cout << ++x <<" "<<++y<<" "<<y++<< endl;
- // cout << x++ << endl;*/
- // /*int x = 2, y = 3;
- // y += x++;
- // cout << y << " " << x << endl;*/
- // /*int x= 3;
- // int y = 3;
- // funkcija();
- // funkcija2(y);*/
- // //cout << ++x << endl;
- // //funkcija2(y);
- // /*int y = 3;
- // funkcija();
- // funkcija2(y);*/
- //
- // system("pause");
- // return 0;
- //}
- //int main()
- //{
- // /*int niz[2];
- // cout << niz << endl;
- // cout << niz[0] << " " << niz[1] << endl;
- // cout << &niz << endl;
- // cout << &niz[0] <<" "<<&niz[1]<< endl;*/
- //
- // /*int niz[5] = { 1,2,3,4,5 };
- // int niz1[5] = { 1,2,3,4 };
- // int niz2[1] = {};*/
- // // int niz3[5];
- // //cout << niz << endl; //adresa
- // //cout << sizeof(niz) << endl; //20
- // //cout << sizeof(niz[0]) << endl; //4
- // //cout << niz[0] << " " << niz[1] << " " << niz[5] << endl;
- // //cout << "Vrijednost clana niza ";
- // //for (int i = 0; i < 5; i++)
- // //{
- // // cout << setw(7) << niz[i] << " ";
- // //}
- // //cout << endl;
- // //cout << "Adresa elementa niza ";
- // //for (int i = 0; i < 5; i++)
- // //{
- // // cout << &niz[i] << " ";
- // //}
- // //cout << endl;
- //
- // /*for (int i = 0; i < 5; i++)
- // {
- // cout << niz1[i] << '\t';
- // cout << &niz1[i] << '\n';
- //
- // }*/
- // //cout << niz2[0] << endl;
- //
- // /*int broj1, broj2;
- // char slov1, slov2, slov3, slov4, slov5;
- // slov1 = 'm', slov2 = 'a', slov3 = 'h', slov4 = 'i', slov5 = 'r';
- //
- // cout << slov1 << slov2 << slov3 << slov4 << slov5 << "\n";
- //
- // slov1 = slov1 - 32;
- // slov2 = slov2 - 32;
- // slov3 = slov3 - 32;
- // slov4 = slov4 - 32;
- // slov5 = slov5 - 32;
- //
- // cout << slov1 << slov2 << slov3 << slov4 << slov5 << endl;
- //
- // broj1 = int(slov1) + int(slov2) + int(slov3) + int(slov4) + int(slov5);
- // broj2 = sizeof(slov1) + sizeof(slov2) + sizeof(slov3) + sizeof(slov4) + sizeof(slov5);
- // cout << broj1 << " " << broj2 << endl;
- //*/
- //
- // system("pause");
- // return 0;
- //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement