SXKDZ
  • Home
  • About Me
  • Links
Subscribe
Tagged

C++

A collection of 1 post

Programming

趣题:程序填空一则

Samhjn在群里分享了一个问题: 请补充完成以下 C++ 程序的f函数,使得run函数得到执行。你补充的代码必须符合以下要求: 必须在一行之内完成补充的代码; 补充部分不得超过19个字符; 不能使用如下关键字、标识符或操作符:main、run、asm、#、&、*、%、/、_、(、,; 只能使用一个分号。 (Copyright ©️ Microsoft Student Club @ Wuhan University) #include <cstdio> void run(void) { printf("Hello Microsoft Student Club!\n"); return ; } int f(void) { // write your code here } int main(void) { if (f() != f(

  • SXKDZ
SXKDZ Sep 14, 2016 • 2 min read
SXKDZ © 2023
Powered by Ghost