Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > namespace

Reply
Thread Tools

namespace

 
 
sw21 sw21 is offline
Junior Member
Join Date: Feb 2010
Posts: 1
 
      02-04-2010
Hey
I was wondering why this is possible :
Code:
class A{
public:
	int iAddition2(int arg1, int arg2) {
		return iAddition(arg1, arg2);
	}
	int iAddition(int arg1, int arg2) {
		return arg1 + arg2;
	}
};

and not this:

Code:
namespace myNS {
	int iAddition2(int arg1, int arg2) {
		return iAddition(arg1, arg2);
	}
	int iAddition(int arg1, int arg2) {
		return arg1 + arg2;
	}
}
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR CS0234: The type or namespace name 'DataAccessHelper' does not exist in the namespace 'BCC' (are you missing an assembly reference?) li.eddie@gmail.com ASP .Net 0 01-06-2006 11:31 AM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
Reaching into the default namespace when using another namespace. Jason Heyes C++ 1 11-19-2004 02:36 AM
Namespace: Is it a scope or a namespace? Anonymous C++ 3 08-18-2003 01:31 PM
Help:Why can't I use namespace System.Web? It is said that this namespace doesn't exist. But it should exist. ASP .Net 1 07-29-2003 04:31 PM



Advertisments