Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. int i, j, N;
  2. j=0;
  3. N = len(MyArray)/len(char);
  4. char* tempArray[N]    //malloc this if it doesnt like variable length arrays
  5. while(i=0; i<N; i++){
  6.     if(MyArray[i]<123 && MyArray[i]>96){
  7.         tempArray[j] = MyArray[i];
  8.         j++;
  9.     }
  10. }
  11. while(i=0; i<N; i++){
  12.     if(MyArray[i]<91 && MyArray[i]>64){
  13.         tempArray[j] = MyArray[i];
  14.         j++;
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement