如何將乙個字元 VBAK 變成乙個可用的變數

2021-09-30 10:28:41 字數 654 閱讀 8897

例如我要從寫乙個程式,然後我輸入什麼,就可以從**抓數,其實這裡的核心就是把乙個c型別的變數'vbak',變成乙個可以抓數的表:

定義乙個下面這幾個型別的變數:

data

:   p_tab like dd03l-tabname.

data

: new_line  type 

ref 

to data.

定義指標:

field-symbols

: type 

any 

table

,type 

any.

p_tab = 'vbak'

create 

data  new_line  type 

table 

of (p_tab)

.assign new_line->* to .

select * into 

table 

from 

(p_tab)

where vbeln in s_vbeln

and fkdat in s_fkdat

and fkart not 

in (xx

)and bukrs = p_bukrs

這樣就可以從vbak裡面抓數了。

乙個字元驅動

實現乙個基本框架 define notice fmt,args.printk kern notice scull fmt,args define error fmt,args.printk kern err scull fmt,args static init int scull init void...

將乙個字串逆序

這個題要我自己寫還不太有思路,可能不會想到寫三個函式,而且這個 也沒有執行出來 include include include pragma warning disable 4996 有乙個字元陣列的內容為 student a am i 請你將陣列的內容改為 i am a student 要求 不能...

c c ,輸入乙個字元

getch getche 和getchar 函式 1 getch 和getche 函式 這兩個函式都是從鍵盤上讀入乙個字元。其呼叫格式為 getch getche 兩者的區別是 getch 函式不將讀入的字元回顯在顯示螢幕上,而getche 函式卻將讀入的字元回顯到顯示螢幕上。例1 include ...