Web development and programming
191828 questions • Page 26 / 3837
#include using namespace std; //Function Prototypes double ascending(d
#include<iostream> using namespace std; //Function Prototypes double ascending(double, int); double descending(double, int); double average (double, int, double); //double h…
#include using namespace std; //Function prototypes void ascending(dou
#include<iostream> using namespace std; //Function prototypes void ascending(double[], int); void descending(double[], int); void highest(); void lowest(); void average(); /…
#include using namespace std; //Function prototypes void ascending(dou
#include<iostream> using namespace std; //Function prototypes void ascending(double[], int); void descending(double[], int); void highest(); void lowest(); void average(); /…
#include using namespace std; //listing all function here before main
#include<iostream> using namespace std; //listing all function here before main void name() {cout<<"My name is Roy ";} void invlaid() {cout<<"Data is Invalid ple…
#include using namespace std; char mat[3][3]; void matrix(); int main(
#include<iostream> using namespace std; char mat[3][3]; void matrix(); int main() {int i,j; for(i=0;j<3;i++) for(j=0;j<3;j++) mat[i][j]=' '; matrix (); int t…
#include using namespace std; char mat[3][3]; void matrix(); int main(
#include<iostream> using namespace std; char mat[3][3]; void matrix(); int main() {int i,j; for(i=0;j<3;i++) for(j=0;j<3;j++) mat[i][j]=' '; matrix (); int t…
#include using namespace std; char v_operator; int main() { cout
#include<iostream> using namespace std; char v_operator; int main() { cout << " Enter your preferred operator " << endl; cin >> v_operator; switc…
#include using namespace std; class FlashDrive { public: FlashDrive();
#include<iostream> using namespace std; class FlashDrive { public: FlashDrive(); FlashDrive(int capacity, int used, bool pluggedIn); ~FlashDrive(); void plugIn(); void pullO…
#include using namespace std; class ResistorClass { public: string m_c
#include<iostream> using namespace std; class ResistorClass { public: string m_cResistorName; void DisplayResistor(void) { cout<<"Values for ResistorOne are:"<<e…
#include using namespace std; class TNode { public: int val; TNode(){}
#include<iostream> using namespace std; class TNode { public: int val; TNode(){} TNode(int v){val = v;} TNode * left; TNode * right; TNode * parent; …
#include using namespace std; const double TAXRATE=0.14; int main() {
#include<iostream> using namespace std; const double TAXRATE=0.14; int main() { //declaration section double payrate,hoursworked,taxAmount; //input section …
#include using namespace std; int funcIf(char); int funcSwitch(char);
#include<iostream> using namespace std; int funcIf(char); int funcSwitch(char); int main() { char a; cout<<"Enter the letter: "; cin>>a; int a1=funcIf(a); int a2…
#include using namespace std; int main () { itemOne = 12.95, itemTwo =
#include<iostream> using namespace std; int main () { itemOne = 12.95, itemTwo = 24.95, itemThree = 6.95, itemFour= 14.95, itemFive = 3.95, SubTotal = 63.75, SalesTax = SubT…
#include using namespace std; int main() { //declaring variables to ho
#include<iostream> using namespace std; int main() { //declaring variables to hold the weather station name, temperature, wind speed and direction string weather_station,win…
#include using namespace std; int main() { int ch, hours, ex, gsales,
#include<iostream> using namespace std; int main() { int ch, hours, ex, gsales, p, weeks;//declaring integer data types double hsalary, hpay, cpay, pitem, wsalary, mpa…
#include using namespace std; int main() { int m, d, y,age; int month
#include<iostream> using namespace std; int main() { int m, d, y,age; int month = 07, day =16, year = 1964; cout << "Enter the current date in month,d…
#include using namespace std; int main() { int numCount, total; double
#include<iostream> using namespace std; int main() { int numCount, total; double average; total = 0.0; cout << "Howmany numbers do you want to average? "; cin >>…
#include using namespace std; int main() {char answers[]=\"TFFTFFTTTTF
#include<iostream> using namespace std; int main() {char answers[]="TFFTFFTTTTFFTFTFTFTT"; char studanswer[20]; int question,score,ID,grade; score=0; cout<<"Please ent…
#include using namespace std; int main() {int i,j=0; string s; char ne
#include<iostream> using namespace std; int main() {int i,j=0; string s; char newstring[100],letter; char last='1'; //set to anything butblank cout<<"enter a strin…
#include using namespace std; int main() {int i,j=0; string s; char ne
#include<iostream> using namespace std; int main() {int i,j=0; string s; char newstring[100],letter; char last='1'; //set to anything butblank cout<<"enter a strin…
#include using namespace std; long get_number(); int searchList(long [
#include<iostream> using namespace std; long get_number(); int searchList(long [], const, long); int main() { const arrSize=18; long accounts[arrSize] ={5658845,8080152,1005…
#include using namespace std; template class ADT { T * stack
#include<iostream> using namespace std; template <class T> class ADT { T * stackRedBlue ; int sizeR ; int sizeB ; int topR ; int topB ; public: //Meber Functions //…
#include using namespace std; void PrintPurpose(); void PrintResults(
#include<iostream> using namespace std; void PrintPurpose(); void PrintResults( int, int, int); void GetRoomDimension(int&, int&, int&, int&); int ComputeNum…
#include using namespace std; void fn(int a, int b) { a = 10; b = 20;
#include<iostream> using namespace std; void fn(int a, int b) { a = 10; b = 20; } int main() { int nValue1 = 1; int nValue2 = 2; fn…
#include using namespace std; void fn(int& a, int& b) { a = 10; b = 20
#include<iostream> using namespace std; void fn(int& a, int& b) { a = 10; b = 20; } int main() { int nValue1 = 1; int nValue2 = 2; …
#include using namespace std; void setZero(int [],int); void inputAlph
#include<iostream> using namespace std; void setZero(int [],int); void inputAlpha (int [], int); void doubleArray (int [], const int [], int); void copyGamma (int [] [4], co…
#include using std::cout; using std::cin; using std:: ostream; using s
#include<iostream> using std::cout; using std::cin; using std:: ostream; using std::istream; using std::endl; class myOps { public: int *x; int s; myO…
#include usingnamespace std ; int main() { Declare x, y, temp, remaind
#include<iostream> usingnamespace std ; int main() { Declare x, y, temp, remainder asInteger. // read in the two integers cout << endl ; cout << …
#include usingnamespace std ; intmain() { declare hours_worked as anin
#include<iostream> usingnamespace std ; intmain() { declare hours_worked as aninteger ;//No. of hrs worked during week declare pay_rateas a float ; //Pay rate:dollars …
#include #define MAXGROUP 3 void mm(char st[], int func); int main(void
#include<stdio.h> #define MAXGROUP 3 void mm(char st[], int func); int main(void) { char meetday[MAXGROUP]; char ch; int count; …
#include #define MAXNUM 60 //defines the Maximum NUM #define MAXTIM 60/
#include<stdio.h> #define MAXNUM 60 //defines the Maximum NUM #define MAXTIM 60//define maximum time step size /*function definition for returns the number of neighbors of p…
#include #include #include void resistance(); void h
#include<stdio.h> #include <conio.h> #include <math.h> void resistance(); void help(); void table(); int main() {int i,code=5; while(code>=1) {printf("Select …
#include #include #include #define hdr_3_across \"
#include<stdio.h> #include <conio.h> #include<process.h> #define hdr_3_across " %.3s %.3s %.3s %s %s %s " #define hdr_1_across " %s %u %s " void bada…
#include #include int main() { char ch; int is_a = 1, i, coun
#include<stdio.h> #include <ctype.h> int main() { char ch; int is_a = 1, i, count[26] = {0}; printf("Enter thefirst word "); ch = getchar(); while(ch != ' ') { …
#include #include void do_next_op(double,char,double*); void s
#include<stdio.h> #include <math.h> void do_next_op(double,char,double*); void scan_data(char*, double*); int main(void) { char oper='-'; double var1=0,var2; scan_data…
#include #include #define MAX_IN_LENGTH 241 #define OUT_LENG
#include<stdio.h> #include <stdlib.h> #define MAX_IN_LENGTH 241 #define OUT_LENGTH 60 FILE *in; FILE *out; double compare_DNA(char [], char [], char s[], int ); void p…
#include #include #include #define MAXSIZ 6 int Bin
#include<stdio.h> #include <stdlib.h> #include <math.h> #define MAXSIZ 6 int Binarysum(intA[],int i,int n); int main(void) { int A[10]; int i,n; printf("Enter th…
#include #include #include double arithGame(int max
#include<stdio.h> #include <stdlib.h> #include <time.h> double arithGame(int max, int quantity) { max =100; intnumber, i; srand(t…
#include #include int main(void) { int num , factor1 = 2 , f
#include<stdio.h> #include <stdlib.h> int main(void) { int num , factor1 = 2 , factor2 = 2 , count = 0; printf("Enter an integer number > than1 "); for(…
#include #include #include #define MAXIMUM_LENGTH30
#include<stdio.h> #include <string.h> #include <math.h> #define MAXIMUM_LENGTH30 struct inventory_node{ int data; struct inventory_node *left; struct inventory_n…
#include #include int main() { int arr[500]; int i = 0; int
#include<stdio.h> #include<Windows.h> int main() { int arr[500]; int i = 0; int temp, j; int value; int count = 0; char c; FILE*inFile; FILE*outFile; …
#include #include #include int is_palindrome(char*);
#include<stdio.h> #include<conio.h> #include<string.h> int is_palindrome(char*); //function prototype int main() { char string[100],*ptr; // declaring the string…
#include #include using namespace std; struct date{ int day; i
#include<stdio.h> #include<conio.h> using namespace std; struct date{ int day; int month; int year; }; struct car{ char make[10]; struct date man; struct date pur; dou…
#include #include void binary(unsigned int); // Prototype Decl
#include<stdio.h> #include<conio.h> void binary(unsigned int); // Prototype Declaration int main() { unsigned int num; printf("Enter Decimal Number : "); scan…
#include #include void main() { double count,rating,highiestra
#include<stdio.h> #include<conio.h> void main() { double count,rating,highiestrating=0,lowestrating=0, totalrating=0; float averagerating=0.0; clrscr(); //Accept 5 val…
#include #include void matrix_index(int D, int C); void matrix
#include<stdio.h> #include<conio.h> void matrix_index(int D, int C); void matrix_pointer(int *a,int *b); void task(int A,int B); void matrix_index(int D, int C) { …
#include #include void main() { char *a = \"hey\"; free( a );
#include<stdio.h> #include<malloc.h> void main() { char *a = "hey"; free( a ); a = "hello"; printf("%s",a); } _______________________________________ #include <s…
#include #include int main() { int firstx; int firsty; int seco
#include<stdio.h> #include<math.h> int main() { int firstx; int firsty; int secondx; int secondy; int thirdx; int thirdy; double distanceFS…
#include #include #define MAX 20 void calculateAndPrintData(f
#include<stdio.h> #include<stdlib.h> #define MAX 20 void calculateAndPrintData(float* X, float* Y, int n); int main() { float x[MAX], y[MAX]; int i,n; printf("Enter to…
#include #include #include #define NTHREADS 10 pth
#include<stdio.h> #include<stdlib.h> #include<pthread.h> #define NTHREADS 10 pthread_t threads[NTHREADS]; void go (int n) { printf("Hello from thread %d ", n); t…
Subject
Web development and programming
Use Browse or pick another subject.