Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as text by swdf ( 18 years ago )
#include "stdafx.h"#include <windows.h> #include <time.h>#include <stdio.h>#include <iostream>using namespace std; void quick(int **sum,int **a,const int n,const int k);int qs(int **sum,int **a, int first, int last, const int n,const int k); int sr=0, per=0; int _tmain(int argc, _TCHAR* argv[]){int i,j,x,y,z,m;int n=10;int k=10;int **a,**sum;srand (time(0));a=new int* [n]; for (i=0; i<n; i++) a[i]=new int[k]; for (i=0; i<n; i++) for(j=0; j<k; j++) { a[i][j]=rand()%99; } printf("BEGINn"); for (i=0; i<n; i++) { for (j=0; j<k; j++) { printf ("%-4d",a[i][j]); printf(" "); } printf("n"); }
Revise this Paste