Skip to main content
Filter by
Sorted by
Tagged with
4 votes
2 answers
161 views

In The C++ Programming Language 4th edition, in §6.3, page 153, I read Any declaration that specifies a value is a definition Again, in §15.2, page 421, a declaration with an initializer is always ...
Enlico's user avatar
  • 30.3k
0 votes
2 answers
120 views

According to the C standard, the local variables declared in the local scope would carry garbage value until they are explicitly initialized. In contrast to that, if the variable is declared in the ...
Bobby's user avatar
  • 121
2 votes
2 answers
211 views

In C, suppose an object is declared, for instance int x; as an automatic variable. Without initializing it with any value, is it still considered just a declaration and not definition? Cause ChatGPT ...
Bobby's user avatar
  • 121
-3 votes
1 answer
143 views

I don't understand the definition of a function below: What does the (-1) mean at the end of the parameter list? template<typename RatioT = std::milli> bool rclcpp::client::...
no name's user avatar
0 votes
1 answer
58 views

I am reading Engineering a Compiler (Cooper, Torczon) 3rd Edition, Chapter 5 Syntax-Driven Translation. It contains the paragraph: PYTHON does not provide type declarations. The first use of a name x ...
Dean DeRosa's user avatar
0 votes
1 answer
147 views

Humbling seeking help. Beginner Powershell Core 7.4.2 scriptwriter. In reference to Get-Member results. My background is that I really prefer using Powershell Core's built in documentation rather than ...
Roy Trotter's user avatar
0 votes
1 answer
72 views

