python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Why does C++ automatically rounds float
I have a code like this...
#include<iostream>
using namespace std;
int main(){
float num;
cin >> num;
cout << num;
return 0;
}
Input: 256.1024
Output: 256.102
Why does...

Antonio2502
Votes: 0
Answers: 0
std::cin , unwanted behaviour. and how can I fix this?
I tried to play with some code to test overloading functions. The overloading part went well, however, I learned something about std::cin that made me feel stupid for not noticing it before!
#include ...
med amine riahi
Votes: 0
Answers: 1
What exactly empty input means for cin.get()?
I think it's a simple question, but I don't understand the concept in this sample of code, mainly in the while loop:
#include <iostream>
const int ArSize = 10;
void strcount(const char * str);
...

todovvox
Votes: 0
Answers: 2
Prevent splitting inputs at spaces and automatically using later words for later inputs
I have a Function that outputs a string that it's been given to the console via cout, initializes a new string, writes user input into that string and returns it.
I summarized my problem in this piece...
Good_Username_Taken
Votes: 0
Answers: 0