C++ (pronounced as see plus plus) was developed by Bjarne Stroustrup as an extension to the C language in year 1979. It had undergone minor update released in 2003 (called C++03) and three major updates to the programming language (C++11, C++14 and C++17, ratified in...
How to convert int to string in C++
There are three ways possible to convert an integer to string in c++ Using std::to_string function The string function converts numerical int value to string. It takes integer value as argument and returns a string object containing the representation of numerical value as a sequence...
How to view large rows with many columns in mysql cli client
It’s hard to view long column names in mysql CLI as the screen wraps them and then instead of a table spanning horizontally , half the columns are stacked over each other , making it confusing to look at . There are two ways to...
How to disable a button in Flutter.
To disable a Button in Flutter, we can simply give the onpressed: parameter a null value. This will disable the button. Something like this will work:- But our button will be of no use like this. Instead, a better approach is to create a helper...
How to use Hexadecimal color strings in Flutter.
By default we get the Colors widget in Flutter which comes with set of predefined material design colors like Grey,Red,Yellow etc. But oftentimes we require custom colors in the UI of our app. We can use the Color method which contains two constructors .fromRGBO() and...
How to reverse a list in Flutter
To reverse a list in Flutter, you can simply use a function in Dart called reversed. The syntax to reverse lists in Flutter is: Remember to add .toList() after reversed so that the function returns a List. Without .toList(), the function will return a Iterable....
How to navigate flutter pages without context
There are certain situations in flutter development when we need to navigate to another page from outside the state widget.In such cases the (BuildContext)context is not available to the programmer and this can make it difficult for the programmer to navigate to the inteded page.For...
Compiling and Linking C++ Program
When you write a C++ program, the very next step is to compile the program to generate an executable file. This process of generating executable file from a source code involves 3 main stages. Preprocessor The preprocessor modifies the original source code according to the...