Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

moj xD

cpp

#include <iostream>

using namespace std;

int main()
{
   cout << "Artjoms Sorokins" << endl; 
    cout << "Jelgavas 5. vidusskola 8a klase" << endl;
   return 0;
}

Compile and Execute C++ Online

cpp

#include <iostream>

using namespace std;

int main()
{
   cout << "******" << endl;
   cout << " ***" << endl;
   cout << "  *  " << endl;
   cout << " ***   " << endl;
   cout << "******" << endl;
   return 0;
}

Compile and Execute C++ Online

cpp

#include <iostream>

using namespace std;

int main()
{
   cout << "Maksims Davidovs" << endl; 
   cout << "Jelgavas 5. vidusskola, 8a klase" << endl;
   
   return 0;
}

reading 2d file

cpp

#include <iostream>

using namespace std;

int main()
{
   cout << "Hello World" << endl; 
   
   return 0;
}

Compile and Execute C++ Online

cpp

#include <iostream>
#include<time.h>

using namespace std;

int main()   
{   
 time_t seconds; 
 time(&seconds);
 unsigned long long millis = (unsigned long long)seconds * 1000;
 //char const *p = reinterpret_cast<char const *>(millis);
 char * const p = reinterpret_cast<char * const>(&millis);
 cout<<p;

return 0;
}

Memes

cpp

#include <iostream>
#include<string>

using namespace std;

int i=0;
string customerWants;

int main()
{
struct menuItemType
{ 
    string menuItem; //Iteam on menu
    double menuPrice;  //Price of iteam
} ;
menuItemType menuList[8];
menuList[0] = {" 1) Plain Egg", 1.45};
menuList[1] = {" 2)Bacon and Egg", 2.45};
menuList[2] = {"Muffin", 0.99};
menuList[3] = {"French Toast", 1.99};
menuList[4] = {"Fruit Basket", 2.49};
menuList[5] = {"Cereal", 0.69};
menuList[6] = {"Coffee", 0.50};
menuList[7] = {"Coffee", 0.50};
    {
 for (i = 0; i < 7; i++)// showMenu
    cout << menuList[i].menuItem << " "<< menuList[i].menuPrice << endl;
    cout << "What would you like?"<< endl;
    }
cin <<customerWants << endl;

   return 0;
}

Compile and Execute C++ Online

cpp

// Name, Jag#, Date, File Name
// Assignment 2, Program to enter and calc avg of 5 test scores then display result to screen
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
// Attention CIS210 Students: Replace SouthPaw’s information with your own name/jag#
cout << "1) My name is: SouthPaw" << endl;
cout << "2) My Jag# is: J99999999" << endl;
cout << "3) The last 4 digits of my Jag# is: 9999" << endl;
// Calculate 5 Test Scores
double testScore1;
double testScore2;
double testScore3;
double testScore4;
double testScore5;
cout << "Enter test score 1: ";
cin >> testScore1;
cout << endl;
cout << "Enter test score 2: ";
cin >> testScore2;
cout << endl;
cout << "Enter test score 3: ";
cin >> testScore3;
cout << endl;
cout << "Enter test score 4: ";
cin >> testScore4;
cout << endl;
cout << "Enter test score 5: ";
cin >> testScore5;
cout << endl;
cout << "Average test score: " << (testScore1+testScore2+testScore3+testScore4+testScore5)/5 << endl;
cout << endl;
// when using Visual Studio, use the system/pause command to display the results of your program
// system("pause");
return 0;
}

Compile and Execute C++ Online

cpp

#include <iostream>
#include <stack>

using namespace std;

int main()
{
    stack<int> S1;
    int x;
    for (int i=1; i<5; i++) {
        cout << "Enter number " << i << " : ";
        cin >> x;
        S1.push(x);
    }
    
    cout << "Finito" << endl;
    cout << "The input'ed stack is : " << endl;
    // cout << S1 << endl;
    
    return 0;
}

Compile and Execute C++ Online

cpp

#include <iostream>
using namespace std;

int main() {
    int a=4,b=3;
    
    a=a&b;
    cout<<a;
	return 0;
}

see sss

cpp

kalidas
using namespace std;

int main()
{
   cout << "Hello World" << endl; 
   
   return 0;
}

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.