How to add a specific method to a particular scope in Visual Studion 2005
Posted
by pragadheesh
on Stack Overflow
See other posts from Stack Overflow
or by pragadheesh
Published on 2010-03-24T06:13:21Z
Indexed on
2010/03/24
6:33 UTC
Read the original article
Hit count: 396
Hi, In my visual studio project (C++), when i copy a method(meth1) of a particular scope say 'scope1' and paste it in the same code area, it is getting pasted in General Scope.
i.e I want to add a method into a particular scope but when i try it is getting added in general scope. How can i solve this?
For eg: There is an existing method:
void add(int a, int b)
{
....
}
This method is in File scope. i.e limited for that file.
Now i want to add another method add2 in the same file scope. So I copied the existing add method and pasted it.
void add2(int a, int b)
{
....
}
But this method is getting added in the global scope and not in the file scope.
© Stack Overflow or respective owner