CPP06
1.0
読み取り中…
検索中…
一致する文字列を見つけられません
main.cpp
[詳解]
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* main.cpp :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: kamitsui <kamitsui@student.42tokyo.jp> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2025/07/22 14:24:36 by kamitsui #+# #+# */
9
/* Updated: 2025/07/25 02:42:29 by kamitsui ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
18
#include "
ScalarConverter.hpp
"
19
#include <
iostream
>
20
27
int
main
(
int
argc,
char
**argv) {
28
// Check for the correct number of arguments
29
if
(argc != 2) {
30
std::cerr
<<
"Usage: ./convert <literal>"
<<
std::endl
;
31
return
1;
32
}
33
34
// Call the convert method of the static class
35
ScalarConverter::convert
(argv[1]);
36
37
return
0;
38
}
ScalarConverter.hpp
Contains the declaration of the ScalarConverter static class.
std::cerr
ScalarConverter::convert
static void convert(const std::string &literal)
The main conversion method.
Definition
ScalarConverter.cpp:177
std::endl
T endl(T... args)
main
int main()
Main function to test the Serializer.
Definition
main.cpp:28
iostream
ex00
main.cpp
構築:
1.9.8