摘要:
1 #include 2 #include 3 using namespace std; 4 5 class STU_INFO 6 { 7 private: 8 string name = "unknown"; 9 string sex = "unknown"; 10 int age = -1; 11 12 public: 13 ... 阅读全文
摘要:
在使用git 对源代码进行push到gitHub时可能会出错 error: failed to push some refs to ... 出现错误的主要原因是github中的README.md文件不在本地代码目录中 可以通过如下命令进行代码合并 git pull --rebase origin m 阅读全文
摘要:
Win+R输入"regedit"打开注册表编辑器,定位到HKEY_CURRENT_USER/Software/Microsoft/DevStudio/6.0 发现下面没有"Format",这也是为什么VC环境中找不到字体的原因,注册表里面都没有该信息 在"6.0"上右键-新建-项 (New-Key) 阅读全文
摘要:
1.gg 跳转到第一行 2.shift+v 转到可视模式 3.shift+g 全选 4.按下= 阅读全文
摘要:
// 函数指针的使用 #include "stdio.h" #if 0 //形式1:返回类型(*函数名)(参数表) int (*pFun)(int); #else //形式2:typedef 返回类型(*新类型)(参数表) typedef int (*PTRFUN)(int); PTRFUN pFu 阅读全文
摘要:
关于C++中函数指针的使用(包含对typedef用法的讨论) (一)简单的函数指针的应用。 //形式1:返回类型(*函数名)(参数表) char (*pFun)(int); char glFun(int a){ return;} void main() { pFun = glFun; (*pFun) 阅读全文
摘要:
#include <stdio.h> #define u8 unsigned char u8 array[8] ={1,5,2,9,7,4,8,6}; u8 GetMax(u8 *Buf,u8 Length) { u8 i,j,temp; u8 Fg_CmpOver; for(i=0; i<Leng 阅读全文
摘要:
Build target 'Project'linking....\Output\Project.axf: Warning: L6310W: Unable to find ARM libraries..\Output\Project.axf: Error: L6411E: No compatible... 阅读全文
摘要:
#include "stdio.h"int Endian_test(void){ char tmp[4]={1,0,0,0}; return (*(int *)tmp)==1;}void main(){ if(Endian_test()) printf("Little... 阅读全文
摘要:
// 已知1999.12.31是周五// 根据年月日,判断20XX年XX月XX日是 星期几#include "stdio.h"unsigned int Year;unsigned int Month;unsigned int Day;//=============================... 阅读全文