Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Astrocloud

    Modifying class data without instanciation? (An approach problem!)

    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); };
  2. Astrocloud

    Modifying class data without instanciation? (An approach problem!)

    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...
  3. Astrocloud

    Modifying class data without instanciation? (An approach problem!)

    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...
  4. Astrocloud

    Modifying class data without instanciation? (An approach problem!)

    /*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...
  5. Astrocloud

    convert list of list of list to atom or string in swi-prolog

    Sample input and output please.
  6. Astrocloud

    Writing out multiple answers to file.

    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)...
  7. Astrocloud

    Weird number with simple program

    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...
  8. Astrocloud

    Weird number with simple program

    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...
  9. Astrocloud

    Weird number with simple program

    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...
  10. Astrocloud

    Yap Makefile example?

    Nevermind. Yap can not compile source files into a standalone applications. This may change.
  11. Astrocloud

    help me

    try this: subsequence([A|B], [C|D]) :- A = C, !, subsequence(B,D). subsequence([A|B], [C|D]) :- A \= C, !, subsequence([A|B], D). subsequence([],_) :-!. subsequence(A,[]) :- !, fail.
  12. Astrocloud

    Yap Makefile example?

    I am looking for a very simple example of a Gnu Makefile that calls on yap to compile.
  13. Astrocloud

    Commit within Update

    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|...

Part and Inventory Search

Back
Top