Browse All
Alphabetical listing with fast deep pagination.
1197283 items • Page 35 / 23946
#include #include #include \"DataStore.hpp\" /** * Construct an empty DataStore.
#include #include #include "DataStore.hpp" /** * Construct an empty DataStore. */ DataStore::DataStore() { // TODO: Handle any default initialization you need here. } /** * Con…
#include #include #include \"DeckOfCards.h\" // DeckOfCards class definition usi
#include #include #include "DeckOfCards.h" // DeckOfCards class definition using namespace std; int main() { DeckOfCards myDeckOfCards; myDeckOfCards.shuffle(); // place Cards in …
#include #include #include \"list.h\" /* these are the two procedures you are go
#include #include #include "list.h" /* these are the two procedures you are going to write */ s_ptr insert_ordered(int v, s_ptr head) { } int in_ordered_list(int v, s_ptr head) { …
#include #include #include \"studentRoll.h\" #include StudentRoll::StudentRoll()
#include #include #include "studentRoll.h" #include StudentRoll::StudentRoll() { std::cout<< "in costructor "; head = tail = NULL; } void StudentRoll::insertAtTail(const Stu…
#include #include #include float all = 0; void calculateCharges(float cus[]); in
#include #include #include float all = 0; void calculateCharges(float cus[]); int main(){ float cus[3]; printf ("Please input the first customer's hours "); scanf("%f", &cus[0…
#include #include #include include int main () // Step 1: Create a socket int so
#include #include #include include int main () // Step 1: Create a socket int sockfd socket (AF_INET, SOCK_STREAM, 0) // Step 2: Set the destination information struct sockaddr_in…
#include #include #include int main(int argc, char *argv[]) { int loop = 0; //Va
#include #include #include int main(int argc, char *argv[]) { int loop = 0; //Variable used for counting in the loop. int keystrokes = 0; //Counts number of keystrokes. int letter…
#include #include #include int main(int argc, char** argv) { // Initialize the M
#include #include #include int main(int argc, char** argv) { // Initialize the MPI environment MPI_Init(NULL); // Find out rank int rank; MPI_Comm_rank (MPI_COMM WORLD, &rank;…
#include #include #include typedef struct customerStruct { int numItems; int pro
#include #include #include typedef struct customerStruct { int numItems; int processTime;//(item process time * num items) int waitTime; struct customerStruct *next; }client; type…
#include #include #include using namespace std; class Triangle{ public: double a
#include #include #include using namespace std; class Triangle{ public: double a; double b; double c; void GetSides(){ do{ cout << "Enter the three side:…
#include #include #include using namespace std; class call_record { public: stri
#include #include #include using namespace std; class call_record { public: string cell_number; int relays; int call_lenght; double net_cost; double tax_rate; double call_tax; dou…
#include #include #include using namespace std; int main() { //Declaring constan
#include #include #include using namespace std; int main() { //Declaring constant int const size =2; //Creating string type array string names[size]; //Creating int type array int…
#include #include #include using namespace std; int main() { //Declaring constan
#include #include #include using namespace std; int main() { //Declaring constant int const size =2; //Creating string type array string names[size]; //Creating int type array int…
#include #include #include using namespace std; int main(int argc, char** argv)
#include #include #include using namespace std; int main(int argc, char** argv) { if(argc < 7) { cout <<"ERROR !!!!"<<' '; cout<< "Please pass 3 command line …
#include #include #include using namespace std; string DecimalToBinary(unsigned
#include #include #include using namespace std; string DecimalToBinary(unsigned int dec){ char binary[33] = {0}; int ix = 32; // subscript of current character do{ binary[--ix] = …
#include #include #include using namespace std; struct studentRecord{ // Structu
#include #include #include using namespace std; struct studentRecord{ // Structure containing variables for all the double quiz1; // tests/quizes, including the letter grade doubl…
#include #include #include using namespace std; struct studentRecord{ // Structu
#include #include #include using namespace std; struct studentRecord{ // Structure containing variables for all the double quiz1; // tests/quizes, including the letter grade doubl…
#include #include #include using namespace std; void mapitE(string,char[]); void
#include #include #include using namespace std; void mapitE(string,char[]); void mapitD(string,char[]); void encryptdecrypt(const string,const char[],int,string&); int main() …
#include #include #include using namespace std; void mapitE(string,char[]); void
#include #include #include using namespace std; void mapitE(string,char[]); void mapitD(string,char[]); void encryptdecrypt(const string,const char[],int,string&); int main() …
#include #include #pragma warning(disable : 4996) // Read before you start: // D
#include #include #pragma warning(disable : 4996) // Read before you start: // Do not modify any part of this program that you are given. Doing so may cause you to fail automated …
#include #include #pragma warning(disable : 4996) // Read before you start: // D
#include #include #pragma warning(disable : 4996) // Read before you start: // Do not modify any part of this program that you are given. Doing so may cause you to fail automated …
#include #include /* Structure to store students data */ struct Product { char *
#include #include /* Structure to store students data */ struct Product { char *name; double unit_price; double sale_vol; double total_sale; }; struct Product *readSalesData(int *…
#include #include // For error exit() // CPU Declarations -- a CPU is a structur
#include #include // For error exit() // CPU Declarations -- a CPU is a structure with fields for the // different parts of the CPU. //***STUB *** is to fill in code typedef short…
#include #include \"FuelGauge.h\" #include \"Odometer.h\" using namespace std; i
#include #include "FuelGauge.h" #include "Odometer.h" using namespace std; int main() { FuelGauge fuel(15); Odometer odm(0, &fuel); for(int i = 0; i < 15; i++) { f…
#include #include int G = 1; int + p; void fune(int - atgl, int arg2) {statie in
#include #include int G = 1; int + p; void fune(int - atgl, int arg2) {statie int S = 10; omt A[10] = {arg^2}; print ("8; %4d, B: %4d, C; %4d ", S, *argl, A[0]); S = arg^2} int ma…
#include #include int G = 1; int* P; void func(int * agrl int arg2) {static int
#include #include int G = 1; int* P; void func(int * agrl int arg2) {static int S = 10; int A[10] = {arg2}; printf("S: %4d, B: %4d, C: %4d ", S, *argl, A[0]); S = arg2;} int main …
#include #include int main() { int i, j; char str[10][50], temp[50]; printf(\"En
#include #include int main() { int i, j; char str[10][50], temp[50]; printf("Enter 10 words: "); for(i=0; i<10; ++i) scanf("%s[^ ]",str[i]); for(i=0…
#include #include int main(void) { double x1, x2, x3, y1, y2, y3, m12, xc, yc, r
#include #include int main(void) { double x1, x2, x3, y1, y2, y3, m12, xc, yc, r; double circle_x_coord(double x1,double y1,double x2,double y2,double x3,double y3); printf("Enter…
#include #include struct data { char name[30]; float current,last; }; void main(
#include #include struct data { char name[30]; float current,last; }; void main() { fstream file; file.open("stocksprices.txt"); struct a[30],b; for (int i=0;file!=eof;i++) { b=fi…
#include #include struct record { char author[20]; char title[30]; float price;
#include #include struct record { char author[20]; char title[30]; float price; struct { char month[10]; int year; } date; char publisher[10]; int quantity; }; int look_up(struct …
#include #include using namespace std; /** The vector class * based on implement
#include #include using namespace std; /** The vector class * based on implementation from chapter 6 of textbook */ template class Vector { private: int _capacity; /…
#include #include using namespace std; // a structure to represent a point in 2D
#include #include using namespace std; // a structure to represent a point in 2D , the x and y co-ordinates class Point { double x; double y; public: Point() //def…
#include #include using namespace std; // class declaration class Date { private
#include #include using namespace std; // class declaration class Date { private: int month; int day; int year; public: Date(int = 7, int = 4, int = 2001); // constructor Date____…
#include #include using namespace std; //declaration of class class Customer { /
#include #include using namespace std; //declaration of class class Customer { // members are private by default string c_name; string c_address; // you explicitly declare the pub…
#include #include using namespace std; //declaration of class class Customer { /
#include #include using namespace std; //declaration of class class Customer { // members are private by default string c_name; string c_address; // you explicitly declare the pub…
#include #include using namespace std; char coursegrade(int score) { switch (sco
#include #include using namespace std; char coursegrade(int score) { switch (score/10) { case 0: case 1: case 2: case 3: case 4: case 5: return 'F'; case 6: return 'E'; case 7: re…
#include #include using namespace std; char coursegrade(int score); int main ()
#include #include using namespace std; char coursegrade(int score); int main () { int score; cout<<"Function returning grades"<<endl; cout<<"Enter your score"<…
#include #include using namespace std; class HotelRoom { private: int _roomNumbe
#include #include using namespace std; class HotelRoom { private: int _roomNumber; int _roomCapacity; int _occupancyStatus; double _dailyRate; public: HotelRoom(); void setRoomNum…
#include #include using namespace std; class HotelRoom { private: int _roomNumbe
#include #include using namespace std; class HotelRoom { private: int _roomNumber; int _roomCapacity; int _occupancyStatus; double _dailyRate; public: HotelRoom(); void setRoomNum…
#include #include using namespace std; class Numbers { private: int num1; int nu
#include #include using namespace std; class Numbers { private: int num1; int num2; public: void setNum1(int ); //assigns value of the parameter to num1 void setNum2(int); // assi…
#include #include using namespace std; class Person { protected: string firstNam
#include #include using namespace std; class Person { protected: string firstName; string lastName; public: Person(void) { cout << "In the Person constructor (a derived clas…
#include #include using namespace std; class Vehicle { public: virtual int numOf
#include #include using namespace std; class Vehicle { public: virtual int numOfTires() = 0; // virtual function }; class Motorcycle : public Vehicle { public: int numOfTires(){re…
#include #include using namespace std; class dat { public: int tno,sc,db,ht,vol;
#include #include using namespace std; class dat { public: int tno,sc,db,ht,vol; int te; float sum; void getip() { cout<<"enter tree no:"; cin>>tno; if(tno==999) exit(…
#include #include using namespace std; class hInt { public: unsigned int operato
#include #include using namespace std; class hInt { public: unsigned int operator() (int item) const { unsigned int value = (unsigned int) item; value *= value; // square the item…
#include #include using namespace std; class hInt { public: unsigned int operato
#include #include using namespace std; class hInt { public: unsigned int operator() (int item) const { unsigned int value = (unsigned int) item; value *= value; // square the item…
#include #include using namespace std; const double PI = 3.141592654; void ConeV
#include #include using namespace std; const double PI = 3.141592654; void ConeVolume(double x, double n); int main() { double removedSectorLength; double PaperRad; double paperCu…
#include #include using namespace std; const int FIRST = 30; const int LAST = 30
#include #include using namespace std; const int FIRST = 30; const int LAST = 30; const int SIZE = 50; const int ROWS = 12; const int COLUMNS = 4; struct contestant_data { char fn…
#include #include using namespace std; const int NUM=4; int main() { //This is f
#include #include using namespace std; const int NUM=4; int main() { //This is for printing money in the proper format cout << setprecision(2) << fixed; //1. Declare t…
#include #include using namespace std; double larger(double x, double y); double
#include #include using namespace std; double larger(double x, double y); double comparethree(double a,double x,double y); int main () { double x; double y; double z; double a; do…
#include #include using namespace std; int main () { int score; char grade; cout
#include #include using namespace std; int main () { int score; char grade; cout<<"Function score"<<endl; cout<<"Enter score"<<endl; cin>>score; cout…