CPP02
1.0
読み取り中…
検索中…
一致する文字列を見つけられません
main.cpp
[詳解]
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* main.cpp :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: kamitsui <kamitsui@student.42tokyo.jp> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2025/04/26 16:33:16 by kamitsui #+# #+# */
9
/* Updated: 2025/05/06 14:23:51 by kamitsui ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
21
#include "
Fixed.hpp
"
22
#include <
iostream
>
23
25
int
main
(
void
) {
26
Fixed
a;
27
Fixed
b(a);
28
Fixed
c;
29
c = b;
30
31
std::cout
<< a.
getRawBits
() <<
std::endl
;
32
std::cout
<< b.
getRawBits
() <<
std::endl
;
33
std::cout
<< c.
getRawBits
() <<
std::endl
;
34
35
return
0;
36
}
iostream
std::endl
basic_ostream< _CharT, _Traits > & endl(basic_ostream< _CharT, _Traits > &__os)
std::cout
ostream cout
Fixed
ex00 Fixed Class
Definition
Fixed.hpp:28
Fixed::getRawBits
int getRawBits(void) const
Gets the raw value of the fixed-point number.
Definition
Fixed.cpp:73
main
int main(void)
Definition
main.cpp:25
Fixed.hpp
Header file for the Fixed class representing fixed-point numbers with overloaded operators and min/ma...
ex00
main.cpp
構築:
1.9.8