![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程中被遗漏的细节
"dandan"不能定义
一切特立独行的人格都意味着强大!!
展开
-
#include插入文件内容和代码/倒序输出参数
#include的无聊用法#include<stdio.h>int main(void){ printf #include"test.txt" return 0;}原理:预编译的时候,将#include文件的内容嵌入到所在位置。在文本中嵌入一段代码也是可以的,等同于文本的代码放在#include指令位置使用场景:在你需要的文本内容比较长,不想直接复制在源代码里面的时候,其实就可以考虑这种方式了。倒序输出参数#include <stdio.h&g原创 2020-09-19 14:48:54 · 199 阅读 · 0 评论 -
linux下如何实现helloworld程序
如何从.c文本变成可以打印出”hello world“的可执行文件的呢?/*include head file*/#include<stdio.h>/*the main function*/int main(int argc,char *argv[]){ printf("Hello World!"); return 0 ;}linux编译并运行: gcc -o helloWorld helloWorld.c ./helloWorld Hello Wo.原创 2020-09-19 15:11:39 · 1784 阅读 · 0 评论