C++ Test

C++ code posted by MaxEMoose
created at 24 Jan 18:59, updated at 01 Apr 17:57

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
    //1. In getCol
    template <class DataType>
    public int ColumnTextParser::getCol(int id, vector<DataType>& array)
    {
        ...
        DataType value;
        StringToType(str, value);
        ...
    }
    //2. In somewhere else
    bool StringToType(const char* str, int32_t& data);
    bool StringToType(const char* str, uint32_t& data);
    bool StringToType(const char* str, float& data);
    bool StringToType(const char* str, bool& data);
471 Bytes in 2 ms with coderay