摘要: void quick_sort(int a[],int l,int r){ if(l>=r) return; int i=l-1,j=r+1,x=a[l+r>>1]; while(i<j){ do i++;while(a[i]<x); do j--;while(a[j]>x); if(i<j) sw 阅读全文
posted @ 2023-09-28 20:07 w_333 阅读(19) 评论(0) 推荐(0)
摘要: #include <iostream> int main(){ using namespace std; double y=56; int n=56; cout.precision(1); cout<<y<<endl<<n; system("pause"); } 此时输出y时变为了科学计数法6e+0 阅读全文
posted @ 2023-04-22 22:21 w_333 阅读(68) 评论(0) 推荐(0)