User profile: Ceddy D

User info
User name:Ceddy D
History
Joined:
Number of posts:6
Latest posts:

Is it better to declare global variable or declare variable multiple times?
So I got some code, it looks a little like this... [code] void Func(int i) { //calculations wit...

Error with global string in multiple functions...
I declare a global string and give it a value "ABC" in Function1. When I try to cout it in my main f...

Is there a more efficient way of comparing multiple elements of an array?
@seeplus I'm using Dev-C++ version 5.6.3.

Is there a more efficient way of comparing multiple elements of an array?
@lastchance Thank you for the code, but unfortunately the data (5,3,6) are constant, and there woul...

Is there a more efficient way of comparing multiple elements of an array?
@seeplus The code you sent sends error message, " [Error] could not convert '{0, 5}' from '<brace-...