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
Compare revisions
master to 5c2856b178339f2f53f22057fd640a819520c7d2
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
bokaris/wims-info
Select target project
No results found
5c2856b178339f2f53f22057fd640a819520c7d2
Select Git revision
Swap
Target
nthiery/wims-info
Select target project
nthiery/wims-info
medimegh/wims-info
ventos/wims-info
bokaris/wims-info
4 results
master
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
Excercise wims pour struct_procedure
· 5c2856b1
Alexandros Bokaris
authored
9 years ago
5c2856b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
struct_procedure_1.cpp
+33
-0
33 additions, 0 deletions
struct_procedure_1.cpp
with
33 additions
and
0 deletions
struct_procedure_1.cpp
0 → 100644
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.