Kumar Vipin
You are taking input but a loop accept a condition or some true or false values.
olli
You are taking input but a loop accept a condition or some true or false values.
operator >> returns basic_istream& which defines operator bool
Anonymous
Kumar Vipin
olli
Kumar Vipin Yadav: And one more suggestions Use https://paste.fedoraproject.org/ Instead of pastbin it's open source.
Anonymous
man
Anonymous
this is so complciated
Anonymous
btw
Mihail
And GitHub Gists and Pastebin
Anonymous
how do we have 6.9k members
Anonymous
and theres like 5 peole taking at a time
Mihail
how do we have 6.9k members
Like 30 actually active
Anonymous
y are they still here
Anonymous
🤫
Anonymous
int number; while (!(std::cin >> number)) { std::cerr << "Invalid input try again!" << std::endl; std::cin.clear(); std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n'); } std::cout << "Your enter " << number << std::endl;
Anonymous
0 is an int
Kumar Vipin
Yeah it's work
Kumar Vipin
It is so Complex just crack my mind 😁
Anonymous
thanks
Anonymous
for this part (!(cin >> acc.numInput)) what does this exactly mean i know ! means not
Anonymous
i see
Anonymous
for this part (!(cin >> acc.numInput)) what does this exactly mean i know ! means not
it means if cin read value that is not an integer it will go in loop and handle error
Kumar Vipin
And if any integer value is entered then the -->! <-- make it false
Anonymous
it will not check for number
Kumar Vipin
And loop will not execute
Anonymous
does JS stand for hava script
Anonymous
it will check for cin state
Kumar Vipin
And if you enter a non integer value mean a false value then it execute the loop and again ask input.
Vikas
Using for loop we can make pattern like this
Kumar Vipin
Yes you cad do it
Vikas
Anonymous
Yes
Any serious programmer here
Vikas
Like this
klimi
@roxifas here's something for you
Vikas
Can anyone help to learn pionters in C
Anonymous
please use indentation
Vikas
Yeah
Please give me some information and example for pointer
Kumar Vipin
@vikasmukhiya1999 I have a script written in Python that can fix indentation. I code that for guys like you 😁😁
Kumar Vipin
Please give me some information and example for pointer
Dude you will have to google it it will provide you best source but if you don't get any point or facing any error in code we are here to help you 🙃
Vikas
Why i warn because that screenshot is not for copyright and any issue
Vikas
Give me some information
Anonymous
read rules!
Anonymous
wtf is that
Anonymous
and what happen to thhe pinned message
Anonymous
i cant read the riules
Vikas
I don't see any circumstances about screenshot of turbo c++
Anonymous
and theres only like 5 people talking at a time
Anonymous
dont wanna ban them
Anonymous
From the rules: * If you encounter a problem, while using turbo C++, you will not be helped, use another more modern IDE.
Anonymous
hey we have 7k members
Anonymous
where are the rules JS
Anonymous
pinned
Anonymous
yeah i cant find the pinned message, i only use discord
Ritwik
Code to generate Armstrong number using for loop?? In C??
Kumar Vipin
Code to generate Armstrong number using for loop?? In C??
You can't do that you are directly asking for code without trying
Anonymous
VS
Kumar Vipin
I use code block in windows and use terminal to execute my code in Linux
Ritwik
You can't do that you are directly asking for code without trying
I cannot show you my try... Because according to channel's rule I can't post any pic.. And I have no idea about code..
Kumar Vipin
And use Visual Studio code as a text editor
Vikas
And use Visual Studio code as a text editor
Can i use this as replacement of turbo c++
Ritwik
I don't have any service like this..
Vikas
For only C programming
Kumar Vipin
I don't have any service like this..
Dude open Fedora paste in your browser and paste your code there and then send that link here