Skip to content

Mo7amed3bdelghany/Clean_C-pls-pls_Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Clean C++ Code

welcome to the Clean C++ Code repository!

Introduction

This code simply cleans up your code, meaning:

  1. If there are comments they will be removed, whether it's a single comment (e.g. : //) or a block comment (e.g.: /* */).
  2. If there are any blank lines or lines consists of spaces they will be removed.
  • Before
/*
    I'm a block comment and you must remove me :(
*/


#include <iostream>
using namespace std;
// I'm a single comment and you must remove me =(

int main() {

int a, b;

cin » a » b; // Hello i'm still here ( ̄o ̄). z Z
cout « a * b « '\n';

// End of the program (remove me please X_X ) 
return 0;

}
  • After
#include <iostream>
using namespace std;
int main() {
int a, b;
cin » a » b; 
cout « a * b « '\n';
return 0;
}

Complexity

  • Time complexity: O(L * n)
  • Space complexity: O(n)

note:
L => Numbers of line.
n => length of the line.

About

Just claen code c++ from all comment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages