{"id":15047155,"url":"https://github.com/raveriss/cpp06","last_synced_at":"2026-02-12T21:31:17.864Z","repository":{"id":241115345,"uuid":"804354624","full_name":"raveriss/cpp06","owner":"raveriss","description":"C++98 exercises on Explores scalar type conversions, serialization, and real type identification in C++. The exercises implement advanced castings and type manipulations in compliance with C++98 standards.","archived":false,"fork":false,"pushed_at":"2024-06-03T19:10:45.000Z","size":1821,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-03T17:57:35.461Z","etag":null,"topics":["casts","cpp98","serialization","type-conversion","type-identity"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raveriss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-22T12:44:05.000Z","updated_at":"2024-06-03T19:10:49.000Z","dependencies_parsed_at":"2024-05-22T14:27:02.015Z","dependency_job_id":"ee8cb938-7e56-49dd-bfdb-d02bb8d71e11","html_url":"https://github.com/raveriss/cpp06","commit_stats":null,"previous_names":["raveriss/cpp06"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/raveriss/cpp06","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raveriss%2Fcpp06","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raveriss%2Fcpp06/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raveriss%2Fcpp06/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raveriss%2Fcpp06/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raveriss","download_url":"https://codeload.github.com/raveriss/cpp06/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raveriss%2Fcpp06/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29381750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T20:34:40.886Z","status":"ssl_error","status_checked_at":"2026-02-12T20:23:00.490Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["casts","cpp98","serialization","type-conversion","type-identity"],"created_at":"2024-09-24T20:54:53.446Z","updated_at":"2026-02-12T21:31:17.847Z","avatar_url":"https://github.com/raveriss.png","language":"C++","readme":"# **CPP06 - École 42 | Paris**\n\n## Introduction\nCPP06 focuses on type conversion and casting in C++. The exercises are designed to provide practical experience with different casting operators, ensuring a solid understanding of type conversion mechanisms in compliance with the C++98 standard.\n## Project Structure\nThis module consists of a series of exercises that explore various aspects of type conversion and serialization:\n##\n### Exercise 00: Conversion of Scalar Types\n- **Directory:** `ex00/`\n- **Files to submit:**\n  - `incs/ScalarConverter.hpp`\n  - `Makefile`\n  - `srcs/main.cpp`\n  - `srcs/ScalarConverter.cpp`\n\n#### Functionality\nIntroduces the `ScalarConverter` class, which contains a static method `convert`. This method takes a string representation of a C++ literal and outputs its value as `char`, `int`, `float`, and `double`. The class is non-instantiable and handles edge cases like non-displayable characters and pseudo literals.\n##\n### Exercise 01: Serialization\n- **Directory:** `ex01/`\n- **Files to submit:**\n  - `incs/Data.hpp`\n  - `incs/Serializer.hpp`\n  - `Makefile`\n  - `srcs/Data.cpp`\n  - `srcs/main.cpp`\n  - `srcs/Serializer.cpp`\n\n#### Functionality\nImplements a `Serializer` class with static methods `serialize` and `deserialize`. The `serialize` method converts a pointer to an unsigned integer (`uintptr_t`), and the `deserialize` method converts it back to a pointer. The exercise includes creating a `Data` structure to test these methods.\n##\n### Exercise 02: Identify Real Type\n- **Directory:** `ex02/`\n- **Files to submit:**\n  - `incs/A.hpp`\n  - `incs/Base.hpp`\n  - `incs/B.hpp`\n  - `incs/C.hpp`\n  - `incs/generate.hpp`\n  - `incs/identify.hpp`\n  - `Makefile`\n  - `srcs/Base.cpp`\n  - `srcs/generate.cpp`\n  - `srcs/identify.cpp`\n  - `srcs/main.cpp`\n\n#### Functionality\nImplements a `Base` class with a public virtual destructor and three derived classes (`A`, `B`, and `C`). The exercise includes functions to generate a random instance of `A`, `B`, or `C` and identify the real type of an object pointed to by a `Base` pointer or reference, without using the `typeinfo` header.\n\n## Compilation and Execution\nNavigate to the specific exercise directory and use the `make` command to compile the projects. Each executable can be run directly to demonstrate the functionalities implemented.\n\n## Ressources Utilisées\n- [Apprenez à programmer en C++ sur OpenClassrooms](https://openclassrooms.com/fr/courses/1894236-apprenez-a-programmer-en-c)\n- [Programmez en orienté objet avec C++ sur OpenClassrooms](https://openclassrooms.com/fr/courses/7137751-programmez-en-oriente-objet-avec-c)\n- [Apprenez à programmer en C++ sur codecademy](https://www.codecademy.com/catalog/language/c-plus-plus)\n- [Introduction à C++ sur Sololearn](https://www.sololearn.com/fr/learn/courses/c-plus-plus-introduction)\n- [C++ Intermédiaire sur Sololearn](https://www.sololearn.com/fr/learn/courses/c-plus-plus-intermediate)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraveriss%2Fcpp06","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraveriss%2Fcpp06","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraveriss%2Fcpp06/lists"}