Cytat został ukryty, ponieważ ignorujesz tego użytkownika. Pokaż cytat.
ipse se nihil scire id unum sciat
irc: freenode.net in #torgdevs
char * alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
for (char * ptr = alphabet; *ptr != 0; ++ptr) {
}
char * path = "arial/";
char * ext = ".bmp";
char * alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
for (char * ptr = alphabet; *ptr != 0; ++ptr) {
funkcja(path + *ptr + ext);
}
#include <iostream>
#include <algorithm>
#include <sstream>
void func(const std::string& str) { }
int main() {
std::string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
std::for_each(alphabet.begin(), alphabet.end(), [&](char c)
{
std::ostringstream stream;
stream << "arial/" << c << ".bmp";
func(stream.str());
});
return 0;
}
Ostatnio zmieniony przez Komar_rk : 15-02-2015, 23:03
Aktualnie 1 użytkowników przegląda ten temat. (0 użytkowników i 1 gości)
Zakładki