diff --git a/C++/See wifi pass.cpp b/C++/See wifi pass.cpp new file mode 100644 index 0000000..7eda185 --- /dev/null +++ b/C++/See wifi pass.cpp @@ -0,0 +1,17 @@ +#include +#include +using namespace std; +string x; +int y; +int main() +{ +system("color e"); +cout<< ("\nsamz>\t"); +system("netsh wlan show profile"); +cout << ("WHICH ONE?--"); +string z = "netsh wlan show profile\t \""; +string n = "\"\tkey=clear"; +cin >> x; +z = z + x + n; +system(z.c_str()); +} diff --git a/C/samzmaths.c b/C/samzmaths.c new file mode 100644 index 0000000..6ad4ca0 --- /dev/null +++ b/C/samzmaths.c @@ -0,0 +1,51 @@ +#include +#include + +int main() +{ + + system("color 4"); + printf("\nSamz math>\t"); + + + float a,d,p=1,i; + char operator; + + scanf("%f", &a); + scanf("%c", &operator); + scanf("%f", &d); + + for(i=1;i<=d;i++) + p=p*a; + + switch(operator) + { + + case '+': + printf("=%.2f\n\n", a+d); + break; + + case '-': + printf("=%.2f\n\n", a-d); + break; + + case '*': + printf("=%.2f\n\n", a*d); + break; + + case '/': + printf("=%.2f\n\n", a/d); + break; + + case '^': + printf("=%.2f\n\n", p); + break; + + + } + + + main(); + getch(); + +}