886 questions
It's a program that throws a number at the bottom. The file name is getHits.sh.#!/bin/bash# # Print 32 bit random numberUPPERBIT=$RANDOMLOWERBIT=$RANDOMUPPERBIT=$(($UPPERBIT<<16))SLEEPTIME=$(($R...
When you get a fixed incomeIn C, scanf (%1d, & array) can be entered at onceIs there a way to get it without any gaps without using scanf on C++?All I know is to receive it as a string and convert...
When adding data to the map I know there are two ways, but I want to know the difference between the two and which one is right (standard?).
If I run the source code below,It says 3.14159265358979 instead of 3.14159Instead of rounding off the decimal point,What should I do to get the full price?int main(){ double d = 3.14159265358979; cout...
As the title says, I want to save vector with pair value as an array, is it possible?
//#include <iostream>#include <string>using namespace std;class Ingredient { string name[6] = { Kimchi, Egg, Ham, Potato, Cheese, Tuna;public: Ingredient(); void getName(); string setName(...
Why write the static function of C?In , the word translation section comes out, and I want to know exactly what it means
#include <iostream>using namespace std;int main(){ int* arr = new int[10]; for (int i=-9; i<=0; i++){ arr[i]=i; } delete [](arr); system(pause);}Why does the delete[] error occur when the a...
Is there a difference between the two?Google C++ Style Guide says to use .ccThere's no explanation.What would be good for Linux?
It's a simple question.class CObj{ virtual int Add();};class CUnit :public CObjs{ virtual int Add(); virtual void Check();};If there is a simple inheritance structure as follows:Can I normally access ...
« | - 64 - | » |
© 2024 OneMinuteCode. All rights reserved.