This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Writing files random-######## with seed 1554864670 | |
Wrote 1024 MiB random data to random-00000000 with 1896.910910 MiB/s | |
Wrote 1024 MiB random data to random-00000001 with 950.170716 MiB/s | |
Wrote 1024 MiB random data to random-00000002 with 148.799383 MiB/s | |
Wrote 1024 MiB random data to random-00000003 with 140.361438 MiB/s | |
Wrote 1024 MiB random data to random-00000004 with 127.098821 MiB/s | |
Wrote 1024 MiB random data to random-00000005 with 126.964903 MiB/s | |
Wrote 1024 MiB random data to random-00000006 with 134.211018 MiB/s | |
Wrote 1024 MiB random data to random-00000007 with 128.113493 MiB/s | |
Wrote 1024 MiB random data to random-00000008 with 120.479619 MiB/s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
https://www.reddit.com/r/dailyprogrammer/comments/pii6j/difficult_challenge_1/ | |
we all know the classic "guessing game" with higher or lower prompts. | |
lets do a role reversal; | |
you create a program that will guess numbers between 1-100, | |
and respond appropriately based on whether users say that the number is too high or too low. | |
Try to make a program that can guess your number based on user input and great code! | |
*/ | |
#include <iostream> | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
https://www.reddit.com/r/dailyprogrammer/comments/pihtx/intermediate_challenge_1/ | |
create a program that will allow you to enter events organizable by hour. There must be menu options of some form, and you must be able to easily edit, add, and delete events without directly changing the source code. | |
(note that by menu i dont necessarily mean gui. as long as you can easily access the different options and receive prompts and instructions telling you how to use the program, it will probably be fine) | |
*/ | |
#include <iostream> | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
https://www.reddit.com/r/dailyprogrammer/comments/pih8x/easy_challenge_1/ | |
create a program that will ask the users name, age, and reddit username. have it tell them the information back, in the format: | |
your name is (blank), you are (blank) years old, and your username is (blank) | |
*/ | |
#include <iostream> | |
int main(int argc, char *argv[]) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IDENTIFICATION DIVISION. | |
PROGRAM-ID. HELLO-WORLD. | |
DATA DIVISION. | |
WORKING-STORAGE SECTION. | |
01 BMP-TABLE. | |
02 BMP-TEXT OCCURS 5 TIMES INDEXED BY TEXT_IDX. | |
04 BMP-CHAR PIC X OCCURS 24 TIMES INDEXED BY BMP_IDX. | |
01 HEX-LOOKUP VALUE '0123456789ABCDEF'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
int Z = 0; | |
struct LinearNode { | |
int value; | |
int N; | |
struct LinearNode *prev; | |
struct LinearNode *next; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling main.cobc source code.... | |
$cobc -c -free -x main.cobc 2>&1 | |
Linking the program.... | |
$cobc -x -o demo main.o 2>&1 | |
Executing the program.... | |
$demo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IDENTIFICATION DIVISION. | |
PROGRAM-ID. ZoomMatrix. | |
DATA DIVISION. | |
WORKING-STORAGE SECTION. | |
01 BMP-TABLE. | |
02 BMP-TEXT OCCURS 5 TIMES INDEXED BY TEXT_IDX. | |
04 BMP-CHAR PIC X OCCURS 24 TIMES INDEXED BY BMP_IDX. | |
01 HEX-LOOKUP VALUE '0123456789ABCDEF'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IDENTIFICATION DIVISION. | |
PROGRAM-ID. StringIndex. | |
DATA DIVISION. | |
WORKING-STORAGE SECTION. | |
01 tmp PIC 99. | |
01 srcString PIC X(1000) VALUE "...You...!!!@!3124131212 Hello have this is a --- string Solved !!...? to test @ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IDENTIFICATION DIVISION. | |
PROGRAM-ID. Rummy. | |
AUTHOR. Coplate. | |
ENVIRONMENT DIVISION. | |
INPUT-OUTPUT SECTION. | |
FILE-CONTROL. | |
SELECT VarLengthRecFile ASSIGN TO "input.txt" | |
ORGANIZATION IS LINE SEQUENTIAL. |
NewerOlder