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.