C语言typedef问题

Python039

C语言typedef问题,第1张

struct a

{

int afirld

struct b *bPointer/相当与这。。下面一样

}

typedef就是定义APTR为struct a *型指针,,下一个通

BrowseInfoA

是个 win32 Api 需要的结 构,在 pb 里面要自己申明

type browseinfo from structure

long hwndowner

long pidlroot

string pszdisplayname

string lpsztitle

unsignedlong ulflags

unsignedlong lpfn

unsignedlong lparam

long iimage

end type

type shfileopstruct from structure

long hwnd

unsignedlong wfunc

long pfrom

string pto

unsignedlong fflags

boolean fanyoperationsaborted

long hnamemappings

string lpszprogresstitle

end type

建立一个结构:BrowseInfo

unsignedlong hwndowner

unsignedlong pidlroot

string pszdisplayname

string lpsztitle

unsignedlong ulflags

unsignedlong lpfn

unsignedlong lparam

unsignedlong iimage

就可以了,再不清楚的话,你就查一下MSDN里相同函数的参数的意思.

#!/bin/bash

# 这是 linux 下 shell 的实现

# N 次方二项式系数杨辉三角

CNT=8

A="1"

if [ $A = 1 ]then

echo 1

A="1 1"

echo $A

fi

CX=0

while [ $CX -lt $CNT ]do

fst=1

for i in $Ado

if [ $i = 1 -a $fst = 1 ]then

fst=0

echo 1

last=1

continue

else

echo `expr $i + $last`

if [ $i = 1 ]then

echo 1

break

else

last=$i

fi

fi

done | tr '\n' ' ' >ttmm

cat ttmm

A=`cat ttmm`

echo

CX=`expr $CX + 1`

done

exit