This Post has some Previous Posts, you can access the first Main Post here: Some C++ Problems for Beginners (1) The code was written and tested on Visual Studio 2010 –> “Empty Windows Console Application” . if you don’t have Visual Studio, you can get the latest version from : -Visual C++ 2010 Express: http://www.microsoft.com/visualstudio/eng/downloads#d-2010-express note that, you can also use another IDEs like: -Visual Studio Express 2012 for Windows Desktop: http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products#product-express-summary -CodeBlocks: http://sourceforge.net/projects/codeblocks -GNU C++ compiler GCC(g++): http://gcc.gnu.org/ -MingW GCC port for windows: http://www.mingw.org/ -C++ Builder (Borland): http://www.embarcadero.com/products/cbuilder -2DimArrayFrom1DimArray.cpp: Problem Definition: Supposing that you have the following 1 Dimensional Array called A as a known input: int A[10] = {1,1,2,5,3,4,9,8,7,1}; Fill the Char Array B (char B [10][10]) with the Histogram values taken from the Array A then Print the Histogram in B ================================================ output: ------- * * ** ***** *** **** ********* ******** ******* * ================================================
download the 2DimArrayFrom1DimArray.cpp (Commented, Explained Code) | |||||
Download all the C++ Simples I’ve created : C++ Problems |
Monday, June 3, 2013
Some C++ Problems for Beginners (7)
Some C++ Problems for Beginners (6)
This Post has some Previous Posts, you can access the first Main Post here: Some C++ Problems for Beginners (1) The code was written and tested on Visual Studio 2010 –> “Empty Windows Console Application” . if you don’t have Visual Studio, you can get the latest version from : -Visual C++ 2010 Express: http://www.microsoft.com/visualstudio/eng/downloads#d-2010-express note that, you can also use another IDEs like: -Visual Studio Express 2012 for Windows Desktop: http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products#product-express-summary -CodeBlocks: http://sourceforge.net/projects/codeblocks -GNU C++ compiler GCC(g++): http://gcc.gnu.org/ -MingW GCC port for windows: http://www.mingw.org/ -C++ Builder (Borland): http://www.embarcadero.com/products/cbuilder -TwoDimArray.cpp: Problem Definition: Write a code fragment that construct a two-dimensional array (name it B) of integers with 5 rows and 5 columns. Then: -Fill-in the array B to contain the multiplication table from 1 to 5 -Find the sum of the numbers for each row -Find the sum of all numbers in the array
download the TwoDimArray.cpp (Commented, Explained Code) | |||||
Download all the C++ Simples I’ve created : C++ Problems |
Some C++ Problems for Beginners (5)
This Post has some Previous Posts, you can access the first Main Post here: Some C++ Problems for Beginners (1) The code was written and tested on Visual Studio 2010 –> “Empty Windows Console Application” . if you don’t have Visual Studio, you can get the latest version from : -Visual C++ 2010 Express: http://www.microsoft.com/visualstudio/eng/downloads#d-2010-express note that, you can also use another IDEs like: -Visual Studio Express 2012 for Windows Desktop: http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products#product-express-summary -CodeBlocks: http://sourceforge.net/projects/codeblocks -GNU C++ compiler GCC(g++): http://gcc.gnu.org/ -MingW GCC port for windows: http://www.mingw.org/ -C++ Builder (Borland): http://www.embarcadero.com/products/cbuilder -ShapesAreas.cpp: Problem Definition: Write a program that take from the user "1" if Circle, "2" if Rectangle, "3" if Triangle, "4" if Square & "5" if Parallelogram then Calculate and Print the Area of the chosen Shape after taking the inputs from the user. Note: Area of a: Circle = π × r2 (read r from the user and consider that π = 3.14) Rectangle = w x h (read w and h from the user) Triangle = 1/2 base x h (read base and h from the user) Square = L2 (read L from the user) Parallelogram = base * h (read base and h from the user)
download the ShapesAreas.cpp (Commented, Explained Code) | |||||
Download all the C++ Simples I’ve created : C++ Problems |
Some C++ Problems for Beginners (4)
This Post has some Previous Posts, you can access the first Main Post here: Some C++ Problems for Beginners (1) The code was written and tested on Visual Studio 2010 –> “Empty Windows Console Application” . if you don’t have Visual Studio, you can get the latest version from : -Visual C++ 2010 Express: http://www.microsoft.com/visualstudio/eng/downloads#d-2010-express note that, you can also use another IDEs like: -Visual Studio Express 2012 for Windows Desktop: http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products#product-express-summary -CodeBlocks: http://sourceforge.net/projects/codeblocks -GNU C++ compiler GCC(g++): http://gcc.gnu.org/ -MingW GCC port for windows: http://www.mingw.org/ -C++ Builder (Borland): http://www.embarcadero.com/products/cbuilder -ZeroSmaller.cpp: Problem Definition: Write a function called ZeroSmaller() that is passed three int arguments by reference and then sets the smaller of the three numbers to "0"
download the ZeroSmaller.cpp (Commented, Explained Code) | |||||
Download all the C++ Simples I’ve created : C++ Problems |
Some C++ Problems for Beginners (3)
This Post has some Previous Posts, you can access the first Main Post here: Some C++ Problems for Beginners (1) The code was written and tested on Visual Studio 2010 –> “Empty Windows Console Application” . if you don’t have Visual Studio, you can get the latest version from : -Visual C++ 2010 Express: http://www.microsoft.com/visualstudio/eng/downloads#d-2010-express note that, you can also use another IDEs like: -Visual Studio Express 2012 for Windows Desktop: http://www.microsoft.com/visualstudio/eng/downloads#d-2010-express note that, you can also use another IDEs like: -Visual Studio Express 2012 for Windows Desktop: http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products#product-express-summary -CodeBlocks: http://sourceforge.net/projects/codeblocks -GNU C++ compiler GCC(g++): http://gcc.gnu.org/ -MingW GCC port for windows: http://www.mingw.org/ -C++ Builder (Borland): http://www.embarcadero.com/products/cbuilder -EquationProblem.cpp: Problem Definition: Without Using MATH.h write a program that can solve the following equation and Display "R" on the screen R = X^Y + Y^Z - (X + Y)^2
download the EquationProblem.cpp (Commented, Explained Code) | |||||
Download all the C++ Simples I’ve created : C++ Problems |
Some C++ Problems for Beginners (1)
Yesterday, I’ve decided to write some simple C++ programs to help beginners to know how to write some code; The code was written and tested on Visual Studio 2010 –> “Empty Windows Console Application” . if you don’t have Visual Studio, you can get the latest version from : -Visual C++ 2010 Express: http://www.microsoft.com/visualstudio/eng/downloads#d-2010-express note that, you can also use another IDEs like: -Visual Studio Express 2012 for Windows Desktop: http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products#product-express-summary -CodeBlocks: http://sourceforge.net/projects/codeblocks -GNU C++ compiler GCC(g++): http://gcc.gnu.org/ -MingW GCC port for windows: http://www.mingw.org/ -C++ Builder (Borland): http://www.embarcadero.com/products/cbuilder 1. –DynamicStars.cpp: Problem Definition: Write a Program that Dynamically draw Stars * from "N" entered by the User to 1 e.g. Input: 3 Output: *** ** *
download the DynamicStars.cpp (Commented, Explained Code) | |||||
Download all the C++ Simples I’ve created : C++ Problems |
Some C++ Problems for Beginners (2)
This Post has some Previous Posts, you can access the first Main Post here: Some C++ Problems for Beginners (1) The code was written and tested on Visual Studio 2010 –> “Empty Windows Console Application” . if you don’t have Visual Studio, you can get the latest version from : -Visual C++ 2010 Express: http://www.microsoft.com/visualstudio/eng/downloads#d-2010-express note that, you can also use another IDEs like: -Visual Studio Express 2012 for Windows Desktop: http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products#product-express-summary -CodeBlocks: http://sourceforge.net/projects/codeblocks -GNU C++ compiler GCC(g++): http://gcc.gnu.org/ -MingW GCC port for windows: http://www.mingw.org/ -C++ Builder (Borland): http://www.embarcadero.com/products/cbuilder 1. -AlphabeticalModulus.cpp: Problem Definition: Write a Program that read 2 Numbers from the user X & Y where 1<= Y <= 9 (if Y is not in the specified range terminate the program) Print R = X % Y (R = X Modulus Y) in English Letters e.g. if R = 5 --> Print "Five" note: R will always be a value between 0 and 9
download the AlphabeticalModulus.cpp (Commented, Explained Code) | |||||
Download all the C++ Simples I’ve created : C++ Problems |
Friday, September 28, 2012
What is Enterprise Search?
-Enterprise Search refers to “Search behind the corporate Firewall” or “It is the Search technology that the organization owns and controls” -Many applications could include search on a company’s website home page and tech support area, or e-commerce shopping sites. -So Enterprise search engines could be defined as all search engines except the public ones like Yahoo, Google and MSN (BING). | ||
For More Info Please Visit: What is Enterprise Search? |
How do Enterprise Search Engines differ from Web Search Engines?
1. The Enterprises world isn’t just a small Internet: –Many Enterprise Search Offering began life as a search engines to power generic Internet Portal Searching, Thus we should assume that if you could handle the internet, then of course you could handle a relatively puny private Enterprise Network… In Fact, It’s not true and this assumption is usually false, Thus.. Any Enterprise Search Engine should be customized and adjusted to work well in the non-Internet like networks.
2. Technical Differences in Search Requirements and Technologies: -Aside from the difference in the architecture and data volume between Internet Search and Enterprise Search, There are also differences in how the infrastructure is used and functional requirements such as:
3-Taxonomies and Vocabulary are critical: Companies always have a specific vocabulary such as: product names, projects, procedures and policies, Thus.. Taking advantages of these terms unique to the company is critical to making retrieval work better.
4-Dates are important: -Internet search is generally unaware of document dates because content on the internet always lock this info. e.g. if the corporate search for “Annual Reports” doesn’t return the Most recent document, The Employees will be unhappy for sure.
5-Corporate Data has Structure: In a corporate database and even in web contents, companies have a specific structure that make some results authorized or accessed for some employees and not permitted for some others.
Thus, Enterprise Search Engines have to be able to apply the company’s rules and hierarchy on the outputs returned to the employees.
Conclusion: There are dozens of things that make Enterprise Search Engines suprizingly difficult and that sometimes exceed the strength and size of the Public Engines created to empower the web such as Google, Yahoo and Bing.
| ||
For More Info Please Visit: Another Difference Between Enterprise Search and Web Search |
Friday, October 7, 2011
Wake On LAN
2-Enable Wake on LAN in Windows
3-WAKE YOUR COMPUTER //you can use the Magic Packet Sender Freeware to wake your computer from any device http://magicpacket.free.fr/
a-For Inner Network Remote Connections:
NOTE: you can also use www.dyndns.com and create a free account to access your router and settings from the internet. | |||||||||||||||||
For More Info Please Visit: http://en.wikipedia.org/wiki/Wake-on-LAN |
Wednesday, September 28, 2011
Math Problem
One of the mathematical problems that I’ve seen today and decided to solve it :) Problem: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000. Solution (This is my own solution – you can solve it using another way)
hope you enjoyed it too; Thanks; Mohamed Adel | |||||
For More Info Please Visit: http://projecteuler.net |
Wednesday, September 21, 2011
How to Block “Facebook” on all your browsers
I will talk today about how to block “Facebook” on all your browsers; Sometimes, The Normal block method used from the “Internet Options” isn’t working on some sites like Facebook. Today, I’ll teach you how to block the Facebook Site from the Host File; 1-Open the C:\Windows\System32\drivers\etc folder 2-Right Click on the hosts file and Open it with Notepad or any text editor 3-Search for this line in the file: # 127.0.0.1 localhost 4-Add these 2 lines after it: 127.0.0.1 facebook.com (See the Figure)
Share it if you believe that it’s important. | ||
For More Info Please Visit: 10 Reasons to leave Facebook |
AI-Enabled Risk Scoring for TPPs in Open Banking: A Game Changer for Ecosystem Trust
As Open Banking ecosystems mature globally, traditional banks, fintech startups, and regulators face a growing challenge: how to trust the g...
-
Hi Everyone, My post today is about Data Compression Techniques, I’ve decided to post about Data Compression because It’s ...
-
This Post has some Previous Posts, you can access the first Main Post here: Some C++ Problems for Beginners (1) The code ...