易截截图软件、单文件、免安装、纯绿色、仅160KB

这道C/C++有错?

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define MAXCOUNT 2*100
char *transfromation(char *str)
{
    int len = strlen(str);
    char *buf = new char[len + 1];
    char *p = str;
    char *q = p + 1;
    int count = 1;
    while(*q)
    {
        if(*p == *q)
        {
            count++;
            p++;
            q++;
        }
        else
        {
            itoa(count,buf,10);
            int nbits = strlen(buf);
            strcat(buf,q);
            *q = 0;
            strcat(str,buf);
            q += nbits;
            p = q;
            q = p + 1;
            count = 1;
        }
        itoa(count,buf,10);
   


相关问答:

C 程序问题 (二) - C/C++ / C语言

问一下:
#include <stdio.h>
int main()
{
  char x, y, z;
  int i;
  int a[16];
  for(i=0; i<=16; i++)
  {
  a[i] = 0;
  ......

能用C/C++简单实现五子棋程序吗?

最近突然想自己来实现一个五子棋程序,但不知道怎么开始,自己也没学画图形函数,能在控制台下直接写吗>>>?????
控制台?比图形界面更麻烦。
http://search.download.csdn.net/search/%E4%BA%94%E5%AD%90% ......

C#调用 C DLL问题,懂的来抢分了

//C 接口
extern "C"
{
  TESSDLL_API int __cdecl GetTessText(const char *imagefile, char *text);  
}
//我在C#中声明
//调用C DLL 中的函数
[DllImport("OCRapi.dll&quo ......

C、C++、VC++ 精品电子书发布啦!

内容涉及:C、C++、STL、VC++、MFC、COM、ATL、Windows网络编程、数据库编程、Windows驱动编程、软件工程、Windows操作系统编程,等等方面。

下载地址:http://www.cctry.com/forumdisplay.php?fid=46

......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号