提交 d4e82f7b 编写于 作者: 懂一点的陈老师's avatar 懂一点的陈老师

精简内容

上级 30ff21b6
# !/bin/bash
# 执行的命令如下
# 拷贝下面的内容_黏贴到下面的集成终端中去执行
# 拷贝的时候_不要拷贝#号
# ./a11_拼命用鼠标右键_在集成终端中打开_然后执行我1次_快使劲啊_少年.sh
make 1_check
make 2_init
make clean
#! /usr/bin/make -f
SHELL=/bin/bash
# 在使用make的缺省运行目标如下
编译与构建所有的c++源代码: c01_helloworld.wmbin_out
c01_helloworld.wmbin_out: c01_helloworld.c
gcc -g $< -o $@
#.PHONY表示这是个没有目标的规则语句,即伪目标,clean表示伪目标命令名称
.PHONY:
clean:
-@rm -rf *.wmbin_out
#include <stdio.h>
// 下面是一个合法的utf8编码的函数
void 说点啥_清华大学(){
int i = 0 ;
char *强基工程说 = "佛山的小学生,风里雨里,我们在清华等你";
printf("信息奥赛我来了!\n");
printf("%s\n",强基工程说);
}
int main()
{
/* 我的第一个 C 程序 */
int j = 46;
说点啥_清华大学();
printf("Hello, World 真实世界! \n");
return 0;
}
#! /usr/bin/make -f
SHELL=/bin/bash
# 在使用make的缺省运行目标如下
编译与构建所有的c++源代码: c11_input_1.wmbin_out \
c12_div_1.wmbin_out \
c13_bin_demo.wmbin_out \
c14_ten_to_two.wmbin_out
c11_input_1.wmbin_out:c11_input_1.cpp
g++ -g $< -o $@
c12_div_1.wmbin_out:c12_div_1.cpp
g++ -g $< -o $@
c13_bin_demo.wmbin_out:c13_bin_demo.cpp
g++ -g $< -o $@
c14_ten_to_two.wmbin_out:c14_ten_to_two.cpp
g++ -g $< -o $@
#.PHONY表示这是个没有目标的规则语句,即伪目标,clean表示伪目标命令名称
.PHONY:
clean:
-@rm -rf *.wmbin_out
#! /usr/bin/make -f
SHELL=/bin/bash
# 在使用make的缺省运行目标如下
编译与构建所有的c++源代码: c21_space1.wmbin_out
c21_space1.wmbin_out: c21_space1.cpp
g++ -g $< -o $@
#.PHONY表示这是个没有目标的规则语句,即伪目标,clean表示伪目标命令名称
.PHONY:
clean:
-@rm -rf *.wmbin_out
#include <iostream>
namespace 我的_名字空间 {
int a = 10;
int b = 20;
int my_add(int left, int right) {
return left + right;
}
int my_sub(int left, int right) {
return left - right;
}
}
// using namespace 我的_名字空间;
using 我的_名字空间::my_add;
int main() {
std::cout << 我的_名字空间::a << std::endl;
// std::cout << b << std::endl;
int s = my_add(11, 15);
std::cout << s << std::endl;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册