- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re: University project; Prolog in Java. Was a set of java classes which acted like a mini-prolog machine (keeping state, backtracking etc.) Took prolog source and compiled into Java source, or java bytecode (even did on the fly generation.) Managed to implement around 80% of the standard ISO prolog functions, and … | |
Re: pseduocode is a way of writting down the logic with out dealing with the implementation details; it can be very code like or very english like. for example, pseduocode for swaping the order in an array: for i = 0 ... n/2 and j = n ... n/2 then swap … | |
Re: ok, well not that nice a problem; firstly the gramma as a whole grammar is not LL(1). But taken as three grammar's it's ok. Anyway not sure what your asking; do you not know how to construct a parser? or you don't unstand First & Follow? | |
Re: The only difference is that for i++, the compiler creates a temporary (the value of i before the incremental) for use. I'm sure that most compilers now optimse the situation where the temporary is not needed and hence this is no longer an issue | |
Re: (Ok late; so I doubt this will get looked at!) Question (1) A ---> A + B A ---> C B ---> B + C B ---> C C ---> (A) C ---> integer This I think is right: A --> CA' A' --> null A' --> +BA' B --> … | |
Re: if you looking for management; a 'Computer Engineering' heavy degree is good. Make sure there is a good degree of programming in it as well. But as others say; your most likly going to enter on the ground floor, and work your way up. | |
Re: Homework questions? If you have a specific question; show your working and we can clear up any mis-understandings. Posting just questions won't get answers. | |
Re: You can create objects on the stack : which exist for the lifetime of the function only, or on the heap which exist until you delete them. If you are assigning a pointer which outlives the function then you need to create the object on the heap; and you do … | |
Re: this: int (*fn)() is declaring fn as a pointer to a function which takes no parameters and returns an int. But in your code you still refer to it as add(), you need to call fn(). Function points are a nice, but can get complex in C++. An other option … | |
Re: Look into the 'substr' function of the string class, you can easily pull out sections of the string (since you know the structure) to populate your structure. | |