Author: elizabethjones

5 articles found.

C++ Variables & Constants

Variables in C++, c++ variables, constants in c++, c++ constants, c++ variable types, types of variables in c++, c++ global variables, c++ local variables

In the previous topic, we have discussed data types in C++ in detail. Today we will discuss variables and constants in C++. A named memory location or memory cell is called a variable. The program's input data and its results are stored in variables during execution. During the execution of the program, the value of a variable can be changed but its name can not be changed. Variables are created in random access memory. As we know that RAM is a temporary memory so data stored in it is also temporary. It can only be used during execution. When the program ends, the data stored in the variable is automatically removed. In C++, all the variables are declared first: int num1=25, num2=1000; We can also write it like this: int num1,num2; num1=25; num2=1000; Types of Variables can be categorized in two ways Based on the data type of variable, there are the following categories of variables in C++ Different types of variables can be declared as follow: Variables having the same data type can be declared in a single line. Each variable in line should be separated by a comma as follows: int a, b, c; When we discussed the Hello Program, we have seen the curly braces in the program like this: int main { //Some code } When variables are declared in curly braces then their scope is limited within these braces. The variable declared in main() function can not be used outside the main() function. There are two types of variables based on their scope. Global variables are always declared ...

C++ Data Types

DATA TYPES IN C++, datatypes in c++, c++ datatypes, builtin datatypes in c++, derived datatypes in C++, user defined datatypes in C++, c++ data types examples

In the previous section, we have had an overview of a detailed Introduction to C++. Today, we will have a look at the data types in C++. It's our 2nd tutorial in the C++ programming language series. In the previous tutorial, we have seen the basics of C++ and have also discussed a small code. We have discussed various programming terms in the previous tutorial and from now on, we are going to discuss those terms in detail. So, today's lecture is on Data Types in C++, let's get started: A data type defines the type and the set of operations that can be performed on the data. Various types of data are manipulated by the computer. The data is given as an input to the program. According to the program's set of instructions, data is processed and then output is returned on the screen. Before designing the actual program data, its type and operations performed on it are defined and used to process the data. At the start of the program, the type of each data value is identified. Various data types are provided by C++ and the computer’s memory allocates each data type differently. Three main built-in data types provided by C++ are: long b = 4523232; long int c = 2345342; long double d = 233434.56343; short d = 3434233; // Error! out of range unsigned int a = -5; // Error! Used for storing only +ive numbers and 0 float area = 64.74; double volume = 134.64534; #include <iostream> using namespace std; int main() { void* ptr; float f = 2.3f; // assign float address to void ptr = &f; cout ...

Raspberry Pi as Internet of Things(IoT)

Raspberry Pi as Internet of Things, Raspberry Pi as iot, Raspberry Pi iot, iot raspberry pi, pi in iot projects

The Internet of Things (IoT) philosophy may be viewed as a highly dynamic and radically dispersed networked system comprised of a huge number of identifiable smart devices. These objects may communicate and interact with one another, as well as with end-users and other network entities. As the Internet of Things era begins, the usage of small, inexpensive, and flexible computer hardware that allows end-user programming becomes more prevalent. The Raspberry Pi, a fully configurable and programmable tiny computer board, is one of them discussed in this article. Although there are certain limitations, the Raspberry Pi remains a low-cost computer that has been used effectively in a wide range of IoT vision research applications despite its few shortcomings. Introductory Notes The Internet of Things - IoT – may be viewed as a highly dynamic and widely dispersed networked system. For example, it is a network of linked smart objects that may communicate and interact with one another, as well as with end-users or other network entities, such as users or other entities in the network. Safety, security, comfort, convenience, and energy savings are maximised when smart devices can perceive physical phenomena and transform them into data streams, as well as when smart devices can trigger actions. These systems should: While internet access can be achieved through an Ethernet/LAN cable or a USB dongle (WiFi connectivity), a USB connector is required [5, 6]. Figure 1 shows an example of a ...

 Introduction to C++

 Introduction to C++

Hello friends, I hope you all are doing great. In today's tutorial, I am going to give you a detailed introduction to the C++ Programming language. In cross-platform programming languages, C++ is the most popular that can be used to work on low and high-level applications. Bjarne Stroustrup was the founder of C++. He modified C language to develop C++ language. Control over system resources and memory can be attained by using C++. In 2011, 2014, and 2017 it was modified to C++11, C++14, and C++17. C++ is a middle-level language. It is advantageous to both programming languages low-level (drivers, kernels) and higher-level applications (games, GUI, desktop apps etc.). C++ is one of the world's most famous programming languages. It is used in today's OS, embedded systems and GUIs. It provides a clear structure to programs, permits codes to be reused and lowering development costs as its an object-oriented language. Since it is portable and can be used to create applications that can be used on multiple platforms. It is very easy to learn. As it is close to C# and Java, so switching to C++ or vice versa is very simple. It is used in Some interesting facts about C++ are listed below Basic concepts like syntax, variables, loop type etc will be discussed here. Here is the C++ basic program #include <iostream.h> using namespace std; int main() { cout << "Hi this is C++"; } There are built-in as well as user-defined data types in C++. //Program to receive three integer numbers and ...

An Overview of Content Scraping Protection

An Overview of Content Scraping Protection, content scrapping

Do you care about SEO? Then you must protect your content from scrapping. You can lose the competitive advantage and revenues to content scraping. Google can penalize you if they detect that your content is plagiarized. You can incur losses in your website traffic up to 99%. Since content is the primary driver of traffic and sales, protecting it from scrapping and others increases your sales and boost your SEO. Content scraping is carried out by bots called scrappers controlled and commanded by a cybercriminal. Scrapper bots repurpose the scrapped content to malicious actions. These actions include copyright violation, duplicating the content to an attacker’s website, and stealing organic traffic. To understand how to protect yourself from scrapping, let us first understand how the bots scrape content. A scrapper bot sends a sequence of HTTP GET requests to a web server. It then copies all the information sent in response and saves it. It repeatedly does this until all the content has been scrapped. Scrappers can use JavaScript to download gated content or fill out every form on a website. The automation in browser programs and APIs allow the automated bots to interact with online infrastructures as they apply the traditional web browser techniques. They effectively trick the computer into thinking that the user accessing the content is a human. The last way that content may be scrapped is by the actual user. They can decide to go through all your content and copy what they ...