From f406dbde640a26bf8114c11b404d1a59c8416685 Mon Sep 17 00:00:00 2001 From: Archit286 Date: Thu, 3 Oct 2019 18:59:02 +0530 Subject: [PATCH 1/4] Added my name --- index.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index fbe6a9b..55992d2 100644 --- a/index.html +++ b/index.html @@ -51,7 +51,13 @@
Tan - + +
+
I am a pH-developers
+
Archit Gupta MEC
+

My profile is: github.com/Archit286

+
+
From 009d1f8caaae6500743ed68738f4025f2af75868 Mon Sep 17 00:00:00 2001 From: Archit286 Date: Thu, 3 Oct 2019 21:13:34 +0530 Subject: [PATCH 2/4] Removed the infinte loop and added a semi colon for switch statement --- problems_c_c++/ques_3.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/problems_c_c++/ques_3.cpp b/problems_c_c++/ques_3.cpp index 1f2346c..3f1959e 100644 --- a/problems_c_c++/ques_3.cpp +++ b/problems_c_c++/ques_3.cpp @@ -4,7 +4,7 @@ int main(){ do{ printf("-----------------------PrintHello-------------------------------\n"); int k = n*n/n-n+n/n; - while(k++){ + while(k--){ printf("\nKickstart your programming skills with C/C++\n\n"); for(int i=k;i Date: Thu, 3 Oct 2019 21:20:18 +0530 Subject: [PATCH 3/4] Added some semicolons removd the extra double qoutes and removed stray backslash --- problems_c_c++/ques_4.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/problems_c_c++/ques_4.cpp b/problems_c_c++/ques_4.cpp index 647d11e..250db26 100644 --- a/problems_c_c++/ques_4.cpp +++ b/problems_c_c++/ques_4.cpp @@ -3,10 +3,10 @@ using namespace std; int main() { printf("----------------PrintHello----------------\n\n"); printf("Facts about PYTHON\n"); - printf("1. Python doesn't need semi column(;)\n") - printf("2. They don't need brackets"{}\n"); - printf("3. They work on indentation\n") \; - printf("4. Python helps you to make project in AI, ML, Computer Vison.\n\n"); + printf("1. Python doesn't need semi column(;)\n"); + printf("2. They don't need brackets{}\n"); + printf("3. They work on indentation\n"); + printf("4. Python helps you to make project in AI, ML, Computer Vison.\n\n"); printf("Learn this amazing IEEE ranked #1 Language with us\nRegister Now on\nwww.printhello.in"); return 0; } From 0dd9cc48096138cb9c7376dcbe6a68c6a686bca1 Mon Sep 17 00:00:00 2001 From: Archit286 Date: Thu, 3 Oct 2019 22:46:39 +0530 Subject: [PATCH 4/4] Changed pointer to array to normal as it does work with strcat --- problems_c_c++/ques_1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/problems_c_c++/ques_1.cpp b/problems_c_c++/ques_1.cpp index 1d6cd67..79db7f0 100644 --- a/problems_c_c++/ques_1.cpp +++ b/problems_c_c++/ques_1.cpp @@ -4,8 +4,8 @@ #include using namespace std; char* get_company_name(){ - char *initial = "Print"; - char *rest_name = "hello"; + char initial[20] = "Print"; + char rest_name[10] = "hello"; return strcat(initial,rest_name); } int main() {