display:flex;
align-items: center;
input提示: placeholder='提示内容'
/*
//sort(需要排序的数组索引,结尾索引)
如果 arr[4]
sort(arr+1,arr+3)就是对前3个数排序
*/
using namespace std;
int main() {
string fivenum[5];
for(int a=0;a<5;a++){
cout<<"请输入第:"<<a+1<<"个数"<<endl;
cin>>fivenum[a];
}
//降序
sort(fivenum+3,fivenum+5);
//升序
// sort(fivenum+3,fivenum+5,[](const string &a,const string &b){
// return a>b;
// });
cout<<"排序结果如下:"<<endl;
for(int a=0;a<5;a++){
cout<<fivenum[a]<<endl;
}
return 0;
}
<!DOCTYPE html>
<html>
<body>
<?php
// 检查是否有名为 'test' 的参数,并输出其值
if (isset($_GET['test'])) {
echo "have: " . htmlspecialchars($_GET['test']);
} else {
echo "no 'test'";
}
?>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<?php
$html = file_get_contents("http:------------");
echo $html;
?>
</body>
</html>
注意为http