Meant
int resetCostState() {
// the following is bad no need as instantiation is global
// * GLOBAL_DATA_PTR; //does not like this declaration
GLOBAL_DATA_PTR->reset_cost_state(); //now it calls.
return(SP_SUCCESS);
};
The answer of the issue that I was having on this particular line is fixed by two things:
#1 create the global pointer to instantiation shortly after the class declaration
#2 the syntax for calling a global class is not what I was trying:
[code]
int resetCostState() {
// the following...
The problem is solved with a global instantiation (which I am unclear of the syntax of how to reference within a function.
With help from a coworker (who is extremely busy right now) I got this far:
__________________________
//The problem is with declaring global variable pointers
//
int...
/*My problem (of late) is that I am creating commands in C++ that will be called from sicstus prolog.
Basically I am creating a toolset that will be called from prolog. There is a sicstus compiler for this -so I won't bore you with the details.
The problem I have is that every tool will run as...
phatassbob (MIS) 23 Jun 08 19:30
Hi,
I want to solve a query that can have multiple answers and I want the answers to be output to a text file.
The problem is that I can only get the first answer to output and not the rest.
My code is as follows.
solve:-
top_goal(X)...
IN OTHER WORDS:
So if I wanted to calculate two values in the PROCEDURE whether or not they return int's double's or strings -I would always be forced to calculate exactly one value? This is not my recollection.
#include <stdio.h>
void calcKey(long Speed, long Est, long Cost, long Key...
No, I don't need double. I'm only using integers.
I thought that the difference between a function and a procedure -was that a function returns a value from the function call (as you wrote it) and a procedure allows you to pass values as an argument to the procedure...
(Visual Basic has ruined...
Hi, I am revisiting C programming after being away from it for about 10 years. I have since programmed in other languages but I forget the exact issues with C. For a refresher -I thought I would implement the following proc. After I compile it with gcc -it returns a wild number. How can I do...
I believe that Informix 9.4 is ANSI
I am updating a table from a temp table. The problem is that I am trying to update too many records and I believe that I am running out of room.
My temp table looks like this:
06116047933201|X2007:247:1188|01|
06116047933301|X2007:247:1189|01|...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.