我想知道如何做到这一点:
func(param1|param2|param3)
Run Code Online (Sandbox Code Playgroud)
然后在函数中提取这些值,我在多个函数中看到过这个,或者这样做更好:
func(param1, ...)
Run Code Online (Sandbox Code Playgroud)
?
我试图用C++做到这一点,我正在考虑将函数的参数作为枚举中的值.
我该如何解决这个问题?
我正在尝试根据页面大小制作textarea比例.即我试图让textarea填充第二个容器和页脚之间的空间.
HTML:
<!DOCTYPE html>
<html>
<head>
<title>MySite</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<!-- Bootstrap -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="sticky-footer.css" rel="stylesheet">
</head>
<body>
<div id="wrap">
<div class="container">
<h4 class="well well-sm">My site </h4>
</div>
<div class="container">
<div class="well well-sm">
<div class="btn-group">
<button type="button" class="btn btn-default">Domain</button>
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Test</a></li>
<li><a href="#">Test 2</a></li>
</ul>
</div>
<div class="checkbox inline">
<label>
<input type="checkbox" id="checkBoxError">Error</input>
</label>
</div>
</div>
</div>
<div class="container">
<textarea …Run Code Online (Sandbox Code Playgroud)