代码搜索:pointer
找到约 10,000 项符合「pointer」的源代码
代码结果 10,000
www.eeworm.com/read/315169/13549590
c pointer2.c
#include
int main()
{
int *p1, *p2, a, b;
a = 1; b = 20;
/*给p1,p2动态分配内存*/
if((p1 = (int *)malloc(sizeof(int))) == NULL)
{
perror(malloc);
return;
}
if((p2 = (int *)ma
www.eeworm.com/read/315169/13549591
c pointer5.c
#include
#include
/*定义该函数时不需要定义其中数组的维数*/
void copy(int a[], int b[])
{
int i;
for(i = 0; i < 10; i++)
/*在编译器中是采用*(b+i) = *(a+i)的方式来处理的*/
b[i] = a[i];
}
int main
www.eeworm.com/read/315169/13549592
c pointer4.c
#include
int main()
{
int a[10], *b;
int i;
/*给b分配内存空间*/
if((b = (int *)malloc(10 * sizeof(int))) == NULL)
{
perror("malloc");
return -1;
}
memset(b, 0, 10);
/*直接将
www.eeworm.com/read/315169/13549593
c pointer1.c
#include
int main()
{
int *p1, *p2, a, b;
a = 1; b = 20;
/*将a和b的地址赋给p1和p2*/
p1 = &a;
p2 = &b;
/*从打印的结果可以看出,这时a和b的地址与p1、p2相同,
a和b的内容也与p1、p2所指向的内容相同,它们实际是同一块内存单元*/
printf("
www.eeworm.com/read/310963/13639223
h hash-pointer.h
/*
Copyright (c) 2005, Simon Howard
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are
www.eeworm.com/read/310963/13639228
c compare-pointer.c
/*
Copyright (c) 2005, Simon Howard
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are
www.eeworm.com/read/310963/13639231
h compare-pointer.h
/*
Copyright (c) 2005, Simon Howard
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are
www.eeworm.com/read/310963/13639238
c hash-pointer.c
/*
Copyright (c) 2005, Simon Howard
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are
www.eeworm.com/read/302857/13826178
pas dgl_pointer.pas
(*
* Copyright (c) 2004
* HouSisong@263.net
*
* This material is provided "as is", with absolutely no warranty expressed
* or implied. Any use is at your own risk.
*
* Permission to use
www.eeworm.com/read/139332/5800716
hpp is_member_pointer.hpp
// (C) Copyright Dave Abrahams, Steve Cleary, Beman Dawes,
// Howard Hinnant and John Maddock 2000.
// (C) Copyright Mat Marcus, Jesse Jones and Adobe Systems Inc 2001
// Use, modification