c tag

1304 questions


1 answers
82 views
0
Where can I see the C/C++ standard?

Looking at other answers, I saw a lot of things like standard or standardWhere can I see standard documents?I wish I could see it on the internet!I searched Cstandard on Google, and only the community...

2 years ago

1 answers
127 views
0
Which one should I use, malloc or new?

In C++, there are many ways to dynamically allocate, right?Then when should I use malloc and when should I use new?malloc If you finished freeIf new is done, deleteI know I shouldn't mix the two.


1 answers
31 views
0
Best way to loop from the back on C/C++

We're going to approach the arrangement from the back to the frontI'd like to know a better way than the source code I madefor (int i = myArray.Length - 1; i >= 0; i--){ //take care of sth myArray[...

c c++
2 years ago

1 answers
126 views
0
&&& What is doing?

If you compile the code below into the gcc -Wall /-Waddress option,warning: the address of ‘i’ will always evaluate as ‘true’ [-Waddress]It appears.I don't know why it's coming up. I don't know what i...


1 answers
116 views
0
How do I take out the sign?

The factor will enter float and Is there a standard library function that does this?

2 years ago

1 answers
143 views
0
Why doesn't Java allow static method override?

Why can't I override the static method in Java?If possible, show me an example of how to do it.


1 answers
69 views
0
To set a static variable within a function

In C, static was specified in the function like the code belowHow do I declare static in a function with Python?void foo(){ static int counter = 0; counter++; printf(counter is %d\n, counter);}

2 years ago

1 answers
75 views
0
To detect OS (OS X/Linux/Windows, etc.) on a C preprocessor?

I'm going to make a C/C++ code that supports multiple platformsYou want to determine which platform the preprocessor is using.Where can I find relevant information?


1 answers
79 views
0
Why did you define TRUE and FALSE macros like this?

I saw in the book that TRUE/FALSE was defined like this, but I don't know the reason. #define TRUE '/'/'/' #define FALSE '-'-'-'What does this mean?Why can you write that one-zero?

2 years ago

1 answers
90 views
0
Difference between Reference and Pointer and a pointer

I know that using references makes it easier to read and write code,What exactly is the difference between the two?

2 years ago
« - 58 - »

© 2024 OneMinuteCode. All rights reserved.