111,457 questions
0
votes
0
answers
118
views
C programming getchar() and putchar() function [closed]
According to my understanding, the getchar() takes up input from the user and until we press enter it stays in some buffer.
And the putchar() is like the print function, it prints whatever value we ...
3
votes
2
answers
48
views
Why does this collapsible need 2 clicks to open, then 2 more clicks to close?
Description
I'm having an issue with a collapsible requiring 2 clicks of a button to open, then another 2 clicks to close. The Show/Hide text inside the button gets mixed up as well. I think it might ...
0
votes
3
answers
129
views
Array Functions
I am currently learning the new array functions in Excel. I've been learning them for a bit, but still learning.
I am trying to create a dynamic YTD type report off some dummy data however I can't ...
0
votes
3
answers
183
views
Realloc in function that deletes a row in a matrix
I have just encountered a case in this C program:
void row_del(int**& a, int& row, int col, int k) {
for (int j = 0; j < col; j++) {
for (int i = k; i < row - 1; i++) {
...
0
votes
1
answer
62
views
Store the result of a function in a reactive and reuse it in a other function Rshiny
Motivation : I would like to have the app.R file as svelt as possible so I use function to do the larger part of computations that doesn't need to be made in a reactive environnement. Still, I need ...
3
votes
2
answers
82
views
How to use the type of a referenced column as a VARIADIC argument type in a (Postgres) SQL function or procedure definition?
The PostgreSQL documentation for argtype in function and procedure definitions states:
The type of a column is referenced by writing table_name.column_name%TYPE.
This works fine for IN mode ...
-4
votes
0
answers
51
views
Why is my code outputting "none" every other line? [duplicate]
This is for a school assignment, the code mostly works but it outputs "none" every other line, how do I get it to stop doing that?
this is the output:
Apple is one of my favorite foods
None
...
2
votes
1
answer
193
views
Void function doesn't print elements of matrix C++
I'm trying to print elements of matrix (example will be below). Here is the following code written in Dev-C++:
#include <iostream>
using namespace std;
class Matrix {
private:
int **...
0
votes
1
answer
66
views
Variable isn't being set to result of Get-Content command
i'm trying to automate a few basic tasks for a helpdesk team and I cannot seem to understand why I cannot get the desired result from this code:
I did try to explicityl define $Tile as a [string] but ...
2
votes
1
answer
80
views
Why is my parameter seen as a NoneType when I set it as an integer?
I followed the Panda3D tutorial and got everything working so tried adding my own custom arguments using argparse. The first one I made was --no-rotate where it would stop the camera rotating which ...
0
votes
1
answer
39
views
How can I determine the file extension when it can be two-level?
I am writing a function to generate a file name to avoid repetitions with a suffix similar to "(1)", which are automatically substituted by most browsers and other programs when downloading ...
-2
votes
2
answers
70
views
If I want a string of text to print if a variable is less than a number how can I do this? [closed]
I'm trying to understand how functions work, I defined my function with length and area parameters.
Here is the problem: I want to write if area is less than a # then print a string of text.
def ...
0
votes
1
answer
39
views
Issues with tbl_custom_summary from gtsummary package
I want to create a table summary but want to use a custom value as the denominator in my percentage calculations. I wrote the following to divide by 25 instead of the total (17), which was working ...
1
vote
1
answer
56
views
Can't deploy python code with VS code in Azure
I'm a beginner with Azure App Function.
I want my python code to run every day automatically in a specific hour (1AM) and App function with the tool 'timer trigger' could allow it.
I created my app ...
0
votes
2
answers
46
views
Python matplotlib showing jagged graphs for constant value functions
I was trying to plot a function with absolute values and it's piecewise counterpart, but matplotlib was ploting the function with jagged corners.
Here is my full code:
import matplotlib.pyplot as plt
...