Hi there,
I am using the STL map and I print the map using:
map <string, float> ngram_token_index ;
map <string, float>::iterator map_iter ;
//read the map
...
// print the map
for ( map_iter = ngram_token_index.begin() ; map_iter != ngram_token_index.end() ; map_iter++ )
cout << ... (2 Replies)
Help me please with STL source code that works on Windows
I've found on Inet STL MRU Cache (it compiles fine with Studio 2008), but when trying to build it with Kdevelop (g++ is the compiler) I've got a series of error. One of them I've placed in the source code. If it's important I can post here... (0 Replies)
hi all
i have a tree structure:
root --- node 1 to node 10
in each node --- sub node 1 to sub node 10
in each sub node --- leaf node 1 to leaf node 10
i have to print this in following fashion:
root ---- n1 ---- sn1 ---- l1, l2, l3, ....., l10
n1 ---- sn2 ---- l1, l2, l3,... (2 Replies)
Hi, guys.
I am working on a project right now. But when I debug my code, I can't see the values in stl container, e.g vector, map. Can anyone help me, please. I am really frustrated:wall:. I am using code::blocks IDE, by the way. Thanks in advance...... (0 Replies)
Hi all,
I pass to the transform algorithm two vectors, and the suma function.
#include <algorithm>
#include <iostream>
#include <iterator>
#include <vector>
using namespace std;
class Duo{
public:
int one;
int two;
};
Duo suma(Duo first, Duo last){
Duo ret;
... (1 Reply)
Discussion started by: santiagorf
1 Replies
LEARN ABOUT PHP
splfileinfo
SPLFILEINFO(3) 1 SPLFILEINFO(3)The SplFileInfo classINTRODUCTION
The SplFileInfo class offers a high-level object oriented interface to information for an individual file.
CLASS SYNOPSIS
SplFileInfo
SplFileInfo
Methods
o public SplFileInfo::__construct (string $file_name)
o public int SplFileInfo::getATime (void )
o public string SplFileInfo::getBasename ([string $suffix])
o public int SplFileInfo::getCTime (void )
o public string SplFileInfo::getExtension (void )
o public SplFileInfo SplFileInfo::getFileInfo ([string $class_name])
o public string SplFileInfo::getFilename (void )
o public int SplFileInfo::getGroup (void )
o public int SplFileInfo::getInode (void )
o public string SplFileInfo::getLinkTarget (void )
o public int SplFileInfo::getMTime (void )
o public int SplFileInfo::getOwner (void )
o public string SplFileInfo::getPath (void )
o public SplFileInfo SplFileInfo::getPathInfo ([string $class_name])
o public string SplFileInfo::getPathname (void )
o public int SplFileInfo::getPerms (void )
o public string SplFileInfo::getRealPath (void )
o public int SplFileInfo::getSize (void )
o public string SplFileInfo::getType (void )
o public bool SplFileInfo::isDir (void )
o public bool SplFileInfo::isExecutable (void )
o public bool SplFileInfo::isFile (void )
o public bool SplFileInfo::isLink (void )
o public bool SplFileInfo::isReadable (void )
o public bool SplFileInfo::isWritable (void )
o public SplFileObject SplFileInfo::openFile NULL ([string $open_mode = "r"], [bool $use_include_path = false], [resource $context])
o public void SplFileInfo::setFileClass ([string $class_name = "SplFileObject"])
o public void SplFileInfo::setInfoClass ([string $class_name = "SplFileInfo"])
o public void SplFileInfo::__toString (void )
PHP Documentation Group SPLFILEINFO(3)