back soft

مطالب مرتبط با «how can it be chords» در back soft | نویسنده: استخدام کار

How can I declare an array with a variable, but without using malloc() in C?

Vote count: 0 So I have to create a 2D array which is going to be used to print a histogram. I know that the array is going to be 52 elements wide, but the height of the array is going to be equal to max + 1, which will be different every time the function it is in gets called. Ideally, the line would accomplish the following function: char histPlot[max+1][52] = ""; As I was writing my code, however, I leaed that C, or at least my compiler, does not allow an array to be declared without a constant value. The professor of the class I'm writing this code for was not clear on whether or not we could use malloc() for this assignment. Assuming I caot using malloc(), is there any way I can create ...

ادامه مطلب

how can i split the user's input and store in arraylist?

Vote count: 0 I am trying to ask user for number of dices and no of faces in the format "NdF" and tried to split by "d" and multiply no of dices by no of faces? asked 1 min agoPradeep Gyawali Let's block ads!...

ادامه مطلب

How can I perform OCR on a simple image with Google Cloud Vision API and Java?

Vote count: 0 So I registered and I have the API key. I just want to recognize text on simple images and write the detection to the console. I couldn't find a good tutorial so maybe you can help me. asked 37 secs agoGabe Let's block ads!...

ادامه مطلب