`

Eclipse IDE for C/C++ Developers 开发c

 
阅读更多

http://sourceforge.net/projects/mingw/files/  下载

 

 

opencv 函数

http://www.cnblogs.com/skyseraph/archive/2011/05/23/2054592.html

 

WinGW

下载 Eclipse IDE for C/C++ Developers 

 

Fat Jar     打包工具

 

 

c  int  4 字节(4*8=32bit)

 

int a = 9;

int *b;

b=&a; 

 

printf("%d\n", a); 9

printf("%d\n", *b); 9

         printf("%d\n", b); //2293576

1,指针方便操作  能动态变换值 function (int *b ) 一般*b 是要处理后出来值变化的

|        |<----*b (包含两个属性 指针的地址 和 指向的值)

|        |

|        |

 

 

 

 

 

 

 

char *revstr(char *str, size_t len)
{
    char    *start = str;
    char    *end = str + len - 1;
    char    ch;
    if (str != NULL)
    {
        while (start < end)
        {
             ch = *start;
            *start++ = *end;
            *end-- = ch;
        }
    }
    return str;
}

void main(void) {
  char * a ="hello"; // 错误 
char  a[10] ="hello";
  printf("%s",revstr(a,strlen(a)));
}
fopen(path, "a+")  没有的话创建新文件写道
VC++ #include "stdafx.h" F5 build debug F10 F11 getchar(); 命令窗口停住
strlen(a)计算长度数组
extern "C" {
#endif/*_cplusplus*/
	
	typedef struct comp{		
		unsigned char	*source;
		unsigned short	sLen;	
		unsigned char	*dest;
		unsigned short	dLen;
		unsigned char	*seed;
		unsigned short	seedLen;
		char			*compBuf;
	}OK;
	
	extern OK 	compData ;
	
	extern short	MSendData( const char *path );
	extern void		Compress(OK *compData );
#ifdef __cplusplus
}
  #include <sys/stat.h>
#include <sys/types.h> 

struct stat st;
	 stat(path, &st);

	 int filesize = st.st_size;
	char* data = (char*)malloc(filesize); //分配内存
	 	printf("the fopen2 is: %s \n",path);
	 	fp = fopen(path, "rb");
//	 	if( (fp = fopen(path, "a+")) )
//	 	{
	 		printf("the fopen3 is: %s \n",path);
	 		fread(data, filesize, 1, fp);
	 		printf("the fopen3 is: %s  %d \n",data,filesize);
//	 	}
分享到:
评论

相关推荐

    Eclipse IDE for C/C++ Linux64位

    Eclipse IDE for C/C++ Linux64位是一款专为Linux平台设计的集成开发环境,针对C和C++编程语言提供了全面而强大的支持。Eclipse作为一个开源的、跨平台的开发工具,其C/C++版本是许多软件工程师和学生在Linux系统上...

    Eclipse IDE for C/C++ Win32位

    Eclipse IDE for C/C++是专为C/C++开发者设计的一款强大的集成开发环境(IDE),尤其在Windows 32位操作系统上表现出色。Eclipse作为一个开源项目,它提供了丰富的功能和高度可扩展性,使得软件开发变得更加高效和...

    使用_Eclipse_IDE_for_C_C++_Developers_搭建_C++_开发环境.doc

    Eclipse IDE for C/C++ Developers 配置WINDOWS下的C/C++开发环境 操作说明

    eclipse-cpp-2021-12-R-linux-gtk-aarch64.tar.gz

    Eclipse IDE for C/C++ Developers 是一款专门为C和C++编程者设计的集成开发环境(IDE),它在软件开发领域有着广泛的应用。该版本“eclipse-cpp-2021-12-R-linux-gtk-aarch64.tar.gz”是针对64位Linux架构(aarch64...

    eclipse-embedcpp-2022-06-R-win32-x86_64.zip

    Eclipse IDE for Embedded C/C++ Developers(eclipse-embedcpp-2022-06-R-win32-x86_64.zip) 适用于Windows x86_64: An IDE for Embedded C/C++ developers. It includes managed cross build plug-ins (Arm and ...

    Eclipse IDE C/C++ Mac OS X 64Bit

    Eclipse IDE for C/C++ Developers 该版本适合C/C++开发者,集成了良好的C/C++语言支持。

    用Eclipse平台进行C/C++开发

    1. **Eclipse CDT安装**:首先,你需要下载Eclipse IDE for C/C++ Developers版本,或已安装Java版本的Eclipse通过"Help" -&gt; "Install New Software"添加CDT插件。在Work with框中输入CDT的更新站点地址,然后选择并...

    win7 安装Eclipse IDE for C C++&Opencv

    标题中的“win7 安装Eclipse IDE for C/C++&OpenCV”指的是在Windows 7操作系统上安装Eclipse集成开发环境(IDE)用于C/C++编程,并且结合OpenCV库进行计算机视觉开发的过程。Eclipse是开源的、跨平台的开发工具,...

    Ubuntu下使用Eclipse开发C/C++

    最后,从Eclipse官方网站下载适合C/C++开发的Eclipse版本,通常是Eclipse IDE for C/C++ Developers。 ##### 1.2 安装Eclipse CDT 下载完成后,通过解压缩文件并移动到 `/opt` 目录下完成安装。接下来,可以通过...

    Eclipse下的c/c++开发环境配置

    - 下载并安装 Eclipse IDE for C/C++ Developers 版本。 - 启动 Eclipse,通过 Help -&gt; Eclipse Marketplace 搜索并安装 CDT 插件。 - 安装完成后重启 Eclipse。 #### 二、配置 Eclipse 项目 1. **创建一个新的...

    eclipse-cpp-2021-06-R-linux-gtk-aarch64.tar.gz

    Eclipse作为一款全球广受欢迎的开源集成开发环境(IDE),为多种编程语言提供了强大的支持,尤其是对于C/C++开发者而言,Eclipse的C/C++版本——Eclipse IDE for C/C++ Developers,是他们日常开发不可或缺的工具。...

    Eclipse For C++ 配置

    本文将详细介绍如何搭建 Eclipse IDE for C/C++ Developers,并配置相关的开发工具,如 MinGW 编译器等。 #### 二、配置 JDK Eclipse 是基于 Java 开发的应用程序,因此首先需要配置好 JDK(Java Development Kit...

    Eclipse CDT + C / C++ 环境安装+编译_调试

    - 下载Eclipse IDE for C/C++ Developers版本,或者安装完基础Eclipse后,通过Eclipse Marketplace搜索并安装CDT插件。 - 安装完成后,重启Eclipse,CDT的相关功能会自动集成到IDE中。 2. **配置编译环境**: - ...

    Eclipse CDT(C & C++ Development Tooling)开发环境的搭建.pdf

    1. 下载Eclipse IDE for C/C++ Developers安装包。 2. 解压安装包至指定位置。 3. 启动Eclipse,通过Help菜单下的Install New Software功能安装CDT插件。 4. 配置好JDK和MinGW后,即可开始使用Eclipse CDT进行C/C++...

    Eclipse C/C++开发

    1. 下载Eclipse IDE:首先,你需要从Eclipse官网下载适合你操作系统的Eclipse IDE版本,通常是"Eclipse IDE for C/C++ Developers",这个版本已经包含了CDT插件。 2. 安装CDT:如果你下载的版本没有预装CDT,可以...

    eclipse+qt+c/c++进行GUI界面开发

    - **下载地址**: Eclipse IDE for C/C++ Developers (http://www.eclipse.org/downloads) - **推荐版本**: 非安装版,直接解压使用 - **目的**: Eclipse 是一款强大的集成开发环境(IDE),而 CDT(C/C++ Development ...

    Eclipse c/c++ 运行

    在本文中,我们将深入探讨如何在Eclipse IDE中设置并运行C/C++程序,特别是针对Eclipse IDE for C/C++ Developers版本。Eclipse是一款广泛使用的开源集成开发环境,支持多种编程语言,包括C和C++。它提供了丰富的...

    eclipse-cpp-2021-06-R-win32-x86_64.zip

    【标签】"Eclipse C/C++ C/C++Developers EclipseIDE IDEforC/C++" 这些标签突出了Eclipse IDE在C/C++开发领域的应用,强调了它作为C/C++开发者工具的重要性。"Eclipse C/C++"表示Eclipse为C/C++语言提供专门的支持...

    eclipse-embedcpp-2021-03-R-win32-x86_64.zip

    Eclipse IDE for Embedded C/C++ Developers 是一个专为嵌入式系统开发人员设计的集成开发环境(IDE),它集成了C和C++编程语言的支持。这个版本是"2021-03-R",表明它是2021年3月发布的更新版本,适用于Windows 64...

Global site tag (gtag.js) - Google Analytics