va_start
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <cstdarg>
|
|||||||||||
| void va_start(va_list ap, parm_n); |
||
va_start宏允許訪問的可變參數命名的參數parm_n. Original:
The
va_start macro enables access to the variable arguments following the named argument parm_n. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
va_start一個有效的va_list對象的一個實例ap進行任何調用之前,應調用va_arg.Original:
va_start should be invoked with an instance to a valid va_list object ap before any calls to va_arg.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目錄 |
[编辑] 參數
| ap | - | va_list類型的一個實例
Original: an instance of the va_list type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| parm_n | - | 命名的參數前的第一個變數的參數
Original: the named parameter preceding the first variable parameter The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[编辑] 擴展後的值
(無)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 為例
Output:
150
[编辑] 另請參閱
| 訪問下一個可變參數函數的參數 Original: accesses the next variadic function argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函數宏) | |
| 結束遍歷可變參數函數的參數 Original: ends traversal of the variadic function arguments The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函數宏) | |