nonmain.cpp

来自「没有主函数的hello程序」· C++ 代码 · 共 32 行

CPP
32
字号
/**********************************************************************************
*                                                                                 *
*  Copyright (c) by Royal. All rights reserved.                                   *
*                                                                                 *
*  Permission to use, copy, modify, and distribute this software for any purpose  *
*  is hereby granted without fee, provided that this copyright and permissions    *
*  notice appear in all copies and derivatives, and that no charge may be made    *
*  for the software and its documentation except to cover cost of distribution.   *
*                                                                                 *
*  This software is provided "as is" without express or implied warranty.         *
*                                                                                 *
**********************************************************************************/

/*
*  Description:
*
*    A program has no main function:)
*
*  History:
*
*    Initial version created by Royal, July, 2004.
*
*  Notes:
*
*    This code has been written to conform to standard C++ and STL. It has been
*    compiled successfully using GNU C++ 3.2, Borland C++ 5.5, and Visual C++ 7.0.
*/

#define O_O int main() {std::cout << "Hello, World!";}
#include <iostream>
O_O

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?