上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 80 下一页
摘要: mapgis6.7二次开发vc6_demo 之六(mapgis公用函数二次封装库)/////////////////////////////////////////// //mapgis_common.cpp //mapgis公用函数二次封装库 //vp:hsg //create date:2012-04 // /////////////////////////////////////////// #include "stdafx.h" #include "resource.h" #include <math.h> #include &quo 阅读全文
posted @ 2012-04-20 17:14 sqlite例子 阅读(277) 评论(0) 推荐(0) 编辑
摘要: mapgis6.7二次开发vc6_demo 之五(输出VCT函数之表属性段)////////////////////////////////////////////// // //输出vct属性值 version=1, topo=0 //vp:hsg //create date:2012-04-20 // ////////////////////////////////////////////// #include "stdafx.h" #include "resource.h" #include <math.h> #include &quo 阅读全文
posted @ 2012-04-20 17:06 sqlite例子 阅读(160) 评论(0) 推荐(0) 编辑
摘要: mapgis6.7二次开发vc6_demo 之五(输出VCT函数之面图层)////////////////////////////////////////////// // //输出vct面坐标 version=1, topo=0 //vp:hsg //create date:2012-04-20 // ////////////////////////////////////////////// #include "stdafx.h" #include "resource.h" #include <math.h> #include " 阅读全文
posted @ 2012-04-20 17:04 sqlite例子 阅读(229) 评论(0) 推荐(0) 编辑
摘要: mapgis6.7二次开发vc6_demo 之五(输出VCT函数之线图层)////////////////////////////////////////////// // //输出vct线坐标 version=1, topo=0 //vp:hsg //create date:2012-04-20 // ////////////////////////////////////////////// #include "stdafx.h" #include "resource.h" #include <math.h> #include " 阅读全文
posted @ 2012-04-20 17:02 sqlite例子 阅读(197) 评论(0) 推荐(0) 编辑
摘要: mapgis6.7二次开发vc6_demo 之五(输出VCT函数之点图层)////////////////////////////////////////////// // //输出vct点坐标 version=1, topo=0 //vp:hsg //create date:2012-04-20 // ////////////////////////////////////////////// #include "stdafx.h" #include "resource.h" #include <math.h> #include " 阅读全文
posted @ 2012-04-20 17:00 sqlite例子 阅读(167) 评论(0) 推荐(0) 编辑
摘要: mapgis6.7二次开发vc6_demo 之五(输出VCT函数 总入口)////////////////////////////////////////////// // //VCT 导出功能 version=1, topo=0 //vp:hsg //create date:2012-04-20 // ////////////////////////////////////////////// #include "stdafx.h" #include "resource.h" #include <math.h> #include " 阅读全文
posted @ 2012-04-20 16:25 sqlite例子 阅读(200) 评论(0) 推荐(0) 编辑
摘要: C/C++ 去掉字符串首尾空格函数//去掉字符串首(左)空格函数 char* ltrim_lc(char* s) { char* s_s=new char[strlen(s)+1]; strcpy(s_s,s); char* s_rev=strrev(s_s); s_rev=rtrim_lc(s_rev); char* d_s=strrev(s_rev); return d_s; } //去掉字符串尾(右)空格函数 char* rtrim_lc(char* s) { char* s_s=new char[strlen(s)+1]; strcpy(s_s,s); /... 阅读全文
posted @ 2012-04-20 10:41 sqlite例子 阅读(922) 评论(0) 推荐(0) 编辑
摘要: C/C++ 分割字符并返回字符数组实例//分割字符并返回字符数组 char **GetStrArray(char* s,const char* d) { char* s_s=new char[strlen(s)]; strcpy(s_s,s); //计算字符数组个数 int rows=0; char *p_str=strtok(s_s,d); while(p_str) { rows+=1; p_str=strtok(NULL,d); } //重新初始二维数据 char **strArray=new char*[rows+1... 阅读全文
posted @ 2012-04-19 17:31 sqlite例子 阅读(547) 评论(0) 推荐(0) 编辑
摘要: C/C++二维数据 静态动态声明和初始化及访问方法实例void D2A_test() { int rows=3; int cols=4; int i,j; int *p; char* pret; //静态声明二维数据 /* int a[3][4]={{1,2,3,4},{11,12,13,14},{21,22,23,24}}; //赋值 for(i=0;i<rows;i++) { for(j=0;j<cols;j++) { a[i][j]=i*4+j; } } // p=a[0]; //数组首地址 //一般二维数据读... 阅读全文
posted @ 2012-04-19 15:44 sqlite例子 阅读(187) 评论(0) 推荐(0) 编辑
摘要: mapgis6.7二次开发vc6_demo 之四(VCT导出之 version=1,topo=0)本文所述内容为国土行业的VCT版本为1,拓扑=0的结构即为2002年国家标准本文主要包括有(vct文件头段输出功能;vct要素类段输出功能;vct字段结构输出功能;vct线要素几何图形输出功能;vct属性结构输出功能;)其中vct点要素几何图形输出功能; vct面要素几何图形输出功能; vct注记几何图形输出功能;将在后续的文章中描述;//Vct_Export.cpp文件内容如下所示:////////////////////////////////////////////// // /... 阅读全文
posted @ 2012-04-18 18:10 sqlite例子 阅读(273) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 80 下一页