Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
How can I send a matrix into a function?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: How can I send a matrix into a function? (Read 4010 times)
oligaz
Guest
How can I send a matrix into a function?
«
on:
July 28, 2009, 10:29:23 am »
void xxx(int A[10][10])
{
...
}
or
void xxx(int (*A)[10])
{
...
}
int main()
{
int A[10][10];
xxx(A);
return 0;
}
This code does not work!
Logged
thomas
Administrator
Lives here!
Posts: 3979
Re: How can I send a matrix into a function?
«
Reply #1 on:
July 28, 2009, 10:34:34 am »
And this is not a learning C/C++ forum.
Logged
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
How can I send a matrix into a function?