首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴wp231957的代码贴全部
#include<stdio.h>

//这是一段 能够输出1000000以内的所有回文数的程序
int main()
{
    char jym[8]= {'\0'};
    int cssj;
    int index=0;
    int ip1,ip2;
    int tmp;
    for(cssj=11; cssj<=1000000; cssj++)
    {
......................
阅读全部 | 2013年12月6日 11:33
#include<stdio.h>

//这是一段校验身份证真伪的一段代码
int main()
{
   int  jqyz[17]={7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2}; //对应前17位的加权因子
   char jym[11]={'1','0','X','9','8','7','6','5','4','3','2'};  // 11位校验码
   char sfz[100]={'\0'};
   int  jqcj=0;
   printf("请输入待校验的身份证号码:");
   scanf("%s",&sfz[0]);
   return 0;
......................
阅读全部 | 2013年12月6日 10:03
#include <stdio.h>
#include <string.h>

int main()
{
    char tmp[100]= {'\0'};
    char* t="T/TOOL_NUM/ MO6";
    char* subt="/TOOL_NUM/";
    char* _subt="02";
    char* newt=strstr(t,subt);
    if(newt==NULL)
    {
......................
阅读全部 | 2013年11月13日 14:00
// ConsoleApplication1.cpp : 定义控制台应用程序的入口点。
//

#define _CRT_SECURE_NO_WARNINGS     //该死不


#include <stdio.h>
#include <malloc.h>

int main()
{
char* s[200];
......................
阅读全部 | 2013年11月6日 20:37
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main()
{
char c[]="1234567";
char tmp[100]={"\0"};
int clen=strlen(c);
int  n=3;
int n2=n;
int n3=n;
int index=0;
......................
阅读全部 | 2013年10月18日 12:51
YCFHQ-9DWCY-DKV88-T2TMH-G7BHP
阅读全部 | 2013年10月17日 18:16
禁用js脚本

@echo off
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3"  /v  1400 /t REG_DWORD /d 3 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3"  /v  1402 /t REG_DWORD /d 3 /f
exit
@echo on


开启js脚本

@echo off
......................
阅读全部 | 2013年8月30日 08:34
#include <stdio.h>
#include <windows.h>

int main()
{
HANDLE hFile = CreateFile(TEXT("d:\\test.txt"),GENERIC_READ,0,NULL,OPEN_EXISTING ,
                      FILE_ATTRIBUTE_NORMAL,NULL);                                            
if (hFile == INVALID_HANDLE_VALUE) 

OutputDebugString(TEXT("CreateFile fail!\r\n"));
}
char *p[10000];    //分配文本文件的行数,暂定最多接收10000行
......................
阅读全部 | 2013年8月13日 15:41
//统计文件行数
int frows(HANDLE hFile)
{
int ret=0;
DWORD filesize=GetFileSize(hFile,NULL);
char* buffer=new char[filesize+1];                    
memset(buffer,0,filesize+1);
DWORD readsize;
ReadFile(hFile,buffer,filesize,&readsize,NULL);
int i;
for(i=0;i<(int)filesize;i++)
{
......................
阅读全部 | 2013年8月13日 14:38
#include <stdio.h>
#include <windows.h>

//以16进制方式 输出文件内容 (所谓内码)
int frows(HANDLE hFile)
{
int ret=0;
DWORD filesize=GetFileSize(hFile,NULL);
char* buffer=new char[filesize+1];                    // 最后一位为 '/0',C-Style 字符串的结束符。
DWORD readsize;
ReadFile(hFile,buffer,filesize,&readsize,NULL);
int i;
......................
阅读全部 | 2013年8月13日 10:40
上一页 4 5 6 7 8 9 10 11 12 13 下一页
wp231957