[Cs3] CS 3 Lab

Mikhail Nesterenko mikhail at cs.kent.edu
Fri Feb 7 22:52:30 EST 2014


> Professor, Honestly this may be a dumb question, but can you use a
> #include <someLibrary> within a single function's scope?  That is,
> instead of putting it at the top of a file can you put it inside of
> a function and only that function uses the #include?

You may, but it is not recommended. Usually, manipulating namespaces
and scopes allows you to restrict the names as necessary.

Thanks,
--
Mikhail



More information about the cs3 mailing list