Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint
Cover Image
Cover Image
Drag to reposition
Contributed Answers

What are MySQL constraints?

I want to set some sort of limit for the data that goes into MySQL table, how it can be done?
Answered on 16th Feb, 2018, 0 Views

As we know that constraint is a kind of limitation or restriction. Similarly, MySQL constraints are used to define some rules that limit the data that can go into a table. With the help of constraints, we can basically maintain the accuracy and integrity of the data inside the table. MySQL constraints are of two types:  Column Level constraints: The constraints which are applied only t.....

Variables, their types, and Scope in C++

Please explain the variables, their types, and scope in C++ language in detail with an example?
Answered on 16th Feb, 2018, 0 Views

Each variable in C++ has a specific type, which determines the size and layout of the variable's memory; the range of values that can be stored within that memory; and the set of operations that can be applied to the variable. We declare a variable using the notation: , The type can be primitive(int, bool, float, char, etc.), an enumerated type, a pointer to another type or a more complex t.....

How to define constants in C++?

How to define constants in C++? Explain me in detail with an example?
Answered on 16th Feb, 2018, 0 Views

You can define constants in C++ by adding the const qualifier before the declaration of the variable.  , This will define the constant variable x. But it will throw an error as we are trying to rewrite the value of a constant.

What is the relation between auto and decltype in C++?

What is the relation between auto and decltype in C++? Explain them in detail with an example?
Answered on 16th Feb, 2018, 0 Views

auto and decltype serve different purposes so they don't map one-to-one. auto is a keyword in C++11 and later that is used for automatic type deduction. The decltype type specifier yields the type of a specified expression. Unlike auto that deduces types based on values being assigned to the variable, decltype deduces the type from an expression passed to it. The value returned by decltype .....

What is C++ Standard Error Stream (cerr)?

What is the C++ Standard Error Stream (cerr)? Explain them briefly with an example.
Answered on 15th Feb, 2018, 0 Views

std::cerr is an object of class ostream that represents the standard error stream oriented to narrow characters (of type char). It corresponds to the C stream stderr. The standard error stream is a destination of characters determined by the environment. This destination may be shared by more than one standard object (such as cout or clog). As an object of class ostream, characters can be w.....

How do I set up C/C++ on Eclipse in Windows?

How do I set up C/C++ on Eclipse in Windows?
Answered on 15th Feb, 2018, 0 Views

Step 1: Install MinGW GCC or Cygwin GCC To use Eclipse for C/C++ programming, you need a C/C++ compiler. On Windows, you could install either MinGW GCC or Cygwin GCC. Choose MinGW if you are not sure, because MinGW is lighter and easier to install, but has fewer features. MinGW GCC To install MinGW, go to the MinGW homepage, www.mingw.org, and follow the link to the MinGW download page. Dow.....

How to Install C++ Compiler on Windows?

How to Install C++ Compiler on Windows?
Answered on 15th Feb, 2018, 0 Views

There are several alternatives for compiling C++ on windows. Let's look at 2 of them: To install GCC on Windows you need to install MinGW. To install MinGW, go to the MinGW homepage, www.mingw.org, and follow the link to the MinGW download page. Download the latest version of the MinGW installation program which should be named MinGW-<version>.exe. While installing MinGW, at a minimum.....

What are Standard Libraries in C++?

What are Standard Libraries in C++?
Answered on 14th Feb, 2018, 0 Views

In the C++ programming language, the C++ Standard Library is a collection of classes and functions, which are written in the core language and part of the C++ ISO Standard itself. The C++ Standard Library provides several generic containers, functions to utilize and manipulate these containers, function objects, generic strings and streams (including interactive and file I/O), support for s.....

How to get time difference between two timestamps in seconds?

The following are my two dates display in JavaScript using Date object with different time: , With JavaScript, how can I get the difference between both of them?
Answered on 14th Feb, 2018, 0 Views

To get the time difference between two timestamps, try to run the following code. Here, we are calculating the total number of hours, minutes and seconds between two timestamps: Live Demo , Output ,

How to check if String is empty in Java?

I have a String in my program how can I check whether it is empty?
Answered on 12th Feb, 2018, 0 Views

The isEmpty() method of the String class returns true if the length of the current string is 0. Live Demo , Output ,

loader
Advertisements
Contribution

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.