Posts

How to print the element of the set in C++

 for(auto i = st.begin() ; i!= st.end() ;++i){         cout<< *i<<",";  }  take the starting pointer of the set and the ending pointer of the  set 

mysql queries

 CREATE DATABASE database name  ; //  this is use to create the datbase  SHOW DATBASES // THIS is use to show all the datbase  use database datbase name  /// is use to use the particular datbase  CREATE TABLE persons(PersonsID int,LastName varchar(255),FirstName varchar(255),Address varchar(255),City varchar(255));// use to create the datbase  SHOW TABLES // use to show all the tabels present in the database  DROP TABLE table name /// is use to drop the tabel from the datbase  TRUNCATE TABLE table_name; // THIS IS use to dletet the data inside the table  INSERT INTO Customers (CustomerName, ContactName, Address, City, PostalCode, Country) VALUES ('Cardinal', 'Tom B. Erichsen', 'Skagen 21', 'Stavanger', '4006', 'Norway'); /// use to insert the data into the colum of the table  SHOW FULL TABLES;  // is use to show the content inside the table  desc identity; // IS USE to show the structure of the table   select * from identity; // is use to

delete particula index element from vector / erease element in vector with particular index

  myvector.erase(nums.begin()+index);

check the element is in the array or not / include function of vector in c++

  count ( v . begin ( ) , v . end ( ) , key )

pop value from last in vector in c++ / or delete element from last in c++

  myvector.pop_back();

print vector without iterator

  copy ( nums1 . begin (), nums1 . end (), ostream_iterator < int >(cout, " " ));

Merge two vector

    merge(arr1.begin(), arr1.end(), arr2.begin(), arr2.end(), arr3.begin());

How to solve the page not found 404 issue of netlify on refreshing the page

 make a file with the name _redirects in a public folder of your projects  and then add a below text on it  after that republish your project  /* /index.html 200

cyclic start script

 "start":"node index.js"