C 语言
zzzkiti
自动化专业,现做的领域是视觉自动化
展开
-
论数组a[5]中的a和&a
13#include stdio.h> 14 15 int main(int argc, char *argv[]) 16 { 17 char a[] = {'a','b','c','d'};//没有确定数组大小,以下p1、p2编译时有警告 18 char (*p1) = &a;//p1是指针 19 char (*p2) = a;//p2是指针原创 2013-04-16 00:20:24 · 1076 阅读 · 0 评论 -
IAR 下载 Fatal error: Failed to identify device. Check connections and/or reset hardware
今天在使用网蜂的开发板,今天调试下载出现以下错误,现在记录如下:按照网蜂官网教程安装环境,正常使用几天了,但这次下载链接的时候出现的提示如下:Fatal error: Failed to identify device. Check connections and/or reset hardware Session aborted!查看软件设置没什么问题,驱动也没什么问题,没能解决原创 2013-05-10 10:54:14 · 26239 阅读 · 8 评论 -
24点游戏源码
#include #include #include #include #define N 5typedef struct { int elem[50]; int top;}seqstack;unsigned char pri[7][7] = { '>','>','','>', '>','>','','>', '>','>','>','>原创 2013-05-28 16:20:34 · 1183 阅读 · 0 评论 -
C++ 中ACSII字符集和Unicode字符集转换
#include "stdio.h"#include "iostream"#include "string"#include "locale.h"//#include "winapi.h"using namespace std;/*编码统一化,编写单一源代码如果我们建立的两个版本的程序,一个处理ACSII字符集,另一个处理Unicode字符串,最好的解决方法是编写出一个既能...原创 2019-05-31 13:57:04 · 483 阅读 · 0 评论 -
静态库和动态库应用汇总
简单的静态库文件和测试//库文件.h#pragma onceclass MyMath{public: MyMath(); ~MyMath();public: int Add(int, int);};extern "C"{ int Sub(int a, int b);}//库文件.cpp#include "stdafx.h"#include "MyMath....原创 2019-06-02 21:28:04 · 201 阅读 · 0 评论