Browse All
Alphabetical listing with fast deep pagination.
1197283 items • Page 47 / 23946
#include main() { FILE *infile, *outfile; char inbuffer[80], m; int nu
#include <stdio.h> main() { FILE *infile, *outfile; char inbuffer[80], m; int number, sum = 0; if ( (infile = fopen("numbers.txt","r") ) == NULL) { printf("Input file could …
#include struct task{//process int id;//pid int bt;//burst time int at
#include <stdio.h> struct task{//process int id;//pid int bt;//burst time int at;//arrival time int pr;//priority }; typedef struct task Task; typedef Task *TaskPtr; struct …
#include typedef struct { int age; char name[32]; } student_t; student
#include <stdio.h> typedef struct { int age; char name[32]; } student_t; student_t get_student_info(void); int main(void) { student_t students[100]; for (int i=0; i<100; …
#include void bin (int num) //the bin commandturns every byte in the i
#include <stdio.h> void bin (int num) //the bin commandturns every byte in the input into its binary representation { while (num != 0) { printf("%i", num % 2); //the modulus…
#include void hanoi(int n, char *from, char *to, char *temp); //Call t
#include <stdio.h> void hanoi(int n, char *from, char *to, char *temp); //Call this procedure from assembly. It's here //because calling _printf from assembly is a bit //com…
#include void main() { int a[3] = {1, 2, 3}; int *p = a; printf(\"%p \
#include <stdio.h> void main() { int a[3] = {1, 2, 3}; int *p = a; printf("%p %p", p, a); } 7. #include <stdio.h> void main() { cha…
#include #include #include // (
#include <stdlib.h> #include <cab202_graphics.h> #include <cab202_timers.h> // (a) Declare four global integer variables, as follows: // l - the horizontal locat…
#include #include #include #include #in
#include <stdlib.h> #include <iostream> #include <string> #include <fstream> #include <cstdlib> #include <cstdio> using namespace std; const in…
#include #include #include int main(void) { int ID
#include <stdlib.h> #include <stdio.h> #include <math.h> int main(void) { int IDNum = 0; float setofGrades = 0.0; float GPA = 0.0; char Studentid[8]; FILE *infil…
#include #include #include \"string.h\" STRING string_init_
#include <stdlib.h> #include <stdio.h> #include "string.h" STRING string_init_default_function(void) { String* pString = (String*)malloc(sizeof(String)); if(pString) …
#include #include const char reg[32][6] = {\"$zero\",\"$at\
#include <stdlib.h> #include <stdio.h> const char reg[32][6] = {"$zero","$at","$v0","$v1","$a0","$a1","$a2","$a3", "$t0","$t1","$t2","$t3","$t4","$t5","$t6","$t7","$s0…
#include #include #define MAX 100 void reverse_name(char *
#include <stdlib.h> #include <string.h> #define MAX 100 void reverse_name(char *name); int read_line(char str[], intn); int main() { char str[MAX+1]; int i = 0; char p…
#include // to get NULL main() { short m[]={3,5,7,2,5,1,2,2, 6,5,7,2,
#include <stdlib.h> // to get NULL main() { short m[]={3,5,7,2,5,1,2,2, 6,5,7,2,4,1,3,3, 7,7,3,2,5,7,1,9}; //unsigned char temp, i, j; unsigned char temp; unsigned char nu…
#include #include using namespace std; //These functions expla
#include <string> #include <cctype> using namespace std; //These functions explained below void spaces(); void introduction(); int main() { string sentence; char respo…
#include #include #include #include using
#include <string> #include <cmath> #include <iostream> #include <iomanip> using namespace std; //Determine Function Prototypes void DetermineWeekDay(float,…
#include #include #include #include #inc
#include <string> #include <fstream> #include <iostream> #include <sstream> #include <iomanip> using namespace std; int main(){ string name[3]; int t…
#include #include #include #include using
#include <string> #include <iostream> #include <fstream> #include <cmath> using namespace std; struct point { int x, y; // constructor point(int _x = 0, in…
#include #include #include #include using
#include <string> #include <iostream> #include <fstream> #include <cmath> using namespace std; / struct point { int x, y; // constructor point(int _x = 0, …
#include #include #include #include using
#include <string> #include <iostream> #include <fstream> #include <cmath> using namespace std; / struct point { int x, y; // constructor point(int _x = 0, …
#include #include #include #include using
#include <string> #include <iostream> #include <fstream> #include <cmath> using namespace std; // struct point { int x, y; // constructor point(int _x = 0,…
#include #include #include using namespace std; cl
#include <string> #include <iostream> #include <fstream> using namespace std; class RGB { public: RGB(unsigned char red = 0, unsigned char green = 0, unsigned ch…
#include #include using namespace std; class Person { protec
#include <string> #include <iostream> using namespace std; class Person { protected: string firstName; string lastName; public: Person(void) { cou…
#include #include using namespace std; class Person { protec
#include <string> #include <iostream> using namespace std; class Person { protected: string firstName; string lastName; public: Person(void) { …
#include #include using namespace std; class Person { protec
#include <string> #include <iostream> using namespace std; class Person { protected: string firstName; string lastName; public: Person(void) { …
#include #include using namespace std; struct Address { unsi
#include <string> #include <iostream> using namespace std; struct Address { unsigned number; string street; string suffix; string city; string state; unsigned zip; }; …
#include #include using namespace std; struct Grade { string
#include <string> #include <iostream> using namespace std; struct Grade { string name; string letterGrade; int numericGrade; Grade *pNext; // used fo…
#include using namespace std; class daytype { private : string weekday;
#include <string> using namespace std; class daytype { private: string weekday; public: void setday(string d); daytype(); daytype(string d); }; #include<ios…
#include using namespace std; class personType { public: void print() c
#include <string> using namespace std; class personType { public: void print() const; //Function to output the first name and last name //in the form firstNa…
#include #include #include #include
#include <sys/mdb_modapi.h> #include <stdlib.h> #include <stdio.h> #include <sys/types.h> #include <time.h> #include <ctype.h> int toupper(int …
#include #include #include #include
#include <sys/types.h> #include <sys/wait.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sysexit…
#include #include void getInputs(char *, char **, char
#include <sys/wait.h> #include <sys/stat.h> void getInputs(char *, char **, char **); void getInputs(char *str, char **inputs, char **tests) { FILE *fp = fopen(str,…
#include #include using namespace std; vector insert(co
#include <vector> #include <iostream> using namespace std; vector<int> insert(const vector<int> & prev, int pos, int elem){ vector<int> v; for (i…
#include #include #include using namespace std; enu
#include <vector> #include <string> #include <iostream> using namespace std; enum class Weekday { Monday, Tuesday, Wednesday, Thursday, Friday, …
#include #include \"Node.h\" #pragma once using namespace std; template
#include <vector> #include "Node.h" #pragma once using namespace std; template<class ItemType> class SortedDoublyLinkedList { //DO NOT MODIFY THIS CLASS DECLARATIO…
#include ??? // For setprecision() #include ??? // For cout, endl, fixed #includ
#include ??? // For setprecision() #include ??? // For cout, endl, fixed #include ??? // For the Color class declaration #include ??? // For the Point class declaration #include ?…
#include ??? // For sqrt() function #include ??? // For stringstream class #incl
#include ??? // For sqrt() function #include ??? // For stringstream class #include ??? // For Point class declaration //----------------------------------------------------------…
#include \"2170_9_7a.h\" #include #include using namespace
#include "2170_9_7a.h" #include <iostream> #include <stdlib.h> using namespace std; //The constructor reads in all the integers and stores them in the //object of type…
#include \"BagInterface.h\" #include \"DoubleLinkedBag.hpp\" #include
#include "BagInterface.h" #include "DoubleLinkedBag.hpp" #include <iostream> #include <string> #include <cctype> using namespace std; void displayBag(BagInterfac…
#include \"BinTree.h\" // CS212, Spring 2014, EXAM #5 void main() { BinTree
#include "BinTree.h" // CS212, Spring 2014, EXAM #5 void main() { BinTree<int> treeA; // Add elements to the tree treeA.insert(42); treeA.insert(11); …
#include \"Book.h\" #include #include // Q1 : CLASS METHODS
#include "Book.h" #include <string> #include <iostream> // Q1 : CLASS METHODS Part 1 : Constructor, Accessor, and Set Methods for Book (5 points) // Constructor // Cre…
#include \"Contact.h\" #include \"PhoneBook.h\" #include #include
#include "Contact.h" #include "PhoneBook.h" #include <iostream> #include <cstdlib> #include <cassert> int myrand(int upper){ return rand()%upper; } // generat…
#include \"Contact.h\" #include \"PhoneBook.h\" #include #include
#include "Contact.h" #include "PhoneBook.h" #include <iostream> #include <cstdlib> #include <cassert> int myrand(int upper){ return rand()%upper; } // generat…
#include \"Date.h\" Date::Date() { //constructor to assign todays date to date c
#include "Date.h" Date::Date() { //constructor to assign todays date to date char data[9]; //holder for the date _strdate_s(data); //gets the current date mm/dd/yy (THIS …
#include \"GameBoard.h\" #include #include #include
#include "GameBoard.h" #include <cstdlib> #include <ctime> #include <iostream> #include <iomanip> using namespace std; //Set the strategies of all players …
#include \"LinkedList.h\" #include #include using namespac
#include "LinkedList.h" #include <iostream> #include <stdlib.h> using namespace std; //---------------------------------------------------- LinkedList::LinkedList(){ t…
#include \"LinkedList.h\" // Header file #include template
#include "LinkedList.h" // Header file #include <cassert> template<class ItemType> LinkedList<ItemType>::LinkedList() : headPtr(nullptr), itemCount(0) { } // end…
#include \"Node.h\" Node::Node() { } void Node::setValue(int val) { } int Node::
#include "Node.h" Node::Node() { } void Node::setValue(int val) { } int Node::getValue() const { return 0; // Dummy Statement } void Node::setNext(Node* prev) { } Node…
#include \"Resistor.h\" #include #include #include
#include "Resistor.h" #include <iostream> #include <iomanip> #include <Windows.h> #include <math.h> using namespace std; //EIA Standard array element sizes…
#include \"StdAfx.h\" #include \"iostream\" #include \"iomanip\" using namespace
#include "StdAfx.h" #include "iostream" #include "iomanip" using namespace std; using std::cout; using std::endl; using std::cin; using std::setw; #define ErrorTolerance 0.0001 …
#include \"StdAfx.h\" #include \"iostream\" #include \"iomanip\" using namespace
#include "StdAfx.h" #include "iostream" #include "iomanip" using namespace std; using std::cout; using std::endl; using std::cin; using std::setw; #define ErrorTolerance 0.0001 …