syntax tag

30 questions


1 answers
79 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...

1 years ago

1 answers
51 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...

1 years ago

1 answers
56 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
79 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 ...

1 years ago

2 answers
75 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
52 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
118 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; //...

1 years ago

1 answers
48 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...

1 years ago

1 answers
79 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
53 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...

1 years ago
« - 3 -

© 2024 OneMinuteCode. All rights reserved.