CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 05:13:20 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=bba15ec78016fceffd3af6224e684096fbb0cc26ba84183c6135cf4b84195d3ba%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22GEoUmODvvmfoA-IV-8UyzJTKJMiHpO5O%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d41b7b2f33e9c3-BLR
#include <iostream>#include <fstream>#include <string>#include <vector> - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <string>
- #include <vector>
- class Jogador {
- public:
- Jogador(int number
- , std::string name
- , std::string position) : m_number{number}
- , m_name{name}
- , m_position{position} {}
- void Print() {
- std::cout << m_number << "," << m_name << "," << m_position << std::endl;
- }
- int getNumber() const;
- std::string getName() const;
- std::string getPostition() const;
- protected:
- int m_number = -1;
- int op{-1};
- std::string m_name;
- std::string m_position;
- };
- void Print() {
- std::cout << m_number << "," << m_name << "," << m_position << std::endl;
- }
- int Jogador::getNumber() const{
- return m_number;
- }
- std::string::getName() const{
- return m_name;
- }
- std::string::getPostition const{
- return m_position;
- }
- int main(int argc, char **argv) {
- int op = -1;
- Jogador j(int number
- , std::string name
- , std::string position);
- while(true){
- std::cout << " (1)prencher vector - (2)Motrar dados do vector" << std::endl;
- std::cin >> op;
- if(op !=2){
- std::ifstream in;
- std::ofstream out;
- std::string line;
- std::vector<Jogador> jogadores;
- out.open("output.txt", std::ios_base::app);
- in.open("FutTeamA.txt");
- while(!in.eof()) {
- int number = -1;
- std::string name;
- std::string position;
- in >> number >> name >> position;
- out << number << " " << name << " " << position << std::endl;
- jogadores.emplace_back(number, name, position);
- }
- break;
- }
- std::cout << "Mostrando dados do vector.............." << std::endl;
- // j.Print(number,name,position);
- j.Print();
- }
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
📝 Exchange profit method
JavaScript | 4 sec ago | 0.24 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ Y
JavaScript | 9 sec ago | 0.25 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ 9
JavaScript | 9 sec ago | 0.25 KB
-
📌 Swapzone +37% glitch
JavaScript | 15 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ A
JavaScript | 18 sec ago | 0.25 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ D
JavaScript | 19 sec ago | 0.25 KB
-
💵 Make 3000$ in 20 minutes 💵
JavaScript | 26 sec ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ L
JavaScript | 26 sec ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand