Deni
:c
Yes this is the reason because you might start by 2
Anonymous
i did , it showed an error
Deni
i did , it showed an error
Because you might check even the case of the input of 1 and 2
Deni
if (isprime || num==1 || num==2)
Scor
Then you should ask for help.
And i ask for help. Nə deyirsən gijdıllaq?
Asdew
And i ask for help. Nə deyirsən gijdıllaq?
No, you asked for the solution.
Scor
No, you asked for the solution.
Because i need solution.
Asdew
Because i need solution.
We here do not do your homework. Do it yourself. If you have something with which you need actual help, then you can ask here.
Anonymous
can any one tell me whats the use of signed char in C ? i tried googling but to no avail. my doubt is, a char in c takes a byte, 256 bits. u:0 to 255 or as well as s:-128 to 127... whats the use of signed right there ? and in ansi an A is 65, are there any equivalent char for let's say -176 ?
Anonymous
:c
Marat
check for 1 and 2 before loop
Artöm
1 is not prime
Marat
1 is not prime
I mean he shouldnt do it inside loop
Artöm
He shouldnt
Anonymous
signed char is only char type which doesnt alias all other types
okay so basically its nothing ? got u one small thing though before i thank you and user: a. i tried printing -191, printf("%c", -191); i got an A. whys that
Anonymous
because char(-191) == char(65)
🙇 thank you. understood
Anonymous
/ben font cancer
Ashish Bhushan
Sorry?
Anonymous
but my code is in c++ :c
Anonymous
Sorry?
JOKE THAT your font is cancer and you should be banned for that
Ashish Bhushan
No it's not
Ashish Bhushan
And i don't understand this joke???
Ashish Bhushan
I mean it's readable clearly
Ashish Bhushan
Stop banning someone for such a lame reason....these things are very specific
Ashish Bhushan
It maybe so called cancer for you...but not for others
Ashish Bhushan
And if group admins have any problem with my text...they can tell me in chat i will change it....
Asdew
I am not an administrator, but I definitely do have a problem with that font.
Ashish Bhushan
Okk
Ashish Bhushan
That is a ss from my phone that's why it is like that
Ashish Bhushan
I will take care of it from next time
Ashish Bhushan
Thanks for telling
Asdew
Also, please indent code.
Ashish Bhushan
Sorry?
Anonymous
And i don't understand this joke???
the joke is using /ben which is a no-op instead of /ban which is the actual ban command
Anonymous
Anonymous
Sorry?
1) Use a compiler in Termux to compile code 2) use an editor in termux 3) use clang-format in Termux
noop
No it's not
Some apps do automatically indent your code, for example on Linux PC, install indent or astyle, and run it like this on your file: indent file.cpp astyle file.cpp
Anonymous
I mean it's readable clearly
it's not. code should always be in Monospace font. this is also fixed by using an editor in Termux
Anonymous
Okk....i was doing it in my phone that's why it was like that on pc i take care of all this
Termux is available on android. the packages he mentioned should be available too. even if they are not, the entire LLVM toolchain is available in Termux which includes clang-format
Anonymous
almost correct, but there is no plan to deprecate other representations in C (according to latest ISO 9899 drafts)
Mar!o
Sasuke
That guy 😂😂😂
Anonymous
wow, this clears up alot now, thank you very much
Anonymous
take a look at N2454 page 39
Ashish
I Implemented various Data Structures and Algorithms In C++ https://github.com/Ashish0077/DSA
Ashish
Coffeholic
Plz help I am a beginner with c++, and I want a good book but all the books are out of data plz does anyone know a good book for modern c++
Coffeholic
OK, ty
Anonymous
I want c program application for windows 7 ultimate sir
MᏫᎻᎯᎷᎷᎬᎠ
Then be familiar with windows.h header
MᏫᎻᎯᎷᎷᎬᎠ
Then you are good to go
Anonymous
Okay sir
Anonymous
Then which application I have to install in my pc
MᏫᎻᎯᎷᎷᎬᎠ
Code blocks
Anonymous
I Implemented various Data Structures and Algorithms In C++ https://github.com/Ashish0077/DSA
for the DynamicArray - just creating a copy using the implicit copy constructor would cause a double free
Anonymous
I already installed it but they was problem
Anonymous
I Implemented various Data Structures and Algorithms In C++ https://github.com/Ashish0077/DSA
for the linked list, what's the point of having an iterator if you still have to do (*it)->data. the operator* function of the iterator should handle this and return the data. not the entire node
Anonymous
since you are not using allocators to manage raw memory properly, i would suggest using smart pointers instead of raw pointers in almost every instance where you have declared a pointer type.
Anonymous
ye
Anonymous
Hello from where can i find a Exercises to practice for c++ ? For example: for if ,else if and loops I have a medterm soon.
Ashish
I'll try to improve my code. i just started learning all this so my first priority was to make it work with bare minimum. I was not following any proper design pattern in C++. Can you please suggest some topics on what i should focus on?
Anonymous
@Ashish0077
Ashish
@Ashish0077
These are book can you mention some specific topics?
Anonymous
infact i think this is the best sorted list of C++ books i have ever seen
Anonymous
/report can these be added to some rose command?