Search:

Type: Posts; User: borat

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,106

    Thanks sugarfree, Yes, you understood correctly...

    Thanks sugarfree,
    Yes, you understood correctly my intentions
    It might be overcomplicated, it is not the problem I'm trying to solve, this is more my curiosity
    If it is not the way to use it -...
  2. Replies
    5
    Views
    1,106

    Template question

    I started to do some reading about template, found interesting example


    template <class T1, class T2>
    bool GetItUP (T1 a, T2 b)
    {
    return (a>b?a:b);
    }

    And the way to use it:
  3. Thread: optimizaton

    by borat
    Replies
    10
    Views
    1,138

    Thanks Cyberfish, All noted

    Thanks Cyberfish,
    All noted
  4. Thread: optimizaton

    by borat
    Replies
    10
    Views
    1,138

    #include "stdafx.h" #include "vector" #include...

    #include "stdafx.h"
    #include "vector"
    #include "list"
    #include "map"
    #include "fstream"

    using namespace std;

    void ReadFile_FillStruct_1(string _fileName, vector<string>& _vectorStorage,...
  5. Thread: optimizaton

    by borat
    Replies
    10
    Views
    1,138

    Extra argment used in validation Sorry, no code...

    Extra argment used in validation
    Sorry, no code now
  6. Thread: optimizaton

    by borat
    Replies
    10
    Views
    1,138

    Guys, Just would like to point out one thing...

    Guys,
    Just would like to point out one thing that all ‘func’ could have different numbers of arguments and ‘storage’ argument is different type
  7. Thread: optimizaton

    by borat
    Replies
    10
    Views
    1,138

    Cyberfish & Salquest, thanks for your replay...

    Cyberfish & Salquest, thanks for your replay
    that is corect - only validation is different.
    I'll look at both suggestions, by any chance do you have link where I could look at the 'way' you...
  8. Thread: optimizaton

    by borat
    Replies
    10
    Views
    1,138

    optimizaton

    Let’s say you have few functions:
    func_1(arg1, arg2, arg3) ,
    func_2 (arg1, arg2) and
    func_3 (arg1, arg2, arg3).
    All 3 performing similar steps:


    func (arg1, arg2, arg3)
    {...
Results 1 to 8 of 8