Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream> //input - output stream
- using namespace std;
- struct Stiva {
- int vector[5];
- int varf;
- };
- int main(){
- Stiva st;
- st.vector[0] = 2;
- st.varf = st.vector[0];
- cout << st.varf;
- st.vector[1] = 3;
- st.varf = st.vector[1];
- cout << st.varf;
- st.vector[2] = 4;
- st.varf = st.vector[2];
- cout << st.varf;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment