main.cpp

来自「一本语言类编程书籍」· C++ 代码 · 共 14 行

CPP
14
字号
// Exercise 10.1 Using multiple files and preprocessor directives.  File: main.cpp
// We have seven files in all. 
// The file main.cpp only needs to #include  two of our three new header files,
// since all it does is call the functions printthis() and printthat():

#include "printthis.h"
#include "printthat.h"

int main(){
  print_this("This is a test string using printthis().");
  print_that("This is a test string using printthat().");

  return 0;
}

⌨️ 快捷键说明

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