惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
B
Blog RSS Feed
Recent Announcements
Recent Announcements
Vercel News
Vercel News
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
H
Help Net Security
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
G
Google Developers Blog
罗磊的独立博客
爱范儿
爱范儿
宝玉的分享
宝玉的分享
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园_首页
S
SegmentFault 最新的问题
WordPress大学
WordPress大学
月光博客
月光博客
人人都是产品经理
人人都是产品经理
Apple Machine Learning Research
Apple Machine Learning Research

博客园 - UnseenstoneX

《打砖块创作家》隐私政策 打砖块创作家《小游戏隐私保护指引》 python 常用数据结构 Python 基本语法 地形遇到几个问题 UE问题分部解决 UE寻找Actor UE对话框 ShadowCaster 代码 C#读写csv文件 优化相关 unity 打开文件夹并鼠标选中某文件 Json解析 C# winform中 选择文件和保存文件 Unity与Android交互实现 一个将数据均匀分段1,2,5的随写 C# 持续序列化对象追加到文件的方法 读写文件 C#二进制序列化和反序列化
TArray数组
UnseenstoneX · 2019-02-19 · via 博客园 - UnseenstoneX
    TArray<int32> arr;
    arr.Init(0,5);
    for (int index = 0; index < arr.Num(); index++)
    {
        FString str = FString("");
        str.AppendInt(arr[index]);
        UE_LOG(LogTemp, Log, TEXT("%s"),*str);
    }

    TArray<TArray<int32>> twoArr;
    twoArr.Init(TArray<int32>(),3);
    for (int index = 0; index < twoArr.Num(); index++)
    {
        twoArr[index].Init(0,3);
    }
    int count = 0;
    for(int i=0;i<twoArr.Num();i++)
        for (int j = 0; j < twoArr[i].Num(); j++)
        {
            twoArr[i][j] = count++;
        }

    for (int i = 0; i < twoArr.Num(); i++)
        for (int j = 0; j < twoArr[i].Num(); j++)
        {
            FString str = FString("");
            str.AppendInt(twoArr[i][j]);
            UE_LOG(LogTemp, Log, TEXT("%s"), *str);
        }