Browse All
Alphabetical listing with fast deep pagination.
1197283 items • Page 44 / 23946
#include using std::cout; using std::cin; #include using st
#include <iostream> using std::cout; using std::cin; #include <cstdlib> using std::rand; int main () { int number1; int number2; int a…
#include using std::cout; using std::cin; using std::endl; using std:
#include <iostream> using std::cout; using std::cin; using std::endl; using std::ostream; struct node1 { int data; node1 * p; ~node1() { cout << "node with " << …
#include using std::cout; using std::cin; using std::endl; using std:
#include <iostream> using std::cout; using std::cin; using std::endl; using std::ostream; struct node1 { int data; node1 * p; ~node1() { cout << "node with " …
#include using std::cout; using std::cin; using std::endl; using std:
#include <iostream> using std::cout; using std::cin; using std::endl; using std::ostream; struct node { int data; node * p; // FORWARD LINK node * rp; // REVERSE LINK }; ost…
#include using std::cout; using std::cin; using std::endl; using std:
#include <iostream> using std::cout; using std::cin; using std::endl; using std::ostream; struct node { int data; node * p; }; bool equal( const node * first, const node * s…
#include using std::cout; using std::endl; // GradeBook class definit
#include <iostream> using std::cout; using std::endl; // GradeBook class definition class GradeBook { public: // function that displays a welcome message to the GradeBook us…
#include #include #include #include
#include <math.h> #include <stdlib.h> #include <string.h> #include <cab202_graphics.h> #include <cab202_sprites.h> #include <cab202_timers.h> /…
#include #define myPB1bit PORTBbits.RB1 #define myPB7bit PORTBbits.R
#include <p18F458.h> #define myPB1bit PORTBbits.RB1 #define myPB7bit PORTBbits.RB7 void T0_ISR(void); void T1_ISR(void); #pragma interrupt chk_isr void chk_isr (void) { if (…
#include radix dec sum_hi set 0x01 sum_lo set 0x00 lp_cnt set 0x0
#include <p18F8722.inc> radix dec sum_hi set 0x01 sum_lo set 0x00 lp_cnt set …
#include void T0Delay(void); #define mybit PORTBbits.RB4 void main(
#include <p18f4580.h> void T0Delay(void); #define mybit PORTBbits.RB4 void main(void) { TRISBbits.TRISB4=0; while(1) { mybit^=1; T0Delay(); } } void T0Delay() { T0CON=0x01; …
#include #include using namespace std; void *PrintHello(v
#include <pthread.h> #include <iostream> using namespace std; void *PrintHello(void *arg) { int actual_arg = *((int*) arg); cout << "Hello World from thread with…
#include #include #include int sum; void *runne
#include <pthread.h> #include <stdio.h> #include <string.h> int sum; void *runner(void *param); int main(int argc, char *argv[]) { pthread_t tid; pthread_a…
#include #include ex of the .txt file #include push 3/
#include <queue> #include <vector> ex of the .txt file #include <string> …
#include #include \"sort.h\" // The LinkedListNode constructor. Linked
#include <sstream> #include "sort.h" // The LinkedListNode constructor. LinkedListNode::LinkedListNode(int value) { this->next = NULL; this->value = value; } /* The in…
#include // For stringstream class #include // For Color c
#include <sstream> // For stringstream class #include <Color.hpp> // For Color class // Write the function definitions for each of the function members of the Color cl…
#include #include #include #define MAX_SIZE 10
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #define MAX_SIZE 10 /* Asks the user to enter a series of up to 'size' nonnegative integers, reads th…
#include #include using namespace std; /** The vector cla
#include <stdexcept> #include <iostream> using namespace std; /** The vector class * based on implementation from chapter 6 of textbook */ template <typename Object…
#include #include using namespace std; /** The vector cla
#include <stdexcept> #include <iostream> using namespace std; /** The vector class * based on implementation from chapter 6 of textbook */ template <typename Object…
#include #include using namespace std; /** The vector cla
#include <stdexcept> #include <iostream> using namespace std; /** The vector class * based on implementation from chapter 6 of textbook */ template <typename Object…
#include using namespace std; template class ArrayQueue
#include <stdexcept> using namespace std; template <typename E> class ArrayQueue { enum { DEF_CAPACITY = 100 }; // default queue capacity public: …
#include using namespace std; template class ArrayQueue
#include <stdexcept> using namespace std; template <typename E> class ArrayQueue { enum { DEF_CAPACITY = 100 }; // default queue capacity public: …
#include using namespace std; template class SLinkedLis
#include <stdexcept> using namespace std; template <typename E> class SLinkedList; // forward declaration to be used when declaring SNode template <typename E> c…
#include #include #include #include #i
#include <stdint.h> #include <iostream> #include <cassert> #include <climits> #include "q5.h" int saturating_add(int x, int y); { //Solution needed here. }…
#include #include int main () { unsigned int S2; /* current
#include <stdint.h> #include <stdio.h> int main () { unsigned int S2; /* current FSM state */ unsigned int S1; unsigned int S0; unsigned int S2_plus; /* FSM state in n…
#include #define MAX 100 int findMinIndex(int data[], int low, int hig
#include <stdio.h> #define MAX 100 int findMinIndex(int data[], int low, int high); int main() { int i, loop, n, queries, data[MAX]; // Read in the schedule data. FILE* ifp …
#include #define MAX_NUM_LINES 6000 #define MAX_STR_LEN 100 int readCd
#include <stdio.h> #define MAX_NUM_LINES 6000 #define MAX_STR_LEN 100 int readCdData(char fileName[], char csvMatrix[][MAX_STR_LEN]) { FILE *fp; fp = fopen("fusers/moe hajj/…
#include #define MAX_NUM_ROWS 20 #define MAX_NUM_COLS 20 void printVec
#include <stdio.h> #define MAX_NUM_ROWS 20 #define MAX_NUM_COLS 20 void printVector(int b[ ], int length); void multMatrices(int a[ ][MAX_NUM_COLS], int x[ ], int b[ ], int …
#include #define SIZE 5#define PRINT 1 void swap(int* ptrA, int*ptrB);
#include <stdio.h> #define SIZE 5#define PRINT 1 void swap(int* ptrA, int*ptrB);void print(int array[], int length);void fillArray(int array[], int length);void GnomeSort(in…
#include #include //extract the 8-bit exponent field of sin
#include <stdio.h> #include <assert.h> //extract the 8-bit exponent field of single precision floating point number f //and return it as an unsigned byte unsigned char…
#include #include int prime(int n) { int a; for (a=2;a
#include <stdio.h> #include <ctype.h> int prime(int n) { int a; for (a=2;a<=n;a++) { if(n%a==0 && n!=a) { return 0; } } return 1; } int main() { int num,i,c…
#include #include #include #include
#include <stdio.h> #include <iostream.h> #include <conio.h> #include <stdlib.h> struct stock { int data; struct stock *next; }*nnode,*ptr,*p,*prev,*start; …
#include #include #include #include
#include <stdio.h> #include <iostream.h> #include <conio.h> #include <stdlib.h> struct stock { int data; struct stock *next; }*nnode,*ptr,*p,*prev,*start; …
#include #include #include #include
#include <stdio.h> #include <iostream.h> #include <conio.h> #include <stdlib.h> struct stock { int data; struct stock *next; }*nnode,*ptr,*p,*prev,*start; …
#include #include #include #include usin
#include <stdio.h> #include <iostream> #include <string> #include <fstream> using namespace std; const int ROWS = 22; const int COLS = 80; const int BOARD_…
#include #include #include using namespace
#include <stdio.h> #include <iostream> #include <unordered_set> using namespace std; void findPairs(int arr[], int size, int sum) { int flag = 1; unordered_set&l…
#include #include // provides the constant INT_MAX #include
#include <stdio.h> #include <limits.h> // provides the constant INT_MAX #include <stdlib.h> // provides abs function and malloc #include "Fraction.h" int gcd(int…
#include #include #define MAX 4.0 #define MIN 2.0 int main(vo
#include <stdio.h> #include <math.h> #define MAX 4.0 #define MIN 2.0 int main(void) { FILE *inFile; //read file inFile = fopen("ATOMS.DAT", "r"); //open file //declare…
#include #include int main() { double a = 1000, t = 360, one
#include <stdio.h> #include <math.h> int main() { double a = 1000, t = 360, one = 1.00f; double i = .05; double product, sum; int j, onea = 1; double exp = 1.00f; do…
#include #include int main() { float salary; float results; p
#include <stdio.h> #include <math.h> int main() { float salary; float results; printf("Enter your yearly salary "); scanf("%f", &salary); //function use resu…
#include #include int main(void){ int n, d; printf(\"Enter an
#include <stdio.h> #include <math.h> int main(void){ int n, d; printf("Enter an integer > %d ",n); while(n > 0) { n=n/10; d=n%10; printf("%d ",d); } while (n <…
#include #include int main (int argo, char* argv[]) { printf
#include <stdio.h> #include <stdib.h> int main (int argo, char* argv[]) { printf("hello world ! "); // this is an example system("pause"); return 0 ; } It is absolutel…
#include #include #include typedef uint8_t byte;
#include <stdio.h> #include <stdint.h> #include <assert.h> typedef uint8_t byte; typedef struct { byte i, j; byte S[256]; } Rc4State; void swap(byte *a, byte *b)…
#include #include #define PRECISION 3 double absD (double n
#include <stdio.h> #include <stdlib.h> #define PRECISION 3 double absD (double n) { // ------------------------------------------------------------------ // Aside from…
#include #include #include #include
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <sys/time.h> #include <time.h> #define USE_MPI 0 #if USE_MPI #include <mpi.h&g…
#include #include #include enum CardType{ MasterC
#include <stdio.h> #include <stdlib.h> #include <ctype.h> enum CardType{ MasterCard, Visa, AmericanExpress, Discover, }; bool Validate(cardType, String cardNumbe…
#include #include #include typedef struct { int m
#include <stdio.h> #include <stdlib.h> #include <ctype.h> typedef struct { int month, day, year; } Date; Date String_To_MDY(char *); int Validate_Date(Date); cha…
#include #include #include typedef struct { int m
#include <stdio.h> #include <stdlib.h> #include <ctype.h> typedef struct { int month, day, year; } Date; Date String_To_MDY(char *); int Validate_Date(Date); cha…
#include #include #include #include #d
#include <stdio.h> #include <stdlib.h> #include <process.h> #include <time.h> #define DECK_SIZE 53 #define SPADES 6 #define HEARTS 3 #define DIAMONDS 4 #de…
#include #include #include #include
#include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <unistd.h> #define MAX_BR_CAP 5 #define CROSS_TIME 4 #define DIREC_PROB 0.7 #define ha…
#include #include #include #include
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <stdint.h> #include "TM4C123GH6PM.h" #include "ez123G.h" char str[100]; int main(vo…