List Assign Function in C++ STL

Sunidhi Bansal
Updated on 20-Jan-2020 07:22:18

2K+ Views

Given is th e task to show the working of the assign() function in C++.The list::assign() function is a part of the C++ standard template library. It is used to assign the values to a list and also to copy values from one list to another. header file should be included to call this function.SyntaxThe syntax for assigning new values is as follows −List_Name.assign(size, value)SyntaxThe syntax for copying values from one list to another is as follows −First_List.assign(Second_List.begin(), Second_list.end())ParametersThe function takes two parameters −First is size, that represents the size of the list and the second one is value, which ... Read More

Clementine 1.3: A Modern Music Player for Linux

Sharon Christine
Updated on 20-Jan-2020 07:21:59

261 Views

Clementine is a freely available cross-platform open source, Qt based track player encouraged by using Amarok 1.4. The Newest stable available which is version 1.3 was released after a year of development and springs with Vk.Com and Seafile support along with countless different enhancements and trojan horse fixes. This article explains about how to install Clementine music player.FeaturesIt will search and play local music libraryYou can listen to online Radio from Spotify, Grooveshark, SomaFM, etc.We can play songs from Dropbox, Google Drive, OneDrive, Amazon could, etc.It creates smart playlists and dynamic playlists.It transfers music in iPod, iPhone, android, other mobile ... Read More

list::crbegin and list::crend Functions in C++ STL

Sunidhi Bansal
Updated on 20-Jan-2020 07:20:41

161 Views

Given is the task to show the working of list crbegin() and crend() functions in C++.The list::crbegin() and list::crend() functions are a part of the C++ standard template library. header file should be included to call these functions.list::crbegin()This function returns the constant iterator which points to the end element of the list which will be the reverse beginning of the list. It can be used for Backtracking the list but it cannot change the values in the list which means crbegin() function can be used for iteration only.SyntaxList_Name.crbegin()ParametersThe function does not accept any parameter.Return ValueThe function returns a constant reverse ... Read More

cbegin and cend Functions in C++ STL

Sunidhi Bansal
Updated on 20-Jan-2020 07:19:07

166 Views

Given is the task to show the working of list::cbegin() and list::cend functions in C++.The list::cbegin() and list::cend() functions are a part of the C++ standard template library. header file should be included to call these functions.list::cbegin()This function returns the constant iterator which points to the beginning element of the list. It can be used to traverse the list but it cannot change the values in the list which means cbegin() function can be used for iteration only.SyntaxList_Name.cbegin();ParametersThe function does not accept any parameter.Return ValueThe function returns a constant iterator that point at the beginning element of the list.list::cend()This function ... Read More

Careers in Virtual Reality

karthikeya Boyini
Updated on 20-Jan-2020 07:16:13

638 Views

VR or Virtual Reality is when a simulated environment is created with the use of computer technology and gives a 3D experience to the viewer, complete with enhanced and realistic interaction ability of the viewer with the artificially projected environment displayed.In the last few years, VR Headsets or Head Mounted Displays (HMD) have become extremely popular and quite accessible to the public.Google Cardboard, Meta, Samsung Gear VR, Avegant Glyph, Epson Movario, to name a few. The level of immersion and interaction with the 3D world has improved threefold and there’s no stopping them. Sensory accessories upgrade the participation levels of ... Read More

List Back Function in C++ STL

Sunidhi Bansal
Updated on 20-Jan-2020 07:15:40

281 Views

Given is the task to show the working of list back() function in c++.The list::back() function is a part of the C++ standard template library. It is used to display the last element of any list. header file should be included before calling this function.SyntaxList_Name.back();ParametersThe function does not accept any parameter.Return ValueThe function returns the value of the last element of the list.ExampleInput: Lt.assign(3, 10) Lt.back() Output: 10Explanation − The following example shows how we can find the last value of any list by using the back() function. The list Lt is assigned three elements, each with value 10 and ... Read More

Deque Assign Function in C++ STL

Sunidhi Bansal
Updated on 20-Jan-2020 07:14:55

330 Views

Given the task is to show the working of deque::assign() in C++ STL.Deque is a double ended queue. In C++, deque::assign() is an inbuilt function which is used to assign the new value to the deque container. Every time this function is called it assigns a new value to the deque container by replacing the existing values and changing the size allocated accordingly.SyntaxSyntax of deque::assign() is as follows −dequename.assign( size, val)ParametersThis function includes 2 parameters −First is the size, which represents the size of the deque container and the second one is val, which is the value contained by ... Read More

strstr Function in C/C++

Sunidhi Bansal
Updated on 20-Jan-2020 07:10:22

849 Views

strstr() function is a predefined function in “string.h” header file which is used for performing string handling. This function is used to find the first occurrence of a substring let’s say str2 in the main string let’s say str1.SyntaxSyntax of strstr() is as follows −char *strstr( char *str1, char *str2);Parameters of strstr() arestr2 is the substring which we wish to search in the main string str1Return value of strstr() isThis function returns the address pointer of the first occurrence of the substring which we are searching if found in the main string, else it will return a null when the ... Read More

Careers in Augmented Reality

karthikeya Boyini
Updated on 20-Jan-2020 07:08:28

306 Views

Augmented Reality or AR is where artificial objects are simulated in the real world and incorporates or merges the information as part of the live view. The technology functions by enhancing a person’s concept of reality by overlaying the information over their view and merging it together. This perspective gives information and data of the object/scene viewed and in some cases, lets you manipulate the projected image to suit our needs.AR enhances the real environment whereas, VR creates a new environment altogether.A fragment of Augment Reality was seen with the release of Google Glass, the world saw a glimpse of ... Read More

Best Way to Install Go 1.7 on Ubuntu

Sharon Christine
Updated on 20-Jan-2020 07:05:18

705 Views

Go is a free and open source programming language created by Google in 2007. It supplies convenient to construct simple, nontoxic, and effective programs. This language is designed for writing on servers. This article explains about ‘How to install Go 1.7 on Ubuntu’Installing Go Programming languageTo download Go language binary archive file, use the following command –$ wget https://storage.googleapis.com/golang/go1.7.1.linux-amd64.tar.gzThe sample output should be like this –--2016-12-29 10:49:44-- https://storage.googleapis.com/golang/go1.7.1.linux-amd64.tar.gz Resolving storage.googleapis.com (storage.googleapis.com)... 216.58.197.48, 2404:6800:4007:807::2010 Connecting to storage.googleapis.com (storage.googleapis.com)|216.58.197.48|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 81618401 (78M) [application/x-gzip] Saving to: ‘go1.7.1.linux-amd64.tar.gz’ go1.7.1.linux-amd64 100%[===================>] 77.84M 5.98MB/s in 16s ... Read More

Advertisements