Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- void f(int);
- void f(double);
- void f(int, std::vector<char>&);
- void f(int value) {
- std::cout << "int=" << value << std::endl;
- }
- void g() {
- f(3);
- f(4.5);
- }
- void f(double value) {
- std::cout << "double=" << value << std::endl;
- }
- void f(int value, std::vector<char>& symbols) {
- }
- int z = 123;
- namespace alexbogo {
- int z = 567;
- int f() {
- return 123;
- }
- void qwerty() {
- }
- };
- namespace badns {
- int z = 76655;
- int f() {
- return 23424234;
- }
- void qwerty() {
- }
- };
- void qwerty() {
- }
- int main() {
- alexbogo::qwerty();
- badns::qwerty();
- qwerty();
- int z = 4;
- /*for (int i = 0; i < 10; ++i) {
- std::cout << z << std::endl;
- int z = 5;
- std::cout << z << std::endl;
- }*/
- {
- int z = 10;
- std::cout << z << std::endl;
- {
- int z = 11;
- std::cout << z << std::endl;
- std::cout << ::z << std::endl;
- {
- std::cout << z << std::endl;
- {
- std::cout << z << std::endl;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement