文本处理简记

#include
#include
#include
#include
using namespace std;
//实验三模板 
template 
out_t convert(const in_t &val ){
	stringstream stream;
	stream<>res;
	return res;
} 
int main(){
	freopen("stringstream.txt","r",stdin);
//试验一 区分getline() cin.get()
	cout<<"实验一"<>tt)
		cout<(price); 
 	cout<<"$"+st<

stringstream.txt :

abcdefghijklmnopqr
stuvwxyz
This header defines macros to access the individual arguments of a list of unnamed arguments whose number and types are not known to the called function.
A function may accept a varying number of additional arguments without corresponding parameter declarations by including a comma and three dots (,...) after its regular named parameters:
return_type function_name ( parameter_declarations , ... ); 
To access these additional arguments the macros va_start, va_arg and va_end, declared in this header, can be used:
First, va_start initializes the list of variable arguments as a va_list.
Subsequent executions of va_arg yield the values of the additional arguments in the same order as passed to the function.
Finally, va_end shall be executed before the function returns.

你可能感兴趣的:(C++语法)