The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-24-2009
eager2no eager2no is offline
Registered User
  
 

Join Date: Oct 2008
Location: Chicago
Posts: 11
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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:06 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0