Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by George John
Page 37 of 79
Create Inverted Navbar in Bootstrap
To create an inverted navbar with a black background and with white text, simply add the .navbar-inverse class to the .navbar class.Example Bootstrap Example TutorialsPoint iOS SVN Java jmeter EJB Jasper Report
Read MoreBootstrap element
The element in Bootstrap is used to set inline subheadings.You can try to run the following code to implement the element:Example Bootstrap small element Heading One I'm secondary Heading Heading One I'm secondary Heading
Read MoreMake an Ordered list with Bootstrap
For ordered list in Bootstrap, you can try to run the following code −Example Bootstrap lists Lists Fruits (Ordered List) Kiwi Apple Mango
Read MoreStriped Table with Bootstrap
To add a striped table in Bootstrap, use the .table-striped class. You can try to run the following code to implement the .table-striped class −Example Bootstrap Table Footballer Rank Footballer Rank Amit 3 Kevin 2
Read MoreBootstrap class input-group-sm
To make small input group, use the input-group-sm.You can try to run the following code to implement the input-group-sm class in Bootstrap −Example Bootstrap Example $
Read MoreDifference between static, auto, global and local variable in C++
There are two separate concepts here − scope, which determines where a name can be accessed - global and local storage duration, which determines when a variable is created and destroyed - static and auto Scope Local variables can be used only by statements that are inside that function or block of code. Local variables are not known to functions on their own. Example #include using namespace std; int main () { // Local variable declaration: int a, b; int c; // actual initialization a = 10; b = 20; c = a + b; cout
Read MorePrint a 2D Array or Matrix in Java
In this post we will try to print an array or matrix of numbers at console in same manner as we generally write on paper.For this the logic is to access each element of array one by one and make them print separated by a space and when row get to end in matrix then we will also change the row.Examplepublic class Print2DArray { public static void main(String[] args) { final int[][] matrix = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } }; for (int i = 0; i
Read MoreEarly binding and Late binding in C++
In C++, binding is the process of connecting names such as variables and functions to their actual memory locations. When you intend to call a function, the program must identify the proper function definition for the execution. So, binding is the process of making this connection. This happens either at compile time (early binding) or at runtime (late binding). Early Binding This is compile time polymorphism and decides which function to call before it runs, making execution faster and direct. Example In this example, we demonstrate the early binding, where the base class function runs instead of the derived class ...
Read MoreShow MySQL host via SQL Command?
To display MySQL host via SQL command, use the system variable hostname. Query 1 The following is the query to display the host − mysql > select @@hostname; Output Here is the output − +-----------------+ | @@hostname | +-----------------+ | DESKTOP-QN2RB3H | +-----------------+ 1 row in set (0.00 sec) Query 2 Or you can use "show variables" command to show MySQL host via SQL command. show variables where Variable_name like '%host%'; Output The following is the output − +-------------------------------+-----------------+ | Variable_name | Value | +-------------------------------+-----------------+ | host_cache_size | 279 | | hostname | DESKTOP-QN2RB3H | | performance_schema_hosts_size | -1 | | report_host | | +-------------------------------+-----------------+ 4 rows in set (0.07 sec)
Read MoreRead whole ASCII file into C++ std::string
This is a simple way to read whole ASCII file into std::string in C++ − Algorithm Here is the algorithm we will follow to Read the whole ASCII file into C++ std::string. Begin Declare a file a.txt using file object f of ifstream type to perform a read operation. Declare a variable str of string type. If(f) Declare another variable ss of ostringstream type. Call rdbuf() function to read the data of the file object. Put the ...
Read More