- 博客(16)
- 资源 (14)
- 收藏
- 关注
原创 MATLAB2014a搭配Notebook实现在Word2013中运行MATLAB命令
测试环境:MATLAB2014a_64bit;Windows8.1_64bit;office2013_64bit(word2013);设置方法:在MATLAB指令窗中运行以下指令,配置过程将自动进行notebook –setup假如指令窗中出现如下信息,就表示配置成功。>> notebook -setupWelcome to
2015-05-09 18:36:03 5184 1
原创 Notepad++搭配MinGW编译运行C/C++程序
首先下载Notepad++文本编译器,下载地址:http://notepad-plus-plus.org/(官网)下载在MinGW编译;下载地址:http://mingw.softonic.cn/安装Notepad++,比较简单;安装MinGW,安装时注意选择gcc和g++编译文件;配置环境变量:计算机-->属性-->高级系统设置-->环境变量-->系统:path
2015-05-08 20:05:31 1904
转载 Linux下gcc编译器的使用总结
一、基本选项GCC是开源软件中的一个顶级的C编译器gcc -Wall -o hello hello.c-W是打开警告选项-all打开所有-v显示详细信息-c只编译产生目标文件,不产生可执行文件,就是产生.o文件GCC不存在链接次序的问题,但最好遵守定义在后、调用在前的规则有效的管理庞大的项目,有make二、链接外部库标准库:gcc
2015-05-05 11:26:04 678
原创 经典排序算法-------插入排序法
/************************************************************************* > File Name: insertsort.c > Author: pengshp > Mail: [email protected] > Created Time: 2015年05月05日 星期二 00时12分21秒 ******
2015-05-05 00:26:22 450
转载 俄罗斯方块源码
#include #include #include #include #include #include #ifdef _MSC_VER // M$的编译器要给予特殊照顾 #if _MSC_VER <= 1200 // VC6及以下版本 #error 你是不是还在用VC6?! #else // VC6以上版本 #if _MSC_
2015-05-03 23:18:22 3205
原创 欢迎使用CSDN-markdown编辑器
欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl
2015-05-03 23:07:54 368
原创 单片机学习
预备必备知识:C语言模拟电路基础数字电路基础必备工具:51单片机开发版开发工具:Keil uVision4Protuse 电路仿真软件单片机精灵教学视频:零基础入门学习C语言小甲鱼倾情奉献 http://www.youku.com/playlist_show/id_6554667.html?sf=91000手把手教你学51单片机 C语言版 单片机学习 单片机开发 2014最新版http://
2015-05-03 20:41:54 1374
原创 经典排序算法——冒泡排序
#includeusing namespace std;void printarray(int *a){ int i; for (i = 0; i { cout if ((i+1)%5==0) { cout } }}int main(){ int i, j, tmp; int a[10] = { 12, 45, 46, 7, 8, 95, 64, 21, 78, 10 }; p
2015-05-03 20:41:51 492
原创 经典排序算法——选择排序法
#include using namespace std;void printarry(int *a){ int i; for (i = 0; i { //cout cout }}int main(){ int i, j, tmp; int a[10] = { 12, 45, 46, 7, 8, 95, 64, 21, 78, 10 }; printarry(a); cout for
2015-05-03 20:41:46 622
原创 linux下C语言编译的问题
在linux中用gcc编译器编写c语言代码时,不能使用数学函数(math.h),要在后面加上参数-lm,才能编译通过;如下实例:/************************************************************************* > File Name: 3.c > Author: pengshp > Mail: [email protected]
2015-05-03 20:41:41 699
原创 VIM编辑器配置文件
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 显示相关 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""set shortme
2015-05-03 20:41:37 518
原创 斐那波契数列
/*斐波那契数列指的是这样一个数列:1、1、2、3、5、8、13、21、……这个数列从第三项开始,每一项都等于前两项之和。随着数列项数的增加,前一项与后一项之比越来越逼近黄金分割的数值0.6180339887……*/#define _CRT_SECURE_NO_WARNINGS#include#include int fun(int n){ if (n == 1 || n == 2) retu
2015-05-03 20:41:33 2856
原创 C语言打印出杨辉三角形
#define _CRT_SECURE_NO_WARNINGS#include #includeint c(int x, int y);int main(){ int i, j,n=13; printf("N= "); while (n>12) { scanf("%d", &n); } for (i = 0; i //控制输出n行 { for (j = 0; j { printf("
2015-05-03 20:41:29 2034
原创 C语言编写代码绘制圆
#include #include int main(){ double y,m; int x; for (y = 10; y >= -10;y--) //圆的半径为10 { m = 2.5*sqrt(100 - y*y); //计算行y对应的列坐标m,2.5为屏幕纵横比调节系数, //屏幕的行距大于列距,不调节会是椭圆 for (x = 1; x { printf(" ");
2015-05-03 20:41:23 27565 1
原创 绘制余弦函数曲线
#include #include#include int main(){ double y; int x, m; for (y = 1; y >= -1;y-=0.1) //y为列方向,值从1到-1,步长为0.1 { m = acos(y) * 10; //计算出y对应的弧度m,乘10为图像扩大倍数 for (x = 1; x { printf(" "); } print
2015-05-03 20:41:19 871
原创 用筛选法求出100以内的素数
#include#include #define N 100void PrintPrime(int a[], int n){ int i; for (i = 2; i <= n;i++) { if (a[i]!=0) { printf("%d\t", a[i]);// cout << a[i] << "\t" // error C2065 : “
2015-05-03 16:53:06 2438 2
vmware王爽汇编语言学习环境搭建
2016-04-12
树梅派2 OpenWrt镜像
2015-09-22
Multisim BLUE汉化包(最新)
2015-07-24
Proteus元件库(7.5版本以上)
2015-06-28
Keil_4_C51汉化补丁
2015-06-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人