Tag: Convert
Learn how to – Everything You Need to Know About Converting Outlook Files
Learn how to – Everything You Need to Know About Converting Outlook Files. There may be some situations when it is necessary to convert Outlook files to an image format, for example, JPG or PNG, or to a well-known PDF. This may be necessary if the document has complex formatting or when you just need …
Learn how to – Everything You Need to Know About Converting Outlook FilesRead More
Designing Code to Convert the base of a Number to any other base in Number System
In this article we will discuss how to design a Class that represents the Number in a Number System and also provides the facility to convert the Base associated with that Number i.e. conversion from any Base to any other base like, octal to hexa or hexa to decimal etc. [showads ad=inside_post] Create a class Number that …
Designing Code to Convert the base of a Number to any other base in Number SystemRead More
How to convert a HashSet into an array in Java
In this article we will discuss how to convert a HashSet in to an array. Each collection that provides a member function toArray() i.e. Advertisements public <T> T[] toArray(T[] a) It iterates through all the elements of Collection (HashSet in our case) and set the each elements in the passed argument array []a. But if array …
How to Convert String to Date in C++ using Boost Library
In this article we will discuss how to convert string to date objects in C++ using Boost Date Time Library. Boost Date Time Library provides boost::gregorian::date type for all the calendar date related operations. But many times we encounter scenarios where we need to convert parse date from some text and then convert date in string format …
How to Convert String to Date in C++ using Boost LibraryRead More
Convert First Letter of each word of a String to Upper Case in C++
In this article we will discuss different ways to convert first letter of each word to upper case in a a given string i.e. Using STL algorithm Using Boost Filtered Iterator & Range Converting First Letter to Upper Case using STL Algorithm Used: Iterate over the characters in given string For each character check – …
Convert First Letter of each word of a String to Upper Case in C++Read More
Convert a String to Uppercase or LowerCase in C++
In this article, we will discuss different ways to convert a string to upper case or lower case in C++. Table Of Contents Using STL using Boost String Algorithm Library Convert a String to Upper Case using STL C++ provides a function ::toupper() that converts a character to upper case character i.e. Advertisements int toupper ( …
C++ : Convert double to string and manage precision | scientific notation
In this article we will discuss different ways to convert double to String or char array with or without precision i.e. double to String using C++11’s std::to_string std::to_string is introduced in c++11. Example to convert double to std::string using to_string is as follows, Advertisements double num = 6789898989.33999443; //Converting using std::to_string std::string str = std::to_string(num); …
C++ : Convert double to string and manage precision | scientific notationRead More
Convert list to string in python using join() / reduce() / map()
In this article we will discuss different ways to convert list to string. Convert list to string in python using join() in python In python string class provides a function join() i.e. Advertisements string.join(iterable) join() function accepts an iterable sequence like list or tuple etc as an argument and then joins all items in this …
Convert list to string in python using join() / reduce() / map()Read More
Python : How to convert a list to dictionary ?
In this article we will discuss different ways to convert a single or multiple lists to dictionary in Python. Following conversions from list to dictionary will be covered here, Convert a List to Dictionary with same values Convert List items as keys in dictionary with enumerated value Convert two lists to dictionary Convert a list …
Convert List to DataFrame in Python
In this article, we will discuss how to convert a single or multiple lists to a DataFrame. Table Of Contents Convert list of lists to DataFrame in Pandas Convert Lists of tuples to DataFrame in Pandas Convert List of lists to DataFrame &Â set column names and indexes Convert List of tuples to DataFrame and skip …