From 321742548323a2dd0e701fb3d4654fc133cdb46a Mon Sep 17 00:00:00 2001 From: Prakash4844 Date: Mon, 11 Sep 2023 19:46:33 +0530 Subject: [PATCH] Improvment in blogs - Centered images that are not of full width - Corrected Code in Blog - TODO: Remove BackUp Links --- ...-Community-for-using-graphic.h-with-CPP.md | 18 ++++- ...-Headers-and-Source-in-CPP-for-beginner.md | 38 ++++++++--- ...ultiple-code-files-in-CPP-for-beginners.md | 15 ++++- content/blogs/Learn-to-use-Google-part-1.md | 66 ++++++++++++++++--- content/blogs/Learn-to-use-Google-part-2.md | 20 +++++- 5 files changed, 128 insertions(+), 29 deletions(-) diff --git a/content/blogs/How-to-setup-Visual-Studio-Community-for-using-graphic.h-with-CPP.md b/content/blogs/How-to-setup-Visual-Studio-Community-for-using-graphic.h-with-CPP.md index 3c8428c..7171d21 100644 --- a/content/blogs/How-to-setup-Visual-Studio-Community-for-using-graphic.h-with-CPP.md +++ b/content/blogs/How-to-setup-Visual-Studio-Community-for-using-graphic.h-with-CPP.md @@ -118,13 +118,21 @@ And Visual Studio Community will Reconfigure the Project to target the Current V **Step 9:** In Visual Studio Community, Open** the solution explorer then open the source file and you will see a bunch of files there here create a new source code file(.**cpp**) -![](/images/How-to-setup-Visual-Studio-Community-for-using-graphic.h-with-CPP/media/Sol_Explorer.jpg) + +

+ +

+ ![](/images/How-to-setup-Visual-Studio-Community-for-using-graphic.h-with-CPP/media/New_Source_File.jpg) **Step 10:** Select C++ File (.**cpp**) File. Give the new file a name(we will use “Test”), and it will be added to your project. -![](/images/How-to-setup-Visual-Studio-Community-for-using-graphic.h-with-CPP/media/test_file.jpg) + +

+ +

+ **Step 11:** Now write this code in **test.cpp** and Save the file. @@ -159,7 +167,11 @@ int main() And you will see that your Program runs and a Circle is drawn on the console that opens up as shown in the screenshot. -![](/images/How-to-setup-Visual-Studio-Community-for-using-graphic.h-with-CPP/media/Drawn_Circle.jpg) + +

+ +

+ Now, whenever you would need to write a new code just create a new file and write code in it and run just as we did for **test.cpp** diff --git a/content/blogs/How-to-use-multiple-code-files-Custom-Headers-and-Source-in-CPP-for-beginner.md b/content/blogs/How-to-use-multiple-code-files-Custom-Headers-and-Source-in-CPP-for-beginner.md index 73da039..5748d24 100644 --- a/content/blogs/How-to-use-multiple-code-files-Custom-Headers-and-Source-in-CPP-for-beginner.md +++ b/content/blogs/How-to-use-multiple-code-files-Custom-Headers-and-Source-in-CPP-for-beginner.md @@ -45,13 +45,14 @@ For this, You should use an Integrated Development Environment. This will greatl *Here you can get to know about the setup process of Visual Studio Community for C++* - - ## **Step-by-step instructions** Step 1 – Launch Visual Studio Community by Double clicking on its icon or ***right click/open.*** -![](/images/How-to-use-multiple-code-files-Custom-Headers-and-Source-in-CPP-for-beginner/media/VSComm_Open.jpg) +

+ +

+ *Open Visual Studio community* @@ -83,13 +84,20 @@ Step 5 – When Visual Studio Community Editor opens up. Look for ***Solution Ex *An Initial hello world program provided by Visual Studio community* -![](/images/How-to-use-multiple-code-files-Custom-Headers-and-Source-in-CPP-for-beginner/media/Solutionexplorer.jpg) +

+ +

+ Solution explorer tab Step 6 – Create a ***new item***. By right clicking Project in ***solution explorer*** then click ***Add*** and in next option menu click on ***new item***. -![](/images/How-to-use-multiple-code-files-Custom-Headers-and-Source-in-CPP-for-beginner/media/Create_a_new_item.png) + +

+ +