There is a part of mathematics called the theory of multiple zeta values (MZVs) introduced around 1992. In this theory, we study the properties of parametric nested infinite series (see, e.g., here ...
Marian G.'s user avatar
  • 111
1 vote
1 answer
79 views

The script is intended to: Read values from column LADUNGSNUMMER in the worksheet NVL cell by cell. Find each value in column Transport of the worksheet DATA. Read the corresponding values from ...
reznor 's user avatar
0 votes
1 answer
164 views

I have a forward declaration of a struct in .h file and full declaration of the same struct in .c file. I want to access it's members, but I get member access into incomplete type struct channel Here ...
Yespa16's user avatar
  • 51
0 votes
1 answer
2k views

"Password in the Cloud" - is this definition meant to be a catch-all term for any saved/stored credential (via Chrome, Bitwarden, or any other password manager). Or does it have a more ...
AdventureTM's user avatar
0 votes
1 answer
84 views

I have a template class declared in a header file. // Matrix.h template <class X> class Matrix {}; In another header file I have a function declaration which has an instantiation of that ...
ST11280709's user avatar
0 votes
1 answer
169 views

I am working with an old code in C++ that uses a custom implementation of a matrix class. The matrix is class is implemented as a template class. The declaration looks like this /**********************...
ST11280709's user avatar
0 votes
2 answers
345 views

I have an assignment to create a password check that says if the password is strong (3 criteria checked off) moderate (2 criteria checked off) or weak (1 or less). The criteria are: 1: containing 2 of ...
sammiejansen's user avatar
1 vote
4 answers
137 views

I have come up with this code: lista= [5,3.2, 'Error', 44, 'Error', 35] listb= [70, 70, 20, 410,'Error', 4.9] for i in range(6): a= lista[i] b= listb[i] if a == 'Error' or b == 'Error': ...
sammiejansen's user avatar
0 votes
1 answer
208 views

I created person table as shown below: CREATE TABLE person ( id INTEGER, name VARCHAR(20) ); Then, trying to show the definition of person table with \d and \d+ got the error as shown below: ...
Super Kai - Kazuya Ito's user avatar
3 votes
2 answers
77 views

So I've come accross these on PHP8 code from my office (simplified) : [, $x] = $y; I also saw the other way [$x, ] = $y; What would these do? If I do that in a sandbox and assign random values to $y ...
Carlos2W's user avatar
  • 2,920
0 votes
1 answer
117 views

Say I wanted Given something When the sky is blue And grass is green Then I'm happy but I wanted When('the sky is blue') do puts 'good' end and When('grass is green') do puts 'good' end to be the ...
Andrew Walker's user avatar
2 votes
1 answer
554 views

The term scalar is often used in PowerShell issues and documentation along with e.g. the about_Comparison_Operators document. I think, I do have an abstract understanding of its meaning (in fact I am ...
iRon's user avatar
  • 24.4k
0 votes
1 answer
28 views

I've got RubyMine version 2023.1.5 and Cucumber version 8.0.0 When I create a step in the feature file and use the Create Step Definition hover button to create the Step Definitions the definition is ...
Andrew Walker's user avatar
0 votes
1 answer
95 views

I've tried to split my c++ code in multiple files so that it can be cleaner but when I try to test it with building it, I get LNK2005 error. GlobalVariables.h #pragma once #include"ConsolePanel.h&...
FaridG's user avatar
  • 15
-1 votes
2 answers
52 views

I have a unit converter that isn't cooperating as intended. I get traceback on my print line saying it won't print. Here's the code: def big_to_small(kilometer,hours,minutes): totalTimeMinutes = (...
Ell Roska's user avatar
-2 votes
1 answer
170 views

In Visual Studio 2022 pro for JavaScript files the right click option "go to definition" does not automatically open the file like it used to in VS 2019. Any ideas how to get this feature ...
vaughn's user avatar
  • 55
0 votes
1 answer
284 views

There's this example that was shown in our class today: age = 20 fprintf("age is"%f\n); What is the purpose of "%f\n"? I initially thought it was a placeholder for variables. It ...
Epnosary's user avatar
0 votes
2 answers
292 views

I have encountered a way of making a multiline macro function definition in C/C++ compilation, that does not meet any clear code conventions (and possibly creates performance drawbacks?). Is it the ...
filberol's user avatar
0 votes
2 answers
47 views

My objective: Use radio or option buttons to select predefined cells and populate them with a alpha/numeric designator (in this case "N1"), Using If-Then-Else, allow user to select a ...
Syndesis's user avatar
1 vote
0 answers
143 views

In VS Code, I have a workspace with two folders (two C/C++ projects): P1 and P2 I have two functions foo() defined in both projects (same prototype): P1/foo.c P2/foo.c When I Ctrl+Click on a call to ...
Sigma Pic's user avatar
  • 141
0 votes
0 answers
76 views

I always hear or read that 'everything in Python is an object'. This sentence is really helpful for beginner programmers as myself, and I was quickly able to understand that classes, methods are ...
Nuraly's user avatar
  • 25
-1 votes
1 answer
84 views

I am trying to make some sort of easy way to define mcu that I use, and by defining mcu, different header files should be included. I tried doing it with #if and #elif directives : #include "...
Dominykas's user avatar
  • 161
-5 votes
1 answer
77 views

Θ or Θ(f(n)) is often defined in terms of O(f(n)) or Ω(f(n)). Other answers on this site define Θ(f(n)) in this way. What is the definition of Θ(f(n)) without using O or Ω? Of course, since it is true ...
BigMistake's user avatar
0 votes
0 answers
60 views

In CMake I use: #target_compile_definitions(appsap_rtf PRIVATE SAPwithUNICODE UNICODE _UNICODE SAPwithTHREADS) target_compile_definitions(appsap_rtf PRIVATE SAPwithUNICODE) target_compile_definitions(...
Jiri Zaloudek's user avatar
-5 votes
1 answer
114 views

public List<ItemData> itemBase; When i declare this list i can use it without definition is there benefit in defining while declaring variable? public List<ItemData> itemBase = new List<...
Bagbaq's user avatar
  • 45
1 vote
1 answer
523 views

I have a following code: namespace A { template <typename T> void func(T); namespace B { class foo {}; template <> void ::A::func(foo); // ERROR class bar {}; class foobar {}...
mouse_00's user avatar
  • 693
3 votes
2 answers
471 views

In C/C++, are function definitions present in header files or only declarations? Take for example function pow() in math.h. If function's definition is not present in the header file, then what does ...
shivansh gautam's user avatar
0 votes
1 answer
355 views

While learning about Sampling Frequency I came across two definition First : The sampling frequency in a given time interval represents the number of samples taken per unit of time during that ...
karan ganeshwala's user avatar
0 votes
1 answer
145 views

I was getting an error in something called TouchGFX and it was pointed out to me that a virtual function inside a class needed to be defined with curly braces vs just a semicolon at the end of its ...
Rodo's user avatar
  • 115
1 vote
2 answers
519 views

I am working on a question from my computer programming course this semester and am unable to resolve a linker error that I am facing. Can someone take a look at the following files and let me know ...
ErrorEliminator's user avatar
2 votes
1 answer
123 views

I am trying to define a structure that is 8 bytes large. The structure has to be space efficient since we will have millions of these and the amount of memory we use for it is at a premium. The ...
Mayank's user avatar
  • 23
0 votes
1 answer
113 views

The definition of convergence for root finding algorithms is given in a few sources as: A sequence ${x^k}$ generated by a numerical method is said to converge to the root $\alpha$ with order $p\geq 1$ ...
Username_57's user avatar
0 votes
1 answer
330 views

I need to copy block definition (not block reference) and set to copy other name in autocad 2022 within one drawing. How can I do that?
graveman's user avatar
  • 131
-2 votes
1 answer
89 views

// file a.h // #define MY_MACRO( size, name ) MY_MACRO( 1, var_a ) MY_MACRO( 2, var_b ) MY_MACRO( 3, var_b ) MY_MACRO( 4, var_b ) MY_MACRO( 5, var_b ) MY_MACRO( 1024, var_c ) // file ...
yyd's user avatar
  • 33
0 votes
2 answers
67 views

My question is: when i=1 P_COMInit(i) = do { P_SEGi_OUTMODE();}while(0) but not do{P_SEG1_OUTMODE();}while(0) How can I achieve what I want? I want to replace the code above with the macro ...
levis liu's user avatar
0 votes
1 answer
261 views

I am trying to create a program for teaching English. My aim is to take a text and have it so that students can read the text, and get the definition of individual words by hovering over any words ...
Axey 's user avatar
3 votes
3 answers
294 views

If you take the definition from wikipedia of a higher-order function, it is a function which either takes another function as an argument and/or returns another function. From my (limited) ...
Ben's user avatar
  • 33
1 vote
1 answer
656 views

• In math, we think of reduce when a denominator and numerator share the same multiplier and that multiplier is “reduced” to a simpler concept (as in “is divisible by”). • In math, an aggregate, ...
jamiel22's user avatar
  • 187
0 votes
1 answer
155 views

i am making a game(cookieclicker to be exact) im running of a problem of repetition so I fixed it but theirs still a problem of var not being returned, i cant seem to find a way to do it without ...
user avatar
0 votes
3 answers
283 views

So I was going through the Wikipedia page on API, in the first paragraph it is stated that A document or standard that describes how to build or use such a connection or interface is called an API ...
Neo Anderson's user avatar
0 votes
1 answer
457 views

Here's my main: #include "terremoto.h" int main(){ std::string filename, zona; std::ifstream in_stream; std::ofstream out_stream; nodo *elenco, *filtroZona; std::list<...
lucottoDA's user avatar
-1 votes
2 answers
57 views

With the header file (UDPRBPlib.h) and the implementation file (UDPRBPlib.c) I keep getting errors of multiple definitions for global variables and all of my functions shown below: /usr/bin/ld: /tmp/...
techandmoretech's user avatar
0 votes
2 answers
96 views

How to understand the conversion of character '!' to int type in C language is the process of converting from 1-byte 33 to 4-byte 33 I know that 33 is an Ascill table value, but why do they use ...
Lesen Liu's user avatar
-1 votes
1 answer
817 views

I want to make the following variables {Ω : Type} (P:set Ω → Ω → Prop)(a:Ω) def G :set Ω → Ω:= begin intro V, by_cases h: ∃!u : Ω, P V u, --I want to use the u that is unique as return in this ...
Vicent Pons llopis's user avatar

1
2 3 4 5
34