Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wims-info
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexandros Bokaris
wims-info
Commits
91719a22
Commit
91719a22
authored
9 years ago
by
Alexandros Bokaris
Browse files
Options
Downloads
Patches
Plain Diff
Erreur
parent
5c2856b1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
struct_procedure_1.cpp
+0
-33
0 additions, 33 deletions
struct_procedure_1.cpp
with
0 additions
and
33 deletions
struct_procedure_1.cpp
deleted
100644 → 0
+
0
−
33
View file @
5c2856b1
#include
<iostream>
using
namespace
std
;
struct
cpx
{
double
real
;
double
img
;
};
void
sum
(
cpx
x
,
cpx
y
,
cpx
&
z
)
{
z
.
real
=
x
.
real
+
y
.
real
+
z
.
real
;
z
.
img
=
x
.
img
+
y
.
img
+
z
.
img
;
}
void
multiply
(
cpx
x
,
cpx
y
,
cpx
&
z
)
{
z
.
real
=
x
.
real
*
y
.
real
-
(
x
.
img
*
y
.
img
);
z
.
img
=
x
.
real
*
y
.
img
+
x
.
img
*
y
.
real
;
}
int
main
()
{
cpx
x
=
{
0
,
4
};
cpx
y
=
{
2
,
3
};
cpx
z
=
{
1
,
-
2
};
sum
(
x
,
y
,
z
);
multiply
(
z
,
y
,
x
);
cout
<<
"x = ("
<<
x
.
real
<<
","
<<
x
.
img
<<
")"
<<
endl
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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