c tag

1304 questions


1 answers
127 views
0
Is it right to use exit or return in main?

Is it right to use exit or return in main?The main() also has a return type, so I think it's right to use return, but I've seen some codes use exit() together. Which one should I use?

2 years ago

2 answers
103 views
0
[OS X] When using the -static option with gcc, clang : error occurs.

I wrote a c code to run a simple shell, gave the -static option to gcc, and compiled it.The following error occurs:ld: library not found for -lcrt0.oclang: error: linker command failed with exit code ...

2 years ago

1 answers
157 views
0
Contact us for instructions on building from 64-bit powerpredhat to 32-bit powerpredhat

I want to install 32-bit odbc with 64-bit odbc binary, but it keeps building with 64-bit../configure --prefix=$HOME/unixODBC --sysconfdir=$HOME/unixODBC/etc --build=ppc32-pc-linux-gnu --host=ppc64-pc-...

2 years ago

1 answers
147 views
0
Is there a way to get HttpServletRequest from the controller of spring mvc without adding a parameter to the method?

I understand that to receive HttpServletRequest from the controller of spring mvc, you can add the parameter of the function as shown below. @RequestMapping(value = /, method = RequestMethod.GET) pub...

2 years ago

1 answers
165 views
0
Does the speed vary depending on which of the overlapping for statements is repeated first?

for(i=0 ; i<100; i++) for(j=0; j<1000; j++) printf(a);And for(i=0 ; i<1000; i++) for(j=0; j<100; j++) printf(a);Both loops 100,000 timesI heard one of the two spins fasterPlease explain ...

2 years ago

1 answers
39 views
0
Do you often use c++ when developing iOS?

Do you often use c++ in iOS like using ndk in Android?

2 years ago

1 answers
92 views
0
I would like to ask you a question about the PyQt command in Python.

pyuic5-o example2.ui example.pyI ran it in the form, but the error follows: The part that I can't get a sense of is clearly 'ls -l', and when I look up, the file exists, but when I actually execute th...

2 years ago

1 answers
30 views
0
What's the difference?

int t, i;t = 0;for (i = 0; i < 10; i++) {t++;}printf(%d %d\n, t,i);int a, i, j;for (i = 0; i < 10; i++)for (j = 0; j < 5; j++)a = i +j;printf(%d, a);What's the difference?I'd appreciate it if...

c
2 years ago

3 answers
28 views
0
When using the inet_ntoa function, I do not understand the structural type conversion that is passed to the factor.

You want to use a function whose circular form is char * inet_ntoa (structure in_add in); in function int ipaddr = inet_addr(127.0.0.1); And I want to convert the ip Internet address back to a dot-mar...

c
2 years ago

1 answers
88 views
0
How to make certain pixels transparent on the uiimage pixel on the iPhone

Hello.I'd like to make certain pixels transparent on iPhone.On Android, it became transparent if the alpha value was zero.On iPhone, R, G, B, and A must be zero to make the pixel transparent.I don't u...

2 years ago
« - 64 - »

© 2024 OneMinuteCode. All rights reserved.