ʞǝʌın
so you want to check if a number is between 3 and 6?
The sum of the array of numbers from 3 to 6
Mihail
The sum of the array of numbers from 3 to 6
you want to find the sum of the numbers between 3 and 6?
ʞǝʌın
Yes
Mihail
you can either use a mathematical formula or a for loop to iterate over those numbers and add them up in a variable
Mihail
like: int result = 0; for(int i = x; i <= y; i++) { result += i; } would work, but x has to be smaller than y
Anonymous
what a easy question and i do not kwon what is his say about
Milap
How will you print x star 🌟 pattern in c? Do let me know
Mihail
How will you print x star 🌟 pattern in c? Do let me know
no, we aren't here to solve your test
Mihail
or homework
Milap
No it's not home work
Anonymous
my english is not good😂
Anonymous
please google
Mihail
my english is not good😂
that's ok, but words have one space inbetween, not 2
Milap
I have another way of doing, that's why I'm asking
Anonymous
that can help you
Mihail
No it's not home work
you keep on asking about completely unrelated questions every few minutes
Mihail
they clearly aren't question you thought of too
Anonymous
thanks,I want study c and english,I think this group can help me
Milap
they clearly aren't question you thought of too
What do you mean? I haven't thought of
Dima
thanks,I want study c and english,I think this group can help me
Welcome, also note the rules in the pinned message
Mihail
What do you mean? I haven't thought of
the return value of strcmp and how to print a star are both very common test questions and are completely unrelated
Mihail
you asked about one and then 2 minutes later about the other
Mihail
Milap
you asked about one and then 2 minutes later about the other
Ohh man... You think I'm preparing for some test.. I just wanted to make conversation..
Anonymous
yes
Milap
X star pattern suddenly pop out on my mind.. That's why I asked
Mihail
X star pattern suddenly pop out on my mind.. That's why I asked
yeah well for the things that "pop out on your mind" try google first
Anonymous
Anonymous
or this can help you
Mihail
Don't use conio.h
Anonymous
why
Anonymous
c++11?
Mihail
why
It's outdated, non-standard and platform-specific
Milap
yeah well for the things that "pop out on your mind" try google first
All i wanted to say is... I have some other way that may interest you That how I did the other way. By using gotoxy command..
Anonymous
Anonymous
https://pastebin.com/8QvSpt3P the cond isnt being checked on ln 50?
Anonymous
i have no idea why
Nomid Íkorni-Sciurus
int x = { 6 + a } what does this mean? (C++11)
Anonymous
as you can see the other cond is checked
Anonymous
😤
Anonymous
Anonymous
Anonymous
hmm
Anonymous
the operator isnt being pushed
Anonymous
into the vector
Anonymous
is -1 false ?
Anonymous
False is 0
Anonymous
True is 1
BinaryByter
0 is false
Anonymous
and -1 is ? ...
BinaryByter
the operator isnt being pushed
this statement makes no srnse
BinaryByter
True is 1
anything but 0 is true
Григорий
BinaryByter
the check is implemented as cmp value jz somewhere
Anonymous
//pushs number or operator to a stack else { std::cout << input << std::endl; numOpStore.push_back(input.at(0)); } lets say input.at(0) is '+'
Anonymous
True.
well... that's probably why my card game does not work 😆...
Anonymous
it is not being pushed to the vector
BinaryByter
dont use real values instead of false and true
BinaryByter
they are not verbose enough
Anonymous
It's better in my case
BinaryByter
No
BinaryByter
use ints if you need a ternary option
BinaryByter
or an enum
BinaryByter
(even better)
BinaryByter
or a class enum (epytome of greatness)
Anonymous
I have function which return number from 0 to 32. If math by argument gets false function would return -1 and I need it in if function
Anonymous
it's little bit complicated
BinaryByter
Dont implement your functions like that
Anonymous
They are preimplemented
BinaryByter
instead, use std::optional
BinaryByter
They are preimplemented
then, check if the return value is -1
Anonymous
It's gaming engine using C like language.
BinaryByter
Yoi should prefer cpp over c