No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
- Interests
- Two kids = No time for hobbies :-)
4 Posted Topics
Hi! Im looking for the best way to describe a flow chart with xml where blocks have multiple inputs and output. Blocks are placed in "folders" here in my xml I called them blockgroup. Each block has a name that must be unique within a blockgroup. Inputs and outputs must … | |
Re: You might want to have a look at [url]http://boost-spirit.com[/url] I know there is a calculator example somewhere on that site. | |
Re: check out std::list. See this fast constructed code snippet below: [CODE]#include <list> #include <string> class Person { public: Person(std::string name, std::string number); std::string _name; std::string _number; }; int main(void) { std::list<Person> myListOfPersons; Person p1("Sam","21340223"); myListOfPersons.push_back(p1); Person p2("Jessica","21020303"); myListOfPersons.push_back(p2); /* ... */ return 0; }[/CODE] | |
Re: unsigned variables are great when working with index values that may not be < 0. Without unsigned [code] int index = <some value>; if(!(index >= 0 && index < _myArray.size())) { //oops we are out of bounds } [/code] With unsigned [code] unsigned int index = <some value>; if(!(index < … |
The End.