skip to Main Content

Json – VS Code C/C++ (1.19.4) cppbuild task does not support globbing when args is an array. Why?

I'm learning C++ from https://youtu.be/8jLOx1hD3_o?t=4558, I'm on Arch Linux. While setting up tasks.json file with the code: { "version": "2.0.0", "tasks": [ { "type": "cppbuild", "label": "Build with G++", "command": "/usr/bin/g++", "args": [ "-fdiagnostics-color=always", "-g", "-std=c++20", "${workspaceFolder}/*.cpp", "-o", "${fileDirname}/rooster" ],…

VIEW QUESTION

Json – Fetch not syncing with for loop

I am trying to fetch json data from the unsplash api inside of a for loop but it will not sync with the loop. async function myfunction(){ for (x=0;x<=c.length-1; x++){ await fetch('https://api.unsplash.com/search/photos? client_id=123;query=' + c[x].value).then(function(response){ response.json().then(function(data) { //out of sync…

VIEW QUESTION
Back To Top
Search