![](https://img-blog.csdnimg.cn/20190918140145169.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
C
C
瑞 新
求职中 • Java全栈养成计划
公众号 • 让我遇见相似的灵魂
回复领取:竞赛 书籍 项目 面试
左手代码,右手吉他,这就是天下:如果有一天我遇见相似的灵魂 那它肯定是步履艰难 不被理解 喜黑怕光的。如果可以的话 让我触摸一下吧 它也一样孤独得太久。 不一样的文艺青年,不一样的程序猿。
展开
-
C++,拆分.c.h文件
文章目录效果图a.cppa.hmain.cpp效果图a.cpp#include "a.h"int fun(int x){ return x;}a.h#include <iostream>using namespace std;#define row 11int fun(int x);main.cpp#include "a.h"int m...原创 2019-12-09 16:19:32 · 1164 阅读 · 0 评论 -
CodeBlocks创建同级项目&切换项目
文章目录效果图创建同级项目c++切换项目效果图创建同级项目c++切换项目close当前dd2回到dd1主函数原创 2019-12-09 16:16:59 · 1267 阅读 · 0 评论 -
CodeBlocks一个项目创建多个.c.h文件
文章目录效果图选择>新建FILE创建.c/.h注意路径,成功创建效果图选择>新建FILE创建.c/.h注意路径,成功创建原创 2019-12-09 15:53:43 · 7153 阅读 · 0 评论 -
C语言,拆分.c.h文件
文章目录效果图xx.cxx.hmain.c效果图xx.c#include "a.h"int fun(int x){ return x;}xx.h#include <stdio.h>#include <stdlib.h>#define row 12main.c#include "a.h"int main(){ //如...原创 2019-12-09 15:48:30 · 1704 阅读 · 0 评论 -
C——超级玛丽奥
#include <stdio.h>#include <stdlib.h>int main(){ printf( " ********\n" " ************\n" " ####....#.\n" " #..###.....##....\...原创 2019-04-20 00:04:58 · 1065 阅读 · 0 评论 -
C++——求假币【三分法】
#include <iostream>#include <stdio.h>#include <stdlib.h>using namespace std; const int N = 8; int a[N] = {2,2,2,2,2,1,2,2};int Coin(int low,int high, int n);int main(){...原创 2019-04-11 11:16:25 · 1746 阅读 · 0 评论 -
Codeblocks自动代码格式化
原创 2019-03-28 10:51:02 · 1696 阅读 · 0 评论 -
exit return区别
通常情况:exit(0)表示程序正常, exit(1)和exit(-1)表示程序异常退出,exit(2)表示表示系统找不到指定的文件。在整个程序中,只要调用exit就结束(当前进程或者在main时候为整个程序)。2)return是语言级别的,它表示了调用堆栈的返回;return( )是当前函数返回,当然如果是在主函数main, 自然也就结束当前进程了,如果不是,那就是退回上一层调用。在多个进程...原创 2019-01-01 12:28:41 · 854 阅读 · 1 评论 -
C语言缓冲区之 gets(str);fflush(stdin); rewind(stdin);setbuf(stdin, NULL);
清空键盘缓冲区很多种方法,如用fflush(stdin); rewind(stdin);setbuf(stdin, NULL);前两者仅对windows有用,最后一个则对Linux系统也适用。那么为什么需要清空键盘缓冲区呢?以下几个实例:Sample one01 #include <stdio.h>02 03 int main(void)04 {05 char ch1;...原创 2019-04-27 18:16:12 · 2923 阅读 · 1 评论