Tutorial by Examples

SET handle TO returned-pointer SET handle UP BY LENGTH(returned-pointer) SET ADDRESS OF buffer-space TO handle MOVE buffer-space TO work-store DISPLAY "Second element is " work-store
GCobol >>SOURCE FORMAT IS FIXED *> *************************************************************** *> Purpose: Demonstration of the SEARCH verb *> Tectonics: cobc -x searchlinear.cob *> *************************************************************** ...
GCobol >>SOURCE FORMAT IS FIXED *> *************************************************************** *> Purpose: Demonstration of the SEARCH ALL verb and table SORT *> Tectonics: cobc -x -fdebugging-line searchbinary.cob *> ******************************...
GCobol* GnuCOBOL SORT verb example using standard in and standard out identification division. program-id. sorting. environment division. input-output section. file-control. select sort-in assign keyboard organizat...
When used in an expression out << setprecision(n) or in >> setprecision(n), sets the precision parameter of the stream out or in to exactly n. Parameter of this function is integer, which is new value for precision. Example: #include <iostream> #include <iomanip> #include...
When used in an expression out << setfill(c) sets the fill character of the stream out to c. Note: The current fill character may be obtained with std::ostream::fill. Example: #include <iostream> #include <iomanip> int main() { std::cout << "default fill: &quo...
When used in an expression out << setiosflags(mask) or in >> setiosflags(mask), sets all format flags of the stream out or in as specified by the mask. List of all std::ios_base::fmtflags : dec - use decimal base for integer I/O oct - use octal base for integer I/O hex - use hexade...
start indexing key is less than keyfield of indexing-record invalid key display "bad start: " keyfield of indexing-record set no-more-records to true not invalid key read indexing previous record at end set no-more-records to true ...
SUBTRACT item-a item-b item-c FROM account-z ROUNDED MODE IS NEAREST-EVEN ON SIZE ERROR DISPLAY "CALL THE BOSS, Account `Z` is OUT OF MONEY" END-DISPLAY PERFORM promisary-processing NOT ON SIZE ERROR PERFORM normal-processing END-SUBTRACT
TERMINATE report-1 report-2 report-summary
*> Strip off trailing zero bytes STRING c-string DELIMITED BY LOW-VALUE INTO working-store
Installation: In order to use DataProviders, you need junit-dataprovider .jar : Github Direct download Hamcrest-core-1.3.jar : Github Direct download And add both of this .jar to your project. Usage: Add this import to your code: import com.tngtech.java.junit.dataprovider.DataProvider; im...
SUPPRESS PRINTING
In ruby you can add methods to existing instances of any class. This allows you to add behavior to and instance of a class without changing the behavior of the rest of the instances of that class. class Example def method1(foo) puts foo end end #defines method2 on object exp exp = E...
Detailed instructions on getting operating-system set up or installed.
Selection sort is a sorting algorithm, specifically an in-place comparison sort. It has O(n2) time complexity, making it inefficient on large lists, and generally performs worse than the similar insertion sort. Selection sort is noted for its simplicity, and it has performance advantages over more c...
I used C# language to implement Selection sort algorithm. public class SelectionSort { private static void SortSelection(int[] input, int n) { for (int i = 0; i < n - 1; i++) { var minId = i; int j; for (j = i + 1; j < n; j++...
Initial Setup To use Stripe for handling payments we need to add the following to the composer.json then run composer update: "laravel/cashier": "~6.0" The following line then needs to be added to config/app.php, the service provider: Laravel\Cashier\CashierServiceProvider ...

Page 990 of 1336