MRT
querySyntax << "select device_code from User_profilehandshake"; not working and PQresultStatus return data with int 7
MRT
MRT
i think problem most be from streamstring
Divyanshi
Does anyone have coding blocks' algo++ and competitive programming course?
Anonymous
Anonymous
Anonymous
There's no iostream.h in C++. It's only in your compiler.
Anonymous
Anonymous
Anonymous
Guy they are both correct
If you started learning c++
Back in the early 1900s you will understand what am saying
Anonymous
Like in pythons2
Print "hello world "
Now pythons 3
Print ("hello world ")
Do you understand
What I mean by update
Anonymous
Anonymous
Anonymous
iostream.h is deprecated—it is the original Stroustrup version. iostream is the version from the standards committee. Generally, compilers point them both to the same thing, but some older compilers won't have the older one. In some odd cases, they will both exist and be different (to support legacy code) and you then must be specific.
Anonymous
When did you start learning c++
??🙈
Anonymous
Anonymous
Anonymous
Anonymous
Ishank
#cbookguide
[BLĀNK]
Just pick a compiler and start working on it😂👍
Ifaṣeyi
Anonymous
[BLĀNK]
There so many compiler variations out there , its common for people to get confused
Anonymous
[BLĀNK]
So just pick one, work on it and forget that the code existed 😬😏
[BLĀNK]
Anonymous
[BLĀNK]
[BLĀNK]
So be happy with one
[BLĀNK]
Tough life... programmers got here😂
Pavel
I would not say 4 is "too many".
It's only 3 if we exclude Windows.
And just 2 of them if we are talking about open source
Pavel
2 compilers actually help to avoid some silly mistakes
Nameful
Nameful
Intel's compiler?
Pavel
Pavel
Is intel compiler still widely used?
Ok I see it supports C++17 features then probably it is used
https://en.cppreference.com/w/cpp/compiler_support
Asad
Why would anyone use Intel Compiler? Just give one valid reason, please.
Asad
Diego
Then again Intel does have a shitload of money and is one of the big processor manufacturers
Pavel
Oh, by the way. Do you know the name of a tool for benchmarking changes that reduce effect of memory layout to the results? I remember a presentation where the authors were talking about effects of memory layout to benchmarking and about this tool, but now can't remember the name of it or find the presentation.
Igor🇺🇦
Pavel
Igor🇺🇦
Yes, this is the one, thanks! :)
This is the profiler they talk about in the talk. I've never tried it so don't know how effective it is https://github.com/plasma-umass/coz
Anonymous
Hello guys, is there anyway cin can extract input into enum type variables?
Anonymous
Igor🇺🇦
Another not so long method
cin and enums did not change since this answers . You still need to cast from int to your enum.
What's long in this method? You can cast manually every time.
Anonymous
Anonymous
س💕 ⚖️
#include <stdio.h>
#include <stdlib.h>
int main() {
int counter = 1 ;
int number ;
printf("enter a number\n");
scanf("%d",&number);
while(counter<=2){
if(number==0){
break;}
if (number ==100){
continue;
}
else{
printf("the number is %d ",number);}
printf("\n enter a number\n");
scanf("%d",&number);
counter++;
}
}
س💕 ⚖️
Why stops the program when I press the number 100
س💕 ⚖️
I want to ignore the number does not stop
س💕 ⚖️
How do I get him to just ignore him
⚛ Hz
the problem is
⚛ Hz
your continue does not allow user enter next number
⚛ Hz
once the number == 100, the scanf is got skipped
⚛ Hz
and will be skipped in next time, because the number is keep 100 in next loop, so scanf got skipped too
⚛ Hz
infinite loop!
⚛ Hz
you need rearrange your statement, put scanf before if to break the infinite loop
س💕 ⚖️
Really, thank you very much. I did not expect it so easily
⚛ Hz
I didn’t look carefully before and was misled by the counter variable)
Anonymous
Anonymous
Anonymous
http://eel.is/c++draft/library.c
Anonymous
iostream.h is not
Anonymous
س💕 ⚖️