{"action":"created","issue":{"url":"https://api.github.com/repos/S-H-GAMELINKS/Novel.Game.Engine.LINKS/issues/25","repository_url":"https://api.github.com/repos/S-H-GAMELINKS/Novel.Game.Engine.LINKS","labels_url":"https://api.github.com/repos/S-H-GAMELINKS/Novel.Game.Engine.LINKS/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/S-H-GAMELINKS/Novel.Game.Engine.LINKS/issues/25/comments","events_url":"https://api.github.com/repos/S-H-GAMELINKS/Novel.Game.Engine.LINKS/issues/25/events","html_url":"https://github.com/S-H-GAMELINKS/Novel.Game.Engine.LINKS/issues/25","id":241510633,"number":25,"title":"スクリプト配列：String の動的確保について","user":{"login":"S-H-GAMELINKS","id":26062441,"avatar_url":"https://avatars1.githubusercontent.com/u/26062441?v=3","gravatar_id":"","url":"https://api.github.com/users/S-H-GAMELINKS","html_url":"https://github.com/S-H-GAMELINKS","followers_url":"https://api.github.com/users/S-H-GAMELINKS/followers","following_url":"https://api.github.com/users/S-H-GAMELINKS/following{/other_user}","gists_url":"https://api.github.com/users/S-H-GAMELINKS/gists{/gist_id}","starred_url":"https://api.github.com/users/S-H-GAMELINKS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/S-H-GAMELINKS/subscriptions","organizations_url":"https://api.github.com/users/S-H-GAMELINKS/orgs","repos_url":"https://api.github.com/users/S-H-GAMELINKS/repos","events_url":"https://api.github.com/users/S-H-GAMELINKS/events{/privacy}","received_events_url":"https://api.github.com/users/S-H-GAMELINKS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-07-09T08:46:49Z","updated_at":"2017-07-09T11:14:26Z","closed_at":null,"body":"\r\nこちらのスクリプト配列：String を\r\n\r\n```\r\n//スクリプト用読込配列\r\nchar String[script_line_num_lim][script_line_string_len_lim];\r\n```\r\n\r\n下記のコードで行数と文字数(バイト数)を返して、配列を動的確保できないでしょうか？\r\n\r\n```\r\n//行数カウント関数\r\nint CountLine(){\r\n\r\n    //カウンタ変数\r\n    int number = 0;\r\n\r\n    //テキストを開く\r\n    ifstream file(\"sample.txt\");\r\n\r\n    //テキストの行数をカウント\r\n    while(!file.eof()){\r\n        string s;\r\n        getline(file, s);\r\n        number++;\r\n    }\r\n\r\n    return number;\r\n}\r\n\r\n//文字数カウント関数(バイト数)\r\nint CountWord(){\r\n\r\n    //各種カウンタ変数の初期化\r\n    int number = 0;\r\n    int word1 = 0;\r\n    int word2 = 0;\r\n\r\n    //テキストを開く\r\n    ifstream file(\"sample.txt\");\r\n\r\n    //一行ずつ文字数をカウントし、最大値を返す\r\n    while(!file.eof()){\r\n        string s;\r\n        getline(file, s);\r\n        word2 = word1;\r\n        word1 = s.length();\r\n        if(number <= word1 || word2 >= number)\r\n            number = max(word1, word2);\r\n        //number = max(word2, number);\r\n    }\r\n\r\n    return number;\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/S-H-GAMELINKS/Novel.Game.Engine.LINKS/issues/comments/313913692","html_url":"https://github.com/S-H-GAMELINKS/Novel.Game.Engine.LINKS/issues/25#issuecomment-313913692","issue_url":"https://api.github.com/repos/S-H-GAMELINKS/Novel.Game.Engine.LINKS/issues/25","id":313913692,"user":{"login":"S-H-GAMELINKS","id":26062441,"avatar_url":"https://avatars1.githubusercontent.com/u/26062441?v=3","gravatar_id":"","url":"https://api.github.com/users/S-H-GAMELINKS","html_url":"https://github.com/S-H-GAMELINKS","followers_url":"https://api.github.com/users/S-H-GAMELINKS/followers","following_url":"https://api.github.com/users/S-H-GAMELINKS/following{/other_user}","gists_url":"https://api.github.com/users/S-H-GAMELINKS/gists{/gist_id}","starred_url":"https://api.github.com/users/S-H-GAMELINKS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/S-H-GAMELINKS/subscriptions","organizations_url":"https://api.github.com/users/S-H-GAMELINKS/orgs","repos_url":"https://api.github.com/users/S-H-GAMELINKS/repos","events_url":"https://api.github.com/users/S-H-GAMELINKS/events{/privacy}","received_events_url":"https://api.github.com/users/S-H-GAMELINKS/received_events","type":"User","site_admin":false},"created_at":"2017-07-09T11:14:26Z","updated_at":"2017-07-09T11:14:26Z","body":"よし、非対応にしましょう！\r\n\r\n個人的にも、DXAでの暗号化は「見ようと思えばみれてしまうよな」という思いがありましたので、今回の件はいい区切りだと思います。\r\n\r\nあと、それ以上いけない……\r\n\r\n\r\n"}}
{"actor":{"display_login":"S-H-GAMELINKS"}}