+ Create a new Item @@ -136,7 +144,7 @@ int square(int num) { - return (num \* num); + return (num * num); } ``` @@ -153,11 +161,15 @@ Adding a Header File works same as how we added another CPP source file(Squre.cp Step 8 – Create a ***new item***. By right clicking Project in ***solution explorer*** then click ***Add*** and in next option menu click on ***new item***. -![](/images/How-to-use-multiple-code-files-Custom-Headers-and-Source-in-CPP-for-beginner/media/Create_a_new_item.png) + +

+ +

+ Create a new item -Step 7 – This time select ***Header File (.h)*** File. +Step 9 – This time select ***Header File (.h)*** File. Header files are commonly used with CPP (Source) code files, with the header file providing forward declarations(Prototype) for the corresponding CPP code file. Since our header file will contain a forward declaration for functions defined in *Square.cpp*, we’ll Name our new header file *Square.h*. and Click *Create* and it will be added to your project. @@ -165,11 +177,17 @@ Header files are commonly used with CPP (Source) code files, with the header fil Choose Header file -**NOTE:** If a header file is paired with a code file (e.g. Square.h with Square.cpp), they should both have the same base name (Square). +> **NOTE:** If a header file is paired with a code file (e.g. Square.h with Square.cpp), they should both have the same base name (Square). + + Also, Check in Solution explorer if it is added to your solution -![](/images/How-to-use-multiple-code-files-Custom-Headers-and-Source-in-CPP-for-beginner/media/Header_Solution_explorer.jpg) + +

+ +

+ Check if header is included in our solution diff --git a/content/blogs/How-to-use-multiple-code-files-in-CPP-for-beginners.md b/content/blogs/How-to-use-multiple-code-files-in-CPP-for-beginners.md index f740e9a..9d2e710 100644 --- a/content/blogs/How-to-use-multiple-code-files-in-CPP-for-beginners.md +++ b/content/blogs/How-to-use-multiple-code-files-in-CPP-for-beginners.md @@ -74,13 +74,22 @@ Explorer***, its either in RHS or LHS. In ***solution explorer*** click of ***Source files*** and you will see a intial file that the vs code provides. And it will open the hello world program in editor -![](/images/How-to-use-multiple-code-files-in-CPP-for-beginners/media/image5.png) +

+ +

+ + Step 6 – Create a ***new item***. By right clicking Project in ***solution explorer*** then click ***Add*** and in next option menu click on ***new item***. -![](/images/How-to-use-multiple-code-files-in-CPP-for-beginners/media/image6.png) +

+ +

+ + + Step 7 – Select ***C++ File (.cpp)*** File. Give the new file a name(we will use “square”), and it will be added to your project. @@ -123,7 +132,7 @@ int square(int num) { - return (num \* num); + return (num * num); } ``` diff --git a/content/blogs/Learn-to-use-Google-part-1.md b/content/blogs/Learn-to-use-Google-part-1.md index 2fb4981..4231a03 100644 --- a/content/blogs/Learn-to-use-Google-part-1.md +++ b/content/blogs/Learn-to-use-Google-part-1.md @@ -42,48 +42,94 @@ When you're deciding what words to put in the search box, try to choose words th simply saying `my head hurts` won't yield anything specific. + +

+Tip 2 +

+Tip 2-1 +

+ + **Tip 3: Don’t worry about the little things** Spelling: Google's spell checker automatically uses the most common spelling of a given word, whether or not you spell it correctly. -![Tip 3](/images/Learn-to-use-Google-part-1/media/Tip3.png) + + +

+Tip 3 +

Capitalization: A search for New York Times is the same as a search for new york times. -![Tip 3-1](/images/Learn-to-use-Google-part-1/media/Tip3-1.png) +

+Tip 3-1 +

+Tip 3-1-1 +

+ + **Tip 4: Find quick answers** + For many searches, Google will do the work for you and show an answer to your question in the search results. Some features, like information about sports teams, aren't available in all regions. 1. Weather: Search `weather` to see the weather in your location or add a city name, like - `weather seattle`, to find weather for a certain place. -![Tip 4-1](/images/Learn-to-use-Google-part-1/media/Tip4-1.png) +

+Tip 4-1 +

+Tip 4-1-1 +

+ -![Tip 4-1-1](/images/Learn-to-use-Google-part-1/media/Tip4-1-1.png) + 2. Dictionary: Put `define` in front of any word to see its definition. -![Tip 4-2](/images/Learn-to-use-Google-part-1/media/Tip4-2.png) +

+Tip 4-2 +

+ + 3. Calculations: Enter a math equation like `3*9123`, or solve complex graphing equations. -![Tip 4-3](/images/Learn-to-use-Google-part-1/media/Tip4-3.png) + +

+Tip 4-3 +

+ + 4. Unit conversions: Enter any conversion, like `3 dollars in euros`. -![Tip 4-4](/images/Learn-to-use-Google-part-1/media/Tip4-4.png) + +

+Tip 4-4 +

+ + 5. Sports: Search for the name of your team to see a schedule, game scores and more. -![Tip 4-5](/images/Learn-to-use-Google-part-1/media/Tip4-5.png) + +

+Tip 4-5 +

+ + 6. Quick facts: Search for the name of a celebrity, location, movie, or song to find related information. diff --git a/content/blogs/Learn-to-use-Google-part-2.md b/content/blogs/Learn-to-use-Google-part-2.md index 930870d..23874cd 100644 --- a/content/blogs/Learn-to-use-Google-part-2.md +++ b/content/blogs/Learn-to-use-Google-part-2.md @@ -151,13 +151,22 @@ You can track (most) packages in your search bar. Just paste the tracking number No more Wondering where that delivery has gone? -![Tip 4](/images/Learn-to-use-Google-part-2/media/Tip4.webp) + +

+Tip 4 +

+ + ### **Tip 5. Spell out absurd Numbers** How do you spell out 200,845,106,052? Google can tell you if you search `[number]=english`. A card will show you that it's two hundred billion eight hundred forty-five million one hundred six thousand fifty-two. -![Tip 5](/images/Learn-to-use-Google-part-2/media/Tip5.webp) + +

+Tip 5 +

+ ### **BONUS TIP: Some FUN things | Easter Eggs** @@ -181,7 +190,12 @@ there are a number of search-related Easter eggs. Here are a few words or phrase - `Super Mario. Bros. 1985`: An animated sprite of a coin block will appear in the search card. Click it to grab a coin. - `Webdriver torso`: The Google logo will turn into colored blocks. -![Fun](/images/Learn-to-use-Google-part-2/media/Fun.webp) + +

+Fun +

+ + ### **Conclusion**