- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Re:
given the following code [CODE]bool space(char c) { return isspace(c); } bool not_space(char c) { return !space(c); } template <class Out> void split(const string& str, Out os){ typedef string::const_iterator iter; iter i = str.begin(); while(i != str.end()){ i = find_if(i, str.end(), not_space); iter j = find_if(i, str.end(), space); if(i != … |
|
Hello, I am working on developing an interpreted programming language for a capstone project and have hit a snag dealing with two classes. In the interpreter, the classes represent a scope containing a procedure pointer and the procedure pointing back to the scope containing it. The former to allow the … |
|
Re:
ok so im trying to implement a stack using vector and i have to access the last element of the vector el, i dont know if its right and also how would i implement the pop function of the stack using vector el_t stack::topElem() { el_t n; if(isEmpty()) cout <<"stack … |
|
Re:
I have another question regarding activating of an automatic door: three sensors front pad, rear pad, and door; they determine weather the door is activated or not. front pad=0 empty front pad=1 occupied rear pad=0 empty rear pad=1 occupied door=0 closed door=1 open there are situations when the door is … |