void Del() { String del; del=(String)malloc(STLEN); puts("削除する出席番号を入力してください"); printf("→"); scanf("%s",del); fflush(stdin); delData(atoi(del)); printf("No%sのデータを削除しました\n",del); Closer(); puts("出席番号を詰めました"); Rank(); preno--; }
void CommandQueue::initialize() { D3D12_COMMAND_QUEUE_DESC queueDesc; ZeroMemory(&queueDesc, sizeof(queueDesc)); queueDesc.Flags = D3D12_COMMAND_QUEUE_FLAG_NONE; queueDesc.Type = D3D12_COMMAND_LIST_TYPE_DIRECT; ID3D12CommandQueue* queue; enforce<Direct3DException>( SUCCEEDED(getD3DOwnerDevice()->CreateCommandQueue(&queueDesc, IID_PPV_ARGS(&queue))), "Failed create the command queue."); queue_ = makeComUnique(queue); ID3D12Fence* fence; enforce<Direct3DException>( SUCCEEDED(getD3DOwnerDevice()->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&fence))), "Failed to create the fence."); fence_ = makeComUnique(fence); fenceEvent_ = decltype(fenceEvent_)(CreateEventEx(nullptr, nullptr, 0, EVENT_ALL_ACCESS), Closer()); fenceValue_ = 0; }