Re: GCC Fails to Recognize Parameters Programming by toneewa While I haven't used DJGPP for a couple decades, I decided to install the ffmpeg library and do a test program another way. For me, the declarations worked changing: #include "os_support.h" #include "avformat.h" #include "internal.h" #if CONFIG_NETWORK #include "network.h" #… GCC Fails to Recognize Parameters Programming by snah19 …quot; /** @name Logging context. */ /*@{*/ static const char *urlcontext_to_name(void *ptr) { URLContext *h … }, 0, INT64_MAX, AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_DECODING_PARAM }, { NULL } }; const AVClass ffurl_context_class = { // L64:15 .class_name = "URLContext… Re: Seeking Help for Creating a Circle Generator Tool Programming Game Development by jackwells …: 50%; background-color: lightblue; } function generateCircle() { const radius = document.getElementById('radius').value; const diameter = radius * 2; const circle = document.getElementById('circle'); circle.style… Re: How can I create a meme generator using js canvas? Programming Web Development by jessicaboland … rather than using an overlay div. See Example: const canvas = document.getElementById('yourCanvasId'); const ctx = canvas.getContext('2d'); // User input and rendering… const userInput = 'Your Text Here'; ctx.fillText(userInput, x, y); // Initial … Re: VB6 - RayCasting: why my Vertical intersection is so big? Programming Software Development by cambalinho … Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) Const Speed As Integer = 2 Const Radians As Double = 0.1 If (KeyCode = vbKeyEscape… Re: VB6 - RayCasting: why my Vertical intersection is so big? Programming Software Development by cambalinho … Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) Const Speed As Double = 4.2 Const Radians As Double = 0.1 If (KeyCode… Re: GCC Fails to Recognize Parameters Programming by Reverend Jim I can't offer any suggestions other than to just download the compiled app for your system instead of building it yourself. Re: GCC Fails to Recognize Parameters Programming by rproffitt Here's another problem. When we change the OS not only must we setup the compiler, environment and such but sometimes an OS API could be deprecated or removed. You made mention of a possible OS change so that's a possibility. You obtained this code from somewhere. Go back there and see if they updated it for your new OS. Re: Const and iterators Programming Software Development by gerard4143 Const iterators are used to indicated that the underlying object data members will not change. Re: [programming practice] using const when needed vs always use it Programming Software Development by David W 'const' ... in your examples ... tells the compiler that the values in … some code, that -> inside a function that has a const array passed in ... then attempts to change the values in… Re: What is the "const" ? Why do we use it ? Programming Software Development by Narue …to modify the object's value: [code] int x = 10; const int y = 10; x = 20; /* Okay */ y =… 20; /* Bzzt! y is const */ [/code] const is short for constant, which really means read-only[1… pointer parameters that shouldn't be modified: [code] void print_chars ( const char *s ) { while ( *s != '\0' ) putchar ( *s++ … Re: Using const Programming Software Development by Ancient Dragon const just says the function will not change anything Re: What is the "const" ? Why do we use it ? Programming Software Development by jephthah const means constant. that it won't be changed anywhere within the scope where it is implemented. if a function takes, for example, a pointer to a "const char" argument, you know you can pass in a string to that argument and your string will not be modified by the function. strstr Programming Software Development by Derice const char * strstr ( const char * str1, const char * str2 ); char * strstr ( char * str1, const char * str2 ); Locate substring Returns a pointer to the first … Re: Unresolved external problem lnk 2001 please help Programming Software Development by Clouded One > const char *Inventory::Error[100]; alright now where would i put this? i get this when i put it in the .h file: 1>c:\users\joey\documents\visual studio 2010\projects\jhabura pa 1\jhabura pa 1\inventory.h(32): error C2086: 'const char *Inventory::Error[]' : which from what i read is that its defined twice? Re: Simple solution to database Programming Software Development by Narue >const Cell & Test() { > return NULL; //I just want to … the same pattern as the iostream library: [code] operator void*() const { return ( is_null ) ? 0 : this; } [/code] This returns a null pointer… can do the same thing with Test: [code] void *Test() const { return ( is_null ) ? 0 : this; } [/code] Re: Maze game help? Programming Software Development by DeanMSands3 "**const** int mazeArray" may have something to do with that. Re: contants Programming Software Development by Trentacle …a constant. i is a variable that happens to be const-qualified, which means you can't modify it directly. Constants…an array of char). An important thing to realize about const is that it's applied to variables, not objects. Observe… (at compile time) to certain names. The purpose of const is to allow the programmer to state his intent not… Re: How to introduce a memory to a math function? Programming Software Development by tetron … typing and maintenance. In your case myfunc is not const as it alters a member variable if this is not… local [CODE] double myfunc(double x1,double x2, double x3) const { std::vector<double> memory(4, 0.0); … but your function does not necessarily want this either... the const is telling the compiler that you are not altering the… Re: Overloading << clarification Programming Software Development by daviddoria Const just means that the function is unable to modify the value. Of course if you don't want to change the value, then just don't change it! Const just provides a double check in case you made a mistake. Re: Constant member function Programming Software Development by Murtan …your class (and never should) you can declare them const. const member-functions are declared like this: [code=c++] int… getValue() const; [/code] The primary purpose for const member-functions is that they are the …only member-functions you can call for a const reference to that class. Functions that need to be… Re: Help Need for Resolving a C++ error C2664 Programming Software Development by Salem > const char* article[]={"the", "a", "one&…;, "every", "any"} Is (for the compiler) const char* article[6]={"the", "a", "… Re: Vb6 help! explain this.. Programming Software Development by exzibit23 Const LWA_COLORKEY = &H1 Const LWA_ALPHA = &H2 Const GWL_EXSTYLE = (-20) Const WS_EX_LAYERED = &H80000 and what are thos valriables and values?? and what are the &H2, (-20), &H8000, if i try to change it , my program was ruined.. Re: constant member initialization problem Programming Software Development by kenji const is used to make something constant, meaning that its value should never change, as such you cant dynamically allocate an array for a constant value. It has to either be a regular const array with the values filled in or a dynamic array without const. Re: Searching someone who can help in C++ Programming Software Development by wildgoose const char * vw[] = " ....... " void PrintNum( int eingabe ) { the function I wrote } void main( void ) { PrintNum( 78 ); } Re: constant keyword conceptual problem Programming Software Development by deceptikon `const` doesn't mean that the object is stored in read-only memory, though that's a possibility. All `const` means is that the compiler will enforce read-only uses of the variable. So you can attempt to subvert the type system by casting away `const` and it'll probably work, but there's no guarantee. Re: Please help with data file and array Programming Software Development by Ancient Dragon const int maxcols=4; Count the number of t's and f's in one of those lines. How many did you count? Less than 4 or more than 4. maxcols needs to be a minimum of (number of t's and f's) + 1 for the character array's null-terminator. Re: please i am having problem with my assignment on inheritance in c++. Programming Software Development by mrnutty >>const double PI=2.0 * asin(1.0); Just Do : const double PI = 3.14159265; no reason for the call to asin. >>include a derive class named sphere from the base circle class. Means : [code] class Sphere : public Circle { } [/code] >>class cylinder : public sphere Make no sense. Re: simple while loop problem Programming Software Development by AndrisP const int SIZE = 4; int counter = 0; while(counter<SIZE) { // do something ... if(SIZE == counter+1) { cout << "Hello world"; } counter++; } Re: C++ Statisitcal Method ReInventing Wheel? Programming Software Development by Lerner const ap::real_1d_array& x----this appears to be a constant …