Loner〽💻
Can I get a another view of what am I looking at ? send the code and not a picture of scren, Please
#include <iostream> #include <cmath> using namespace std; int main () { double point [10]; for(int i=0;i<=10;i++) { point[i]=exp(i/10); } for(int i=0;i<=10;i++) { cout<<point[i]; } return 0; }
Anonymous
For instance that 👆
Size of your array is 10 and you're accessing the 11th element that's your problem
Monday Morning
that worked. thanks..
Even if you replaced 10 with 10.0, this code will throw segmentation fault.
Anonymous
Change j<=10 to j<10
Anonymous
Size of your array is 10 and you're accessing the 11th element that's your problem
Yes in the condition you should make strictly less than 10 or start by I=1
Anonymous
What
I mentioned the correct way to make that condition in the loop
Monday Morning
Yes in the condition you should make strictly less than 10 or start by I=1
Can not start with 1. array indexing starts with 0;
Anonymous
I get it
Anonymous
He has another loop that's crossing array bounds I missed that
Anonymous
Can not start with 1. array indexing starts with 0;
Yes yes my bad ...only the condition needs to be changed
Chernykh
Hello everyone. Are there people who know how to work with compile time magic? I mean tupple, tails and so on. Can't find normal material (articles, books) and glad to someone can explain me
Lord P∆RTH
Hello
Imma
Please<graphics.h> Doesn't run on my code blocks Please what do I need to type to allow me to do graphics
Dima
Also you shouldn't use code blocks
it’s okay for a beginner
Imma
What error u got?
A red line stopping it from running
Girish Kumar
Please<graphics.h> Doesn't run on my code blocks Please what do I need to type to allow me to do graphics
graphics.h is part of Turbo C specific library. You can't use it CodeBlocks directly..
Dima
@unterumarmung it could be just a warn
Chernykh
A red line stopping it from running
Hmm, man, what written in this line?
Imma
Hmm, man, what written in this line?
Nothing but it doesn't run Like there's an error there
Chernykh
Nothing but it doesn't run Like there's an error there
Well, maybe screenshot? In another way it's simplest to use qt
Imma
Well, maybe screenshot? In another way it's simplest to use qt
Ok please I'll dm u for tutorials Hope u don't Mind?
Chernykh
Kk, let's private chat
İsmail
Hello friends. To make a mobile game application. Which software language do we prefer? C ++ or C #? Thank you.
Girish Kumar
I corrected if (head->next = head) to if (head->next == head) and it is worked fine with first append() call from main() function...
Girish Kumar
I'm using doubly circular linked list with Sentinel node. So here Sentinel node only works as head and tail pointer... Actually I wrote many different fragments of code to try in else. But none worked for me. I'll post here the best one which I tried last time.
Monday Morning
I agree. So what is the solution ? Can you think of something ?
PSAWS
yo
Monday Morning
But then I won't be able to use them as integers.
Monday Morning
So the problem isn't in reversing the number, yes ?
Monday Morning
In which topic do I have to study about this property of modulus operator ? I am surprised how come I never came across this stuff !!
Monday Morning
This makes sense (10^9)^10^9 can not be contained in unsigned long long
Faruk
A palindrome number containing 4 unique (unique, different) numbers is called the Palandöken Number. As it is known, the number read from the left and the right, in other words, equal to the opposite, is the palindrome number. The number 121 is not a Palandoken Number because there are 2 unique numbers used in this number. (1 and 2) On the other hand, the number 318121813 is a Palandoken Number because there are 4 unique numbers used in this number. (1, 2, 3 and 8)
Faruk
can you help me ?
Anonymous
can you help me ?
Do you want us to write code for you?
Anonymous
U telling me that 121 is not a palindrome?
Faruk
read carefully
Anonymous
So whats ur question?
Anonymous
A programme to generate palindromes?
Anonymous
Still dont get it
Anonymous
Ohh oke
Anonymous
Its simple do u want me to write ghe code for u?
Faruk
yes
Faruk
function
Anonymous
Pm me
Anonymous
if i provide functions for input_iterator_tag, forward_iterator_tag, and random_access_iterator_tag (no function for bidirectional_iterator_tag), does a call with a bidirectional iterator automatically call the forward_iterator_tag version?
0x1FE6C
Ok thanks
Anonymous
HELLO everyone
Anonymous
## Rules #pinned * You are not entitled to an answer, getting angry about not answered questions will get you warned. * Not checking your problem in google (or any other search engine) first will get you a warn. * Asking to solve an assignment/test/whatever without trying it first yourself will get you a warn or will get you BANNED. We won’t write a code for you, but we can push you forward and suggest something. * Before posting a long code snippet think twice and read the Resources section below. * No “best book” or “best youtube channel” requests, use /get cbook and /get cppbookguide chat commands. * No “best ide” requests, use /get ide chat command to see the suggestions. * Asking for something that is in the pinned message right after joining WILL GET YOU BANNED. * C/C++ discussion preffered (assembly also allowed), asking about other languages (or groups for other languages) right after joining will get you BANNED. * Reverse enginnering, hacking and related topics are allowed, but asking to hack facebook, instagram, etc. is NOT allowed. Also if you ask "how to become a hacker" and obviously have zero knowledge on anything related to that you may get warned or banned. * Legitimate requests for help on code and programming questions are welcome. A request is considered legitimate if it describes your problem, what you've done so far and what went wrong. Requests such as "write my program" or "do my homework" are never considered legitimate. Asking not legitimate questions will result in a warn or ban. See https://stackoverflow.com/help/mcve on how to write good questions. * Asking for book recommendations is ok, but "pls give pdf book" is not allowed, find books by yourself. Posting illegally copied books (or links to those books) is also not allowed and will get you BANNED. * Only English language is allowed, if you speak shitty English or don't understand anything in English YOU WILL BE BANNED. * A little bit of programming related memes, jokes, shitposting are allowed. * NSFW content (porn, nudity, etc.) is not allowed. * Spamming/advertising (job posts are also ads, so ask an admin before posting) will grant you a warning or an immediate ban if you do it right after joining. * Religion, politics and ideological topics are forbidden. * Long code snippets must be posted via a snippet website(links below), posting pictures of code and posting long snippets in the group is not allowed. * If you encounter a problem, while using dev C++ or turbo C/C++, you will not be helped, use another more modern IDE. * Don't post compiled executables, that is obviously a security risk. * Personal messages without asking beforehand are not allowed. * If you want to post a link or some article in this chat you will need an admin approval first ## Resources C/C++ group India: http://t.me/c_cpp_india About asking good questions: * [English](http://www.catb.org/esr/faqs/smart-questions.html) * [Translations](http://www.catb.org/esr/faqs/smart-questions.html#translations) For posting long code snippets: * [GitHub Gist](https://gist.github.com) * [Ubuntu Paste](https://paste.ubuntu.com/) * [Pastebin](https://pastebin.com) ## Reports If you notice any forbidden content, please use the /report command while responding to the offending post to report it to the admins.
May ask you
Dima
Dima
bruh
MOSAICPROSTUDIO
Hello guys
İsmail
For the mobile game app.. Wich one software language is good and prefer ? .. C++ or C# ?
lgat
Please give me recommended book for c++ advanced
Anonymous
Please give me recommended book for c++ advanced
Why do you think you need advanced?
Barak|ברק
Is c++ basically an "improved" version of c?
Illia
Hi! Can you recommend me book: multithreading in C/C++?
Anonymous
Is c++ basically an "improved" version of c?
It is not It's different language with different philosophy
Barak|ברק
Same for c#
Barak|ברק
?
Anonymous
C# is completely different
Anonymous
Same for c#
It got its basic philosophy from Java and started evolving separately and became a better language than Java
Anonymous
You can write C-style code in C++, but most probably it will be a bad code in C++ and normal code for C
Barak|ברק
And by philosophy you mean the purpose it was made for?
Mouqueer
a.exe file is not working How to fix this Please help
Anonymous
And by philosophy you mean the purpose it was made for?
By philosophy I mean mostly how you write and organize code in a language
Anonymous
A lot of languages have an idiomatic style of writing code. If you follow the style, your code looks cleaner and probably less error-prone
Anonymous
For example if you write a code in C++ with C style or C# style, the code will be considered bad because this languages have different idioms for writing code