Browse All
Alphabetical listing with fast deep pagination.
1197283 items • Page 43 / 23946
#include using namespace std; enum triangleType {noTriangle,equilater
#include <iostream> using namespace std; enum triangleType {noTriangle,equilateral,isosceles,scalene}; triangleType triangleShape (int side1, int side2, intside3); int main(…
#include using namespace std; enum triangleType{scalene, isosceles, e
#include <iostream> using namespace std; enum triangleType{scalene, isosceles, equilateral, noTriangle}; triangleType triangleShape(double[]); void print(triangleType); int …
#include using namespace std; int *create_array(int); int enter_data
#include <iostream> using namespace std; int *create_array(int); int enter_data (int*, int); int get_mode (int*, int); double average (int*, int); int showarray (int*, int);…
#include using namespace std; int F(int x[], int c) { if (c < 3) retu
#include <iostream> using namespace std; int F(int x[], int c) { if (c < 3) return 0; return x[c - 1] + F(x, c - 1); } int G(int a, int &b) { b = b - a; a = b + a; re…
#include using namespace std; int R_power(int count, const int & base
#include <iostream> using namespace std; int R_power(int count, const int & base) { if (count == 0) return 1; else return base …
#include using namespace std; int binarySearch(const int list[], int
#include <iostream> using namespace std; int binarySearch(const int list[], int length,const int &item); int i=0; int main() { int arr[10],size=10; int x; cout<<"P…
#include using namespace std; int binarySearch(int [], int, int); //
#include <iostream> using namespace std; int binarySearch(int [], int, int); // function prototype const int SIZE = 16; int main() { int found, value; int list[] = {34,19,19…
#include using namespace std; int gcd(intnum1, int num2); int main ()
#include <iostream> using namespace std; int gcd(intnum1, int num2); int main () { char junk; int num1, num2; double answer; cout<< "Please enter a list offractions th…
#include using namespace std; int main () { int foo; int *foo2; foo2
#include <iostream> using namespace std; int main () { int foo; int *foo2; foo2 = &foo; foo = 1234; cout <<…
#include using namespace std; int main (){ float pay[10]; int id[10];
#include <iostream> using namespace std; int main (){ float pay[10]; int id[10]; int i; float hours, wage; for (i=0; i<10; i++){ cout << "Plea…
#include using namespace std; int main() { /* Question 1 void Shoes (
#include <iostream> using namespace std; int main() { /* Question 1 void Shoes (int boots = 16, int& heels = 8, int sneakers =3){ cout<< "there are " << snea…
#include using namespace std; int main() { // 1. // There are a sever
#include <iostream> using namespace std; int main() { // 1. // There are a several errors with the below code // Fix the syntax and logical errors. // The Program should tak…
#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 N; cout
#include <iostream> using namespace std; int main() { int N; cout << " N: "; cin >> N; int acc = 0; cin >> acc; int minVal = acc; int maxVal = acc; for(…
#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 main() { int static_Array[5]; int *
#include <iostream> using namespace std; int main() { int static_Array[5]; int *dynamic_Array; dynamic_Array = new int[5]; int i; f…
#include using namespace std; int main(int argc, char * argv[]) { int
#include <iostream> using namespace std; int main(int argc, char * argv[]) { int i=1000; bool k=10; int x; cout << " Hello! This program attempts to use a …
#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 namespace::std; class coin { friend ostream & operator
#include <iostream> using namespace::std; class coin { friend ostream & operator << ( ostream &, const coin &); friend bool operator == ( int n, cons…
#include using namespace::std; class coin { friend ostream & operator
#include <iostream> using namespace::std; class coin { friend ostream & operator << ( ostream &, const coin &); friend bool operator == ( int n, cons…
#include using namespace::std; class coin { friend ostream & operator
#include <iostream> using namespace::std; class coin { friend ostream & operator << ( ostream &, const coin &); friend bool operator == ( int n, cons…
#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…