Web development and programming
191828 questions • Page 18 / 3837
#include using namespace std; int main() { // Draw leaves cout
#include <iostream> using namespace std; int main() { // Draw leaves cout << " *" << endl; cout << " ***" << endl; cout << "*…
#include using namespace std; int main() { //Variables string origina
#include <iostream> using namespace std; int main() { //Variables string original; double remove_1; double remove_2; double remove_3; double remove_4; string productsymbol; …
#include using namespace std; int main() { //declare variables double
#include <iostream> using namespace std; int main() { //declare variables double dollarAmount; int quarters, dimes, nickels, pennies, …
#include using namespace std; int main() { char letter; cout
#include <iostream> using namespace std; int main() { char letter; cout << "Program to convert uppercase " << "letters to their corresponding " << "telepho…
#include using namespace std; int main() { double height[10]; int tal
#include <iostream> using namespace std; int main() { double height[10]; int tall=0; for(int x=0;x<10;x++) { height[x] = 0.0; } cout<<"Enter the height of 10 studen…
#include using namespace std; int main() { double height[10]; int tal
#include <iostream> using namespace std; int main() { double height[10]; int tall=0; for(int x=0;x<10;x++) { height[x] = 0.0; } cout<&l…
#include using namespace std; int main() { double time, length, pi; p
#include <iostream> using namespace std; int main() { double time, length, pi; pi = 3.1316; g = 32.2 time = 1.0; length = 12.0 * g * time / (2.0*pi) * time / (2.0*pi); cout …
#include using namespace std; int main() { int a[10], i, list; cout
#include <iostream> using namespace std; int main() { int a[10], i, list; cout << "Reading in: "; for (i = 0; i<10; i++) { cin >> a[i]; cout << a[i]; co…
#include using namespace std; int main() { int dice1,dice2,sum,r,a=0,
#include <iostream> using namespace std; int main() { int dice1,dice2,sum,r,a=0,b=0,c=0,d=0; int i; for(i=1;i<=100;i++) { dice1=rand()%6+1; dice2=rand()%6+1; …
#include using namespace std; int main() { int guess; cout
#include <iostream> using namespace std; int main() { int guess; cout << "Pick a number 0..3: "; cin >> guess; switch (guess) { case 0: case 1: cout << "To…
#include using namespace std; int main() { int hour,min; for (hour =
#include <iostream> using namespace std; int main() { int hour,min; for (hour = 1; hour <= 11; hour++) { for (min = 0; min <= 59; min++) { cout << hour << …
#include using namespace std; int main() { int hour,min; for (hour =
#include <iostream> using namespace std; int main() { int hour,min; for (hour = 1; hour <= 11; hour++) { for (min = 0; min <= 59; min++) { cout << hour << …
#include using namespace std; int main() { int list1[5]; int list2[15
#include <iostream> using namespace std; int main() { int list1[5]; int list2[15]; for (int i = 0; i < 5; i++) list1[i] = i * 1 - 2; …
#include using namespace std; int main() { int magicsquare[20][20]; i
#include <iostream> using namespace std; int main() { int magicsquare[20][20]; int rowsandcolumns; cout << "What size of a magic square would you like to test…
#include using namespace std; int main() { int num; cout
#include <iostream> using namespace std; int main() { int num; cout << endl << "Enter numbers, 999 to quit" << endl; //1 - START cin >…
#include using namespace std; int overtake(int a, int b){ // Moved th
#include <iostream> using namespace std; int overtake(int a, int b){ // Moved the do..while loop into…
#include using namespace std; int remove (intlist[], int size, int re
#include <iostream> using namespace std; int remove (intlist[], int size, int removeItem); int main() { int list[20], i, removeItem,n; cout<< "Enter size of list:"<…
#include using namespace std; struct HashEntry { tableSize = 0; strin
#include <iostream> using namespace std; struct HashEntry { tableSize = 0; string item; EntryType info; }; class Dictionary { public: enum EntryType {ACTIVE, EMPTY, DELETED}…
#include using namespace std; struct Node { int value; Node* link; };
#include <iostream> using namespace std; struct Node { int value; Node* link; }; typedef Node* NodePtr; void checkList (NodePtrhead) { if (head == NULL) { cout <<"You …
#include using namespace std; struct node { int val; node *next; }; v
#include <iostream> using namespace std; struct node { int val; node *next; }; void printList(node *head) { if (head == NULL) { cout << "Empty list" << endl; ret…
#include using namespace std; struct nodeType { int info; nodeType *l
#include <iostream> using namespace std; struct nodeType { int info; nodeType *link; }; void createList(nodeType*& first, nodeType*& last); void printList(nodeType*&…
#include using namespace std; void Change( int, int& ); void main( vo
#include <iostream> using namespace std; void Change( int, int& ); void main( void ) { int a = 10, b = 7; Change( a, b ); cout << a << " " << …
#include using namespace std; void figureMeOut( int& x, int y, int& z
#include <iostream> using namespace std; void figureMeOut( int& x, int y, int& z); int main( ) { int a, b, c; a = 10; b = 20; c = 30; figureMeOut(a, b, c); cout <…
#include using namespace std; void fill_array(int a[], int size, int
#include <iostream> using namespace std; void fill_array(int a[], int size, int number_used); void sort(int a[],int number_used); void swap_values(int& v1, int& v2);…
#include using namespace std; void initializeArray(int array[], int s
#include <iostream> using namespace std; void initializeArray(int array[], int size); void statsArray(int array[], int size, int &min, int &max, int &sum, double…
#include using namespace std; void modify(int &, int)); int main() {
#include <iostream> using namespace std; void modify(int &, int)); int main() { int x,y = 15; int &z = x x = 10 cout << “first: “ << x <&l…
#include using namespace std; void mover(int[],int[]); void bubble_so
#include <iostream> using namespace std; void mover(int[],int[]); void bubble_sort(int []); void output_list(int [],int []); int linear_search(int[],int); void explanation()…
#include using namespace std; void program1(){ //1st program here pri
#include <iostream> using namespace std; void program1(){ //1st program here printf("1st Program running"); } void program2(){ //1st program here printf("2st Program running…
#include using namespace std; void selectionSortArray(int [], int); v
#include <iostream> using namespace std; void selectionSortArray(int [], int); void displayArray(int[], int); int main() { int data[] = {9, 2, 0, 11, 5, 43, 22, 3, 102, 17, …
#include using namespace std; void start (int boxes [10]); void move
#include <iostream> using namespace std; void start (int boxes [10]); void move (int squares [10], int x, int y, int z); void add (int arr [10], int first, int last); void p…
#include using namespace::std; // Function prototypes void displayBox
#include <iostream> using namespace::std; // Function prototypes void displayBox ( int length ); void displayBox ( int length, char fillChar ); void displayBox ( int width, …
#include using namespacestd; int X(6),C(3); int TestMe(int &Y, intZ);
#include <iostream> using namespacestd; int X(6),C(3); int TestMe(int &Y, intZ); int main(void) { int A, B,W; A = 5; B = 2; X = 1; W = TestMe(A,B); // Last two outputlin…
#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 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…
Subject
Web development and programming
Use Browse or pick another subject.