Загрузка данных


/*
// #include <iostream>
 int main(){
	std::string name = "Aleksei";

    int age = 17;

	int haight = 178;

	double weight = 57;

	std::string info = "idk i love helldiversII and i started playng ZeldaBOTW";

	std::cout << age << std::endl;

	std::cout << haight << std::endl;

	std::cout << weight << std::endl;

	std::cout << info << std::endl;



	}


#include <iostream>


 int main() {
	 int age = 22;
	 bool cond = age < 18;

	 if (cound1) {
		 std::count << "No energy drinks for you!" << std::end1;
	 } else {
		 std::count << "it's hight noon" << std:: end1:
	 }
 }
*/

/*
int main() {
	for(int i = 0; i < 60; i++){

	}

	int lengthC = 100;
	int widthC = 50;
	int i = 0;

	while (i < widthC - 5) {
		lengthC - widthC; // 100 - 50
		std::cout << "okay, big guy" << std::endl;
		i += 5;
	}

	int cond1 = 0;
	while (cond1 < 100) {
		cond1 += 10; // От того где вы прописали это, зависит насколько бысьтро закончится цикл
	}

}

#include <iostream>
int main(){
	int numbers[7] = { 67,27,11,23,124,11,101 };

	int sum = 0;

	for (int i = 0; i < 7; i++) {
		sum += numbers[i];
		
		std::cout << sum << std::endl;

	}


}
*/
/*
#include <iostream>
#include "file_one.h"

int main(){
	array1 = { 76, 235, 124, 876, 980, 99, 23, 22, 11, 23 };
	func1(array1);
}

#include <iostream>
#include <vector>

struct Marks {
	double avg;
	std::vector<int> Marks;
	std::string comment;
};

struct student {
	std::string name;
	int age;
	Marks otsenky;
};

int main() {

	student Alex;
	Alex.age = 17;
	Alex.avg = 5.0;
	Alex.name = "Alex";
	Alex.otsenky.avg = (4, 3, 5, 5, 3);
	Alex.otsenky.comment = "Soso";

	std::cout << Alex.name << std::endl;

}


#include <iostream>
#include "file_one.h"

int main() {
	array1 = { 76, 235, 124, 876, 980, 99, 23, 22, 11, 23 };
	func1(array1);
}

#include <iostream>
#include <vector>

struct Marks {
	double avg;
	std::vector<int> Marks;
	std::string comment;
};

struct Student {
	std::string name; // 1
	int age; // 2
	Marks otsenky; // 3
};

struct book {
	std::string title;
	std::string autor;
	int year;
};
int main() {

	int i;
	std::vector<Student> v1;

	Student Boba{ "Boba", 67, {5.0} };
	Student Goba{ "Goba", 24, {4.0} };
	Student Doba{ "Doba", 53, {3.0} };
	v1 = { Boba, Goba, Doba };
	for (int i = 0; i < v1.size(); i++) {
		std::cout << v1[i].name << "\t" << v1[i].age << "\t" << v1[i].otsenky.avg << std::endl;
	}




	return 0
}


#include <iostream>
#include <vector>

struct Marks {
	double avg;
	std::vector<int> Marks;
	std::string comment;
};

struct Student {
	std::string name; // 1
	int age; // 2
	Marks otsenky; // 3
};

struct book {
	std::string title;
	std::string autor;
	int year;
};

void printStudent(Student s) {
	std::cout << s.name << "\t" << s.age << "\t" << s.avg << std::endl;
}
int main() {

	Student Alex{"Alex"
	
	}




	return 0
}


#include <iostream>



struct Student {
	Student() {};
	Student(std::string p_name, int p_age, double p_avg) {
		name = p_name;
		age = p_age;
		avg = p_avg;

	};
	Student(std::string p_name, int p_age) {
		Student(p_name, p_age, 0.0);
	};

	void printStudent() {
		std::cout << name << "\t" << age << "\t" << avg << "\t" << std::endl;
	}

	std::string name;
	int age;
	double avg;

};

int main() {
	Student A{ "Alex", 17, 5.0 };

	A.printStudent();

	return 0;
}
*/