![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Please explain what code is doing between the two dotted lines | pinnacle | Shell Programming and Scripting | 1 | 04-10-2009 12:23 AM |
| can any one explain the meaning of the below code ? | santosh1234 | Shell Programming and Scripting | 2 | 04-03-2009 02:54 AM |
| Can any one explain what this code will do | scorp_rahul23 | Shell Programming and Scripting | 1 | 03-05-2009 06:08 AM |
| explain the code | srilaxmi | UNIX for Advanced & Expert Users | 1 | 02-18-2009 08:18 AM |
| could someone explain this code | the_new_guy | UNIX for Dummies Questions & Answers | 2 | 05-30-2004 12:46 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Explain a block of code:
Hi, I have this block in a code and I need to know it's meaning: Code:
bool selectEvents = config.get("selectEvents",false);
if (selectEvents) {
ifstream in("events");
while (in) {
int run, evt;
in >> run >> evt;
if (in.eof()) break;
selectedEvents.insert(make_pair(run,evt));
}
cout << "select " << selectedEvents.size() << " events" << endl;
}
The statements I really need to know their meanings are the first one, which starts with bool and the one which starts with selectedEvents.insert(). I will appreciate any help, eager |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|