Web development and programming
191828 questions • Page 24 / 3837
#include #include class a { private: int x; int y; public:
#include<iostream.h> #include<conio.h> class a { private: int x; int y; public: a() { x=0; y=0; } friend voidoperator>>(istream&a…
#include #include #include #include
#include<iostream.h> #include<fstream.h> #include<iomanip.h> #include<stdlib.h> //using namespace std; class planet { private: int id; int x; int y; int z;…
#include #include #include #include #i
#include<iostream.h> #include<fstream.h> #include<string.h> #include<conio.h> #include<stdio.h> #include<string.h> #include <stdlib.h> #i…
#include #include #include #include #i
#include<iostream.h> #include<fstream.h> #include<string.h> #include<conio.h> #include<stdio.h> #include<string.h> #include <stdlib.h> #i…
#include #include struct data { char name[30]; float curr
#include<iostream.h> #include<fstream.h> struct data { char name[30]; float current,last; }; void main() { fstream file; file.open("stocksprices.txt"); struct a[30],b;…
#include int main() {int i,j,k; for(j=1;j
#include<iostream.h> int main() {int i,j,k; for(j=1;j<7;j++) {for(i=1;i<=j;i++) cout<<"*"; cout<<endl; } for (j=7;j>0;j--) {for(i=1;…
#include int stack [15]; int i = -1 ; void star line ( ) { for(int i
#include<iostream.h> int stack [15]; int i = -1 ; void star line ( ) { for(int i=o; i<45;i++) cout<<"*"; cout<<endl; } void push(int k) i++; if(i<15) stack…
#include #include #include using namespace std; void
#include<iostream> #include <cmath> #include <iomanip> using namespace std; void BuyCoffee1(char&, double, double, double); void instructionrerun(); void Buy…
#include #include #include #include #inc
#include<iostream> #include <fstream> #include <iomanip> #include <cstring> #include <string> using namespace std; void sort(string[],double[],int); …
#include #include #include using namespace std; void
#include<iostream> #include <fstream> #include<cmath> using namespace std; void input(int tempArray) { ifstream fin; ofstream fout; fin.open("input1.txt…
#include #include #include //Needed for toupper func
#include<iostream> #include <fstream> #include<string> //Needed for toupper function #include<cctype> using namespace std; void Capitalize (char *sentenceP…
#include #include #include using namespacestd; int
#include<iostream> #include <iomanip> #include <fstream> using namespacestd; int buildAr( int[],double[], double[] ); void displayAr( int[], double[], double[], …
#include #include #include using namespace std; int
#include<iostream> #include <iomanip> #include <string> using namespace std; int negative(int t) { char p; cout<< "do you want to terminate the program…
#include #include using namespace std; const int COLWIDTH =
#include<iostream> #include <iomanip> using namespace std; const int COLWIDTH = 11; //width of columns in factortable bool isfibonacci(int); int sumdigits(int); void f…
#include #include using namespace std; int main () { int i,o
#include<iostream> #include <iomanip> using namespace std; int main () { int i,odd,count=0,n,sum=0; /initialize variables cout<<"Even numbers between 2 to 40 "; …
#include #include using namespace std; int main () { int i,o
#include<iostream> #include <iomanip> using namespace std; int main () { int i,odd,count=0,n,sum=0; /initialize variables cout<<"Even numbers between 2 to 40 "; …
#include #include using namespace std; int main(){ double in
#include<iostream> #include <iomanip> using namespace std; int main(){ double income,tax; char sm; int check; char choice='y'; while(choice=='y') { check=1; while (che…
#include #include #include #include using
#include<iostream> #include <string> #include <fstream> #include <iomanip> using namespace std; const int SIZE = 25;//Size of arrays int main() { double Sa…
#include #include #include #include using
#include<iostream> #include <string> #include <fstream> #include <iomanip> using namespace std; const int SIZE = 25;//Size of arrays int main() { double Sa…
#include #include #include #include using
#include<iostream> #include <string> #include <fstream> #include <iomanip> using namespace std; const int SIZE = 25;//Size of arrays int main() { double Sa…
#include #include #include #include using
#include<iostream> #include <string> #include <fstream> #include <iomanip> using namespace std; int main() { ifstream infile; //Input filestream variable o…
#include #include #include #include using
#include<iostream> #include <string> #include <fstream> #include <iomanip> using namespace std; int main() { ifstream infile; //Input filestream variable o…
#include #include using namespace std; //title //director //y
#include<iostream> #include <string> using namespace std; //title //director //year released //running time (in minutes) struct MovieData { string title; string direct…
#include #include using namespace std; struct Cars //Car stru
#include<iostream> #include <string> using namespace std; struct Cars //Car structure { int vin,year; string model, make; double price; }; int main() { Cars forsale; i…
#include #include using namespace std; struct MovieData { str
#include<iostream> #include <string> using namespace std; struct MovieData { string title; string director; int year_released; double running_time; }; MovieData getInf…
#include #include using namespace::std; const int NUMBER_NAME
#include<iostream> #include <string> using namespace::std; const int NUMBER_NAMES = 19; const string names[NUMBER_NAMES] = { " printForward"," printReverse"," length",…
#include #include \"myStack.h\" using namespace std; int main( ) { sta
#include<iostream> #include "myStack.h" using namespace std; int main( ) { stackType<int> intStack(50); stackType<int> tempStack; intStack.push(18); …
#include #include using namespace std; template s
#include<iostream> #include<cassert> using namespace std; template<class Type> struct nodeType { Type info; nodeType<Type> *link; }; template<clas…
#include #include using namespace std; void stringupper(char*)
#include<iostream> #include<cctype> using namespace std; void stringupper(char*); int countchar(const char*,char) int main() { char strgl[]="fdsgnsdfgsdg"; char *ptr_s…
#include #include #include #include #include
#include<iostream> #include<cmath> #include<cstdlib> #include<fstream> #include <iomanip> #include <ctype.h> #include <string.h> #include…
#include #include #include using namespace std; int ma
#include<iostream> #include<cmath> #include<iomanip> using namespace std; int main() {double x,y,num,denom; do {cin>>x; num= (-4*pow(x,3.0)+12*pow(x,2.0)-3…
#include #include using namespace std; //listing all function h
#include<iostream> #include<cmath> using namespace std; //listing all function here before main void name() {cout<<"My name is Roy ";} void invalid() {cout<&l…
#include #include using namespace std; double f(float); int mai
#include<iostream> #include<cmath> using namespace std; double f(float); int main() { //declaring the required variables float x1; float x2; int n; float h; float x; f…
#include #include using namespace std; int main() //Declaring m
#include<iostream> #include<cmath> using namespace std; int main() //Declaring my variables here.While the num and denom may not benecssary by seperating them I made i…
#include #include using namespace std; int nfact=1, k, x; doubl
#include<iostream> #include<cmath> using namespace std; int nfact=1, k, x; double sinvalue,j,d, sin = 0; for(int i = 0; i<10; i++){ j = pow(-1,i); k=( (2*i)+1); d= …
#include #include #include const int ROWS=7; typedef
#include<iostream> #include<cstdlib> #include<cstddef> const int ROWS=7; typedef char Seats[]; char* Seats=new int[4]//these two lines aren't being done prope…
#include #include #include #include #include
#include<iostream> #include<cstdlib> #include<ctime> #include<fstream> #include<iomanip> using namespace std; double windspeed( double a, double b); …
#include #include #include using namespace std; void c
#include<iostream> #include<cstdlib> #include<ctime> using namespace std; void check_answer(int,int,int,int &score); int main() { int i,answer,x,y,op,sco…
#include #include #include using namespace std; doub
#include<iostream> #include<cstdlib> #include<fstream> using namespace std; double wind(double a, doubleb); int main() { ofstreamOOO; doubley1, y2, withs…
#include #include #include using namespace std; class
#include<iostream> #include<cstdlib> #include<vector> using namespace std; class Student{ char name[45]; int priority; }; class BinaryHeap { private: vector<S…
#include #include//for rand and srand #include//for th
#include<iostream> #include<cstdlib>//for rand and srand #include<ctime>//for the time function(seed) using namespace std; int main() { //Get the system time …
#include #include #include using namespace std; int ma
#include<iostream> #include<ctime> #include<cstdlib> using namespace std; int main() { srand(time(0)); int number = rand() % 101; cout << " guess a magic n…
#include #include #include #include using na
#include<iostream> #include<fstream> #include<cstdlib> #include<cctype> using namespace std; int digit_to_int(char c); class Money { public: friend is…
#include #include #include using namespace std; int
#include<iostream> #include<fstream> #include<iomanip> using namespace std; int const SIZE = 15; struct studentType { string studentFname; string studentLname; i…
#include #include #include using namespace std; int
#include<iostream> #include<fstream> #include<iomanip> using namespace std; int const SIZE = 15; struct studentType { string studentFname; string studentLname; i…
#include #include #include #include using n
#include<iostream> #include<fstream> #include<stdlib.h> #include<string> using namespace std; void readFile(string inputFileName, string *words, int num){ …
#include #include #include//fortheexit()function us
#include<iostream> #include<fstream> #include<stdlib.h>//fortheexit()function usingnamespacestd; //functionprototypes voidReadInScores(intscores[],int&howMan…
#include #include #include #include #include
#include<iostream> #include<fstream> #include<string> #include<iomanip> #include<cstdlib> using namespace std; //Function prototypes double average(d…
#include #include #include using namespace std; #inc
#include<iostream> #include<fstream> #include<utility> using namespace std; #include "stack_3358.h" const int MAX = 25; void showArray(const char array[][MAX], i…
#include #include using namespace std; bool isPrime(int); voi
#include<iostream> #include<fstream> using namespace std; bool isPrime(int); void main() { fstream outfile; outfile.open("primenumbers.txt",ios::out); for(int number=1…
Subject
Web development and programming
Use Browse or pick another subject.