ÇÁ·Î±×·¡¹Ö
ù ÆäÀÌÁö ·£´ý ±Û ȸ¿ø°¡ÀÔ ·Î±×ÀÎ
ºñ°ø°³ ¼Õ´Ô ¡¦ 2007-09-28 21:20:55
URL https://te31.com/rgr/view.php?id=study&no=490 ¸ð¹ÙÀÏ È­¸é
--

--

Àâ´ã | 2057¸íÀÌ Àоú¾î¿ä. 18.219.213.196

0
1 ºñ°ø°³ ¼Õ´Ô ¡¦ 2007-09-28 21:54:53
/*
std::cout << "One \n";
std::cout << "Two \n"; /* Two */
std::cout << "Three \n";
*/

¡èºÎºÐÀ»

¡é ó·³ ¹Ù²Ù°í

#ifdef false

std::cout << "One \n";
std::cout << "Two \n"; /* Two */
std::cout << "Three \n";

#endif


¿©±â¼­ one -> This compiler
two -> does not
three -> ¾ø¾Ö°í

four -> accept nested commnets ÇÏ¸é ¾ÈµÇ³ª¿©.
2 ºñ°ø°³ ¼Õ´Ô ¡¦ 2007-09-28 22:13:10
#include <iostream>

int main()
{
using namespace std;

#ifdef false

std::cout << "This compiler";
std::cout << "does not";

#endif

std::cout << "accept nested comments \n";

return 0;
}

Ãâ·ÂÀÌ accept nested commnets ÀÌ·¸°Ô ¹Û¿¡ Ãâ·ÂÀÌ ¾ÈµÇ³×¿ä ¤Ð
3 ºñ°ø°³ ¼Õ´Ô ¡¦ 2007-09-29 01:16:12
#include <iostream>
using namespace std;
#define true

int main()
{
#ifdef true
/*
/* */
#endif
cout << "This compiler does not accept nested comments" << endl;
#ifdef false
*/
cout << "This compiler accept nested comments" << endl;
#endif

return 0;
}
4 ºñ°ø°³ ¼Õ´Ô ¡¦ 2007-09-29 01:47:41
#include <iostream>

int main()
{
using namespace std;

std::cout << "This compiler";

#ifdef false

std::cout << "does not";

#endif

std::cout << "accept nested comments \n";

return 0;
}


ÀÌ·¸°Ô Çϼ¼¿©.
5 ºñ°ø°³ ¼Õ´Ô ¡¦ 2007-09-29 01:48:33
#include <iostream>

using namespace std;

int main()
{


cout << "This compiler";

#ifdef false

cout << "does not";

#endif

cout << "accept nested comments \n";

return 0;
}
6 ºñ°ø°³ ¼Õ´Ô ¡¦ 2007-09-29 07:37:00
#include <iostream>

using namespace std;

int main()
{


cout << "This compiler";

#ifdef _BORLAND

cout << "does not";

#endif

cout << "accept nested comments \n";

return 0;
}
7 ºñ°ø°³ ¼Õ´Ô ¡¦ 2007-09-29 08:07:31
´ä6 ¸ÚÁö³×¿¬....
Á¶±³°¡ °¨ÅºÇÒµí ¤¾¤¾
8 ºñ°ø°³ ¼Õ´Ô ¡¦ 2007-10-01 16:01:28
¾Æ, #ifdef°¡ ¾Æ´Ï¶ó #ifndef ³×¿ä ¤¾¤¾¤¾
9 ºñ°ø°³ ¼Õ´Ô ¡¦ 2007-10-01 22:44:20
°¨»çÇÕ´Ï´Ù Âü°íÇÒ²²¿ä^^
´ñ±ÛÀ» ÀÛ¼ºÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.
(±ÇÇÑÀÌ ¾ø´Â ȸ¿ø·¹º§)
¸ñ·ÏÀ¸·Î
¡â ÀÌÀü±Û: [µµ¿ò¿äû] °ÇÃà¿¡¼­ÀÇ ¸ð´õ´ÏÁò °ú Æ÷½ºÆ® ¸ð´õ´ÏÁò
¡ä ´ÙÀ½±Û: [ÅäÀÍ] µµ¿ÍÁÖ¼¼¿¬ [1]
ÀÌ¿ë¾à°ü | ±¤°í/Á¦ÈÞ | °³ÀÎÁ¤º¸Ãë±Þ¹æħ | ¹®ÀÇ/½Å°í | ¸ð¹ÙÀÏ TE31 | ¼­¹ö ºÎÇÏ : 9.75%
½Ç½Ã°£ Issue Ä¿¹Â´ÏƼ TE31 [¾ËÁö·Õ] ¨Ï 2002-2024
TOP arrow_upward