Skip to main content
1 vote
1 answer
113 views

I am trying to recreate YSAP Terminal Christmas Tree in C instead of in Bash. I know there's a bunch of weird code as I don't do a lot of C programming, so a lot of it is mashed together from what I ...
Justin Aungst's user avatar
-1 votes
1 answer
48 views

I create a Pointer to a two‐dimensional Char Array, fill it with hash signs (#), output it to the console and free up memory of the pointer. If I use Dispose() a runtime error 216 pops up. If I don’t ...
Alexey's user avatar
  • 1
0 votes
0 answers
71 views

Problem I'm working on a raycaster and have encountered a visual glitch that causes walls to disappear and creates an "infinite hallway" effect under certain conditions. This issue occurs ...
Botanist20's user avatar
0 votes
1 answer
64 views

I'm trying to write a function to add two random varibles X1 and X2. In my case, they are both uniform random variables from 0 to a1 and 0 to a2. To compute the random variable Y = X1 + X2, I need to ...
user1936752's user avatar
0 votes
0 answers
78 views

When I send the first value from my py server to the Simulink TCP/IP Client Receive block (non-blocking-mode), nothing happens and the data and status outputs both remain 0. When I send the second ...
M4GI3R's user avatar
  • 85
0 votes
0 answers
48 views

Code is pasted below. Summary: Search for the searchKey (PUT) in column P on “NWSS Sidecar” sheet When found, get the corresponding sample ID# from column E If the sample ID# is not paired up, (doesn’...
PooDatabase's user avatar
0 votes
2 answers
430 views

This reverse loop is giving me the error TypeError: Cannot read property '0' of undefined. Why might this happen? Here's the code part: function formatBoqPipework() { const ss = SpreadsheetApp....
onit's user avatar
  • 2,384
0 votes
1 answer
100 views

What I try to do is to check a given array is ordered in an ascending manner by divide-and-conquer approach. I wonder what the logic behind the additional return case (a⌊n/2⌋−1 ≤ a⌊n/2⌋) is to reach ...
Hax's user avatar
  • 154
2 votes
0 answers
740 views

When I write code, among the more common classes of bug I create is off-by-one errors (OBO). In "real" code I most often run into this issue while doing complicated pointer/iterator ...
Ray Hamel's user avatar
  • 1,339
-1 votes
1 answer
83 views

Please, can some one tell me what's wrong with this code? #include <iostream> using namespace std; int main() { int a[3], i; for(i = 0; i <= 3; i++ ) { a[i] = 0; ...
Nam Time Times's user avatar
1 vote
0 answers
27 views

So, I am running a program that sorts through a large spreadsheet and organizes each row based into other sheets based on properties of individual cells in that row. I got the macro working, but it ...
Aaron Buckley's user avatar
3 votes
1 answer
160 views

I'm currently implementing Snake for university, and we have to use TASM for that. My main game data is laid out like this (using C syntax): struct GameLine { uint8_t direction_bits[10]; // 2 ...
CodenameLambda's user avatar
-1 votes
1 answer
54 views

Are these two loops the same? For some reason the second loop is off-by-one and I cannot figure out why. while ( !b && ++n < WORD_COUNT ) b = mWords[n]; n++; while ( !b && n < ...
Megidd's user avatar
  • 8,261
0 votes
2 answers
83 views

I'm programming in C. I have to make a function called count , that counts how many times is larger than the subsequent element in the same array. For example, if we had a main code looking like this: ...
Carl's user avatar
  • 148
3 votes
1 answer
931 views

You can find the explanation of Algorithm 4.3.1D, as it appears in the book Art of The Computer Programming Vol. 2 (pages 272-273) by D. Knuth in the appendix of this question. It appears that, in ...
yasar's user avatar
  • 13.9k

15 30 50 per page