Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
lalalalaba
analyzer
Commits
17cbe727
Commit
17cbe727
authored
2 months ago
by
Шагин Ренал Рустемович
Browse files
Options
Download
Patches
Plain Diff
-
parent
965f3083
master
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/complex.cpp
+1
-1
source/complex.cpp
workdir/m.txt
+5
-2
workdir/m.txt
with
6 additions
and
3 deletions
+6
-3
source/complex.cpp
+
1
−
1
View file @
17cbe727
...
...
@@ -77,7 +77,7 @@ std::ostream& operator<<(std::ostream& out, const Complex& v) {
if
(
likeequal
(
v
.
m_re
,
0
))
{
return
out
<<
'i'
;
}
sout
<<
v
.
m_re
<<
"i"
;
sout
<<
v
.
m_re
<<
"
+
i"
;
return
out
<<
sout
.
str
();
}
if
(
likeequal
(
v
.
m_re
,
0
))
{
...
...
This diff is collapsed.
Click to expand it.
workdir/m.txt
+
5
−
2
View file @
17cbe727
| 1+1i 5+5i|
|6+6i 5+5i|
\ No newline at end of file
| 1+1i 1-1i 1+0i 1-0i|
|2+1i 2-1i 2+0i 2-0i|
| 1+2i 1-2i 1+2i 1-2i|
| 0+2i 0-2i 0+2i 0-2i|
| 0+1i 0-1i 0+1i 0-1i|
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets