886 questions
Please tell me the code to find out the cache size (in line units) in the C/C++ program.My computer uses Linux and I would appreciate it if you could tell me the other platform code.It would be nice i...
Is there a way to capitalize the entire string at once?What I found on Google is char type, but I have to write in string type type
I know that C/C++ always lowers the result of dividing int.I know that math.h has ceil(), but I want to know how to raise the header right away without including it.My code is inefficient by comparing...
#include <iostream>#include <cstring>using namespace std;namespace COMP_POS { enum { CLERK = 1, SENIOR, ASSIST, MANAGER }; void ShowPositionInfo(int pos) { switch (pos) { case CLERK: c...
char* Req_topic[] = {0,}; char Req_topic_SerialNumber[] = {0,}; strcat(Req_topic_SerialNumber , qqq/aaa/bbb/); strcat(Req_topic_SerialNumber, SERIALNUM); strcat(Req_topic_SerialNumber , /cccc); print...
Please let me know if there's any other way I can do itI heard that there is an overflow flag in the hardwareI've never seen it on C/C++. int a, b, c;test=a*b;if (test/b!=a) {} //overflow detection -&...
In C++, if there's a string with a space, What's the best way to split? Not a quick way, but a good way to look.
I want to find out if there's an element in the vectorHow do we figure it out?How can I create item_present in the code below? if ( item_present ) do_this();else do that();
If you create a constructor with parameters in C#, C++, and Java, the default constructor without parameters disappears.Before, I thought it was just like that, but I suddenly became curious about why...
List itemGame Rules Roll two 12-sided dice.The player starts with 100 coins in the balance.When the third die enters between the two dice, the coin is earned as much as the bet is made, and the balanc...
« | - 65 - | » |
© 2024 OneMinuteCode. All rights reserved.