syntax tag

30 questions


1 answers
93 views
0
What's wrong with too many arguments?

if __name__ == __main__: parser = argparse.ArgumentParser() parser.add_argument(fn) parser.add_argument(js_pl) parser.add_argument(-i, --iteb) args = parser.parse_args() if args.iteb: _iif(args.js_pl...

2 years ago

1 answers
61 views
0
What is the :: before the class name?

::Configuration * tmpCo = m_configurationDB;//pointer to current dbI saw this chordI don't know what the hell :: is doing.If you clear :::declaration of tmpCo as a pointer to an object of the class Co...

2 years ago

1 answers
66 views
0
What is the objective-c's ?, :?

What does this code do?I don't know why I'm using ?and :plabel.frame = (inPseudoEditMode) ? kLabelIndentedRect : kLabelRect;


1 answers
96 views
0
VS Code Error Checking

I'm using vscode, but if there is a grammar error on the desktop, The problems panel tells you that there is an error in the number of lines.It works well on the desktopIt hasn't been like that since ...

2 years ago

2 answers
84 views
0
How can I fully print the unsigned long int?

#include <stdio.h>int main() { unsigned long long int num = 285212672; //FYI: fits in 29 bits int normalInt = 5; printf(%ul is %d bytes; int value is %d.\n, num, sizeof(num), normalInt); return ...


1 answers
60 views
0
Why is (1 in [1,0] == True) False?

I didn't know how (1 in [1,0] == True) could be parsed, so I tried it in my own way.>>> 1 in [1,0] # That's how it's supposed to be.True>>> 1 in [1,0] == True #StrangeFalse>>&g...


1 answers
134 views
0
To check null in a repeat statement

Is there a good way to check if the list is null when going around for loop in Java?if (someList != null) { for (Object object : someList) { // // do whatever }}//I if (someList == null) { return; //...

2 years ago

1 answers
55 views
0
Write a single line of code divided into multiple lines

It's hard to see because I'm trying to write a very long code in one line.Can you divide a line of code into several lines?For example,e = 'a' + 'b' + 'c' + 'd'e = 'a' + 'b' +'c' + 'd'How to make it t...

2 years ago

1 answers
91 views
0
How do you write binary?

I know that hexadecimal numbers have 0x in front of it, and octal numbers have 0 in front of itSo what do we do to express it's binary


1 answers
61 views
0
In Cpp, a grammar that uses Pointer as a function?

Hello.It's Cpp Newbie, but there's a grammar I've never seen before, and I'm not sure how to search for it, so I'm posting a question like this.It's nothing but, like the title of the question, the da...

2 years ago
« - 3 -

© 2024 OneMinuteCode. All rights reserved.