George John

George John

789 Articles Published

Articles by George John

Page 37 of 79

Create Inverted Navbar in Bootstrap

George John
George John
Updated on 11-Mar-2026 784 Views

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 More

Bootstrap element

George John
George John
Updated on 11-Mar-2026 304 Views

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 More

Make an Ordered list with Bootstrap

George John
George John
Updated on 11-Mar-2026 707 Views

For ordered list in Bootstrap, you can try to run the following code −Example           Bootstrap lists                                       Lists       Fruits (Ordered List)                Kiwi          Apple          Mango          

Read More

Striped Table with Bootstrap

George John
George John
Updated on 11-Mar-2026 482 Views

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 More

Bootstrap class input-group-sm

George John
George John
Updated on 11-Mar-2026 243 Views

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 More

Difference between static, auto, global and local variable in C++

George John
George John
Updated on 11-Mar-2026 4K+ Views

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 More

Print a 2D Array or Matrix in Java

George John
George John
Updated on 11-Mar-2026 32K+ Views

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 More

Early binding and Late binding in C++

George John
George John
Updated on 28-Apr-2025 17K+ Views

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 More

Show MySQL host via SQL Command?

George John
George John
Updated on 24-Dec-2024 31K+ Views

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 More

Read whole ASCII file into C++ std::string

George John
George John
Updated on 03-Dec-2024 15K+ Views

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
Showing 361–370 of 789 articles
« Prev 1 35 36 37 38 39 79 Next »
Advertisements