Skip to content

Instantly share code, notes, and snippets.

View 2hanX's full-sized avatar
:octocat:

2hanX 2hanX

:octocat:
View GitHub Profile
#include<iostream>
#include<string>
using namespace std;
struct student
{
string fname, lname;
char grade;
int age;
};
#include<iostream>
#include<cstring>
using namespace std;
struct person
{
char fname[10];
char lname[10];
};
#include<iostream>
#include<string>
using namespace std;
struct person
{
string fname;
string lname;
};
#include<iostream>
#include<string>
using namespace std;
struct Pizza
{
string company;
double diameter;
double weight;
};
#include<iostream>
#include<string>
using namespace std;
int main()
{
cout << "Enter a word: ";
string word;
cin >> word;
#include<iostream>
#include<string>
using namespace std;
struct Car
{
string build;
int year;
};
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
char word[12];
int sum = 0;
cout << "Enter words(to stop, type the word done): \n";
cin >> word;
#include<iostream>
using namespace std;
int main()
{
int rows;
cout << "Enter number of rows: ";
cin >> rows;
for (int i = 1; i <= rows; i++)
{
#include<iostream>
#include<cctype>
using namespace std;
int main()
{
char a;
cin.get(a);
while (a != '@')
{
#include<iostream>
#include<array>
using namespace std;
const int SIZE = 10;
int main()
{
array<double, SIZE> donation;
double sum = 0.0;