
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 7197 Articles for C++

223 Views
In this article we will be discussing the working, syntax and examples of tan() function for complex numbers in C++ STL.tan() for complex numbers is a function which comes under the header file. This function is used to find the tangent of the complex number associated with it. This function is the complex version of simple tan() which comes under header file.What are complex numbers?Complex numbers are the numbers which are the combination of real number and imaginary number.They are written as: a+biWhere a and b are the real numbers and i is an imaginary number.Syntaxtemplate complex tan ... Read More

236 Views
In this article we will be discussing the working, syntax and examples of log10() function in C++ STL.What is log10() function?log10() function is an inbuilt function in C++ STL, which is defined in header file. log10() is used to find the common logarithmic value of a complex number. This function returns the common complex log value with base 10 of a complex number num.Syntaxtemplate complex log10(const complex& num);ParametersThis function accepts one parameter num, which is a complex value whose log we have to find.Return valueThe common complex log value of num we want to calculate.ExampleInput: complex C_number(-4.0, -1.0); ... Read More

257 Views
In this article we will be discussing the working, syntax and examples of log() function in C++ STL.What is the log() function?log() function is an inbuilt function in C++ STL, which is defined in header file. log() returns complex natural logarithmic value of a complex value. The difference between the log() in math header file and log() of complex header file is that it is used to calculate the complex logarithmic where log() of math header file calculates normal logarithmic value.Syntaxtemplate complex log(const complex& x);ParametersThis function accepts one parameter which is a complex value whose log we have to ... Read More

141 Views
In this article we will be discussing the working, syntax and examples of match_results::size() function in C++ STL.What is a match_results in C++ STL?std::match_results is a specialized container-like class which is used to hold the collection of character sequences which are matched. In this container class a regex match operation finds the matches of the target sequence.What is match_results::size()?match_results::size() function is an inbuilt function in C++ STL, which is defined in header file. size() is used to get the number of matches of the match_results object associated with it. This function returns a size_type value that is the number ... Read More

859 Views
In this article we will be discussing the working, syntax and examples of match_results::prefix() and match_results::suffix() functions in C++ STL.What is a match_results in C++ STL?std::match_results is a specialized container-like class which is used to hold the collection of character sequences which are matched. In this container class a regex match operation finds the matches of the target sequence.What is match_results:: prefix()?match_results::prefix() function is an inbuilt function in C++ STL, which is defined in header file. prefix() is used to get the preceding match_results of the object associated with the function. This function returns the reference of the succeeding ... Read More

286 Views
In this article we will be discussing the working, syntax and examples of match_results operator ‘[ ]’ in C++ STL.What is a match_results in C++ STL?std::match_results is a specialized container-like class which is used to hold the collection of character sequences which are matched. In this container class a regex match operation finds the matches of the target sequence.What is match_results operator ‘[ ]’Match_results operator [] is a reference operator which is used to directly refer to i-th position of a match_results. Operator [] returns i-th match position of the object associated. This operator comes in handy when we have ... Read More

149 Views
In this article we will be discussing the working, syntax and examples of match_results operator ‘=’ in C++ STL.What is a match_results in C++ STL?std::match_results is a specialized container-like class which is used to hold the collection of character sequences which are matched. In this container class a regex match operation finds the matches of the target sequence.What is match_results operator ‘=’Match_results operator = is an equality operator which is used to assign the value to a match_results. Operator = is used to copy or move the elements from one match_results object to another.Syntaxmatch_results1 = (match_results2);ParametersAnother match_results object whose data ... Read More

143 Views
In this article we will be discussing the working, syntax and examples of match_results::length() function in C++ STL.What is a match_results in C++ STL?std::match_results is a specialized container-like class which is used to hold the collection of character sequences which are matched. In this container class a regex match operation finds the matches of the target sequence.What is match_results::length()?match_results::length() function is an inbuilt function in C++ STL, which is defined in header file. length() is used to check the length of the n-th match in the match_results object associated with it. length() accepts a parameter which is the match ... Read More

120 Views
In this article we will be discussing the working, syntax and examples of match_results::empty() function in C++ STL.What is a match_results in C++ STL?std::match_results is a specialized container-like class which is used to hold the collection of character sequences which are matched. In this container class a regex match operation finds the matches of the target sequence.What is match_results::empty()?match_results::empty() function is an inbuilt function in C++ STL, which is defined in header file. empty() checks whether the smatch object which is associated is empty or having some match values in it. empty() returns true if the match object is ... Read More

111 Views
In this article we will be discussing the working, syntax and examples of match_results::cbegin() and match_results::cend() functions in C++ STL.What is a match_results in C++ STL?std::match_results is a specialized container-like class which is used to hold the collection of character sequences which are matched. In this container class a regex match operation finds the matches of the target sequence.What is match_results::cbegin()?match_results::cbegin() function is an inbuilt function in C++ STL, which is defined in header file. This function returns the constant iterator which is pointing to the first element in the match_results container. Constant iterator can’t be used to do ... Read More