This widget could not be displayed.
Not applicable
Sep 20, 2015
09:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 20, 2015
09:19 AM
Hi there,
I have tried default parameters but DAVE showed an error message. Here a simple code example:
int mult(uint32_t x,uint32_t y=1)
{
return x*y;
}
Has anybody an idea what's wrong here?
thanks in advance
I have tried default parameters but DAVE showed an error message. Here a simple code example:
int mult(uint32_t x,uint32_t y=1)
{
return x*y;
}
Has anybody an idea what's wrong here?
thanks in advance
- Tags:
- IFX
2 Replies
Sep 20, 2015
08:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 20, 2015
08:11 PM
What error message did you see?
If the value of Y is known, than it should not be as the function input.
int mult(uint32_t x)
{
return x*1;
}
If the value of Y is known, than it should not be as the function input.
int mult(uint32_t x)
{
return x*1;
}
This widget could not be displayed.
Not applicable
Sep 20, 2015
11:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 20, 2015
11:43 PM
thanks for quick response,
the second parameter y is meant as default parameter, that means that it is optional when calling the function. In this case y would default to 1.
I use it convenienty with other c++ compilers and documentation is also found in the internet.
By the way, where can I find documentation on the c++ compiler used by dave?
the second parameter y is meant as default parameter, that means that it is optional when calling the function. In this case y would default to 1.
I use it convenienty with other c++ compilers and documentation is also found in the internet.
By the way, where can I find documentation on the c++ compiler used by dave?
This widget could not be displayed.