Hi,
Is this puts statement valid? ..Ive come across something alike in vlc source code ..
insertCode:#define VERSION abc static void version (void) { puts ("LibVLC plugins cache generation version " VERSION); }
This is a discussion on Is this valid? within the C++ Programming forums, part of the General Programming Boards category; Hi, Is this puts statement valid? ..Ive come across something alike in vlc source code .. insert Code: #define VERSION ...
Hi,
Is this puts statement valid? ..Ive come across something alike in vlc source code ..
insertCode:#define VERSION abc static void version (void) { puts ("LibVLC plugins cache generation version " VERSION); }
No. Why would you even use it?
This is C code, not C++.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
If the first line was changed to:
then it would be valid.Code:#define VERSION "abc"
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way