Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- class Type {
- private:
- class Some2 {
- public:
- };
- public:
- struct Some {
- int v;
- void z() {
- }
- private:
- void f() {
- }
- };
- Some SomeField;
- };
- class RefStorage {
- public:
- RefStorage(int& number)
- : number_(number)
- {
- }
- private:
- int& number_;
- };
- int main() {
- auto func = [](int a, int b) {
- return a + b;
- };
- int c = func(10, 5);
- class SomeType {
- };
- SomeType a, b;
- std::vector<int>::iterator it;
- Type::Some q;
- q.v = 10;
- q.z();
- Type w;
- w.SomeField.z();
- freopen("err2.txt", "w" , stderr);
- int value;
- std::cin >> value; // stdin;
- std::cout << "zxcvbn" << std::endl; // stdout
- std::cerr << "qwerty" << std::endl; // stderr
- int qwe = 1334;
- int& zxc = qwe;
- zxc = 1234;
- &zxc;
- int* ptr = nullptr;
- ptr = &qwe;
- *ptr = 12345;
- std::cout << *ptr << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement