...
That's pretty cool! :D
i guess you're looking for a project to do with C++, let me give you a few simple suggestions 1.don't be afraid to add new libraries to your project 2.if you are going to make a game engine or a game, I recommend Box2D in physics, a graphics library such as SDL or raylib will help you(for 2d)
Nuel
Please can someone suggest the best C programming course across the globe on any platform
NAITRO
Hi everyone.I have an issue about termux When i make an executable file using clang -o it creates a program but I can't run it.How to solve this problem?
harmony5 🇺🇳 ⌤
Any error messages?show how you're trying to run it
klimi
bash: ./kral: Permission denied Like this
What's the permissions on it?
Uma Mahesh
Hi
Ziky
Hi everyone.I have an issue about termux When i make an executable file using clang -o it creates a program but I can't run it.How to solve this problem?
1) open https://duckduckgo.com/ 2) open the menu in top right corener of page and select AI chat 3) click on get started 4) pick any model (llama works best for me so far) 5) Read agrement and agree to if if you are ok with it 6) Paste the same what you typed here to the chat 7) Read instant answer but make sure you understand each command it recommends to you using regular search engine.
Agyengo
Hi
Agyengo
I'm new here How do I start c++
Rose
I'm new here How do I start c++
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
klimi
It is Android lmao
Yes. What are the permissions on the file?
Yes. What are the permissions on the file?
Only memory here and it is allowed
klimi
Only memory here and it is allowed
Where "here"?
What is allowed?
You mean app permissions?
klimi
You mean app permissions?
The binary that you are trying to run
Rose
User Deepankar has 1/2 warnings; be careful! Reason: ad
The binary that you are trying to run
Idk but it is in telephone memory not sd or external card
klimi
Idk but it is in telephone memory not sd or external card
Well if you won't tell me this, I am afraid I cannot help much interactively. I would advice you to check the permissions of the binary and the file type (most importantly the architecture)
eax
bash: ./kral: Permission denied Like this
chmod +x kral && ./kral
eax
Still the same error
have you given termux storage permissions? i don't remember the name of the command, but try to run termux-storage, if it's not it, type termux- and click tab you'll find a command with a kinda similar name, execute that and enable the permission or just go to your device's settings and enable it manually for termux if that doesn't work, show klimi the permissions on the binary, you can just use ls -la and send a screenshot
y3m1sh
Is there C# channel where I can ask questions for c#
Baron
{Not Sponsored} https://lowlevel.academy/pricing Summer sale on Low level Academy!
NXTGEN
/kral
Rnlove
Hi
Rnlove
Write a code to find an array of elements n=5(12,22,43,45,47) Output index no 2 Write code plz answer
Rnlove
Size of array is n
Rnlove
Answer is 43
Rnlove
Plz show the code?
Sparta
Hey
Sparta
Can I create an application using C++
Niraj
Yes right answer 43
...
Can I create an application using C++
Do you know that? , you can
Sparta
Can you explain how please
...
Can you explain how please
1. Download Dev C++ 2. Create a C++ project
...
Can you explain how please
Are you new in Programming?
Sparta
I just have a little concepts in programming
...
I just have a little concepts in programming
Just Download Dev C++ and Create a C++ project and Watch The Cherno C++ Tutorial series
Sparta
Fine,, thank you
...
Fine,, thank you
You are welcome.
Chat Boss
Read the pinned message regarding homework. https://t.me/programminginc/453966
harmony5 🇺🇳 ⌤
1. Download Dev C++ 2. Create a C++ project
https://t.me/cpp20programming/190
cout<<"Vikas Singh";
Can anyone help me or give some hint how can i count total number of set bits in given number ?😿without right shifting one by one and counting
harmony5 🇺🇳 ⌤
Top results from simple google search: https://stackoverflow.com/questions/12171584/what-is-the-fastest-way-to-count-set-bits-in-uint32 https://stackoverflow.com/questions/109023/count-the-number-of-set-bits-in-a-32-bit-integer https://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetNaive
Rose
Purge complete.
klimi
Programming
Mara
Lol
Uma Mahesh
C++ programming in language is the
Uma Mahesh
Is that converted by the
sameer
can any have c++ projects
Ali
/start@MissRose_bot
Rose
/start@MissRose_bot
Heya :) PM me if you have any questions on how to use me!
Never Spam Bot
Axel Simon sent multiple messages that looks like a spam. Write something about yourself below this message. If I see that you are human, your messages will no longer be deleted. Spam deleted in this group: 1131 See spam? Quote it and send /spam
Shady
What would be the best approach to implement the following: You have to take a whole number input for the number of elements (N) in an integer array, the number of inputs (not pre-specified) given to be entered as elements of the array can be greater or less than N and are separated by a newline character. If the number of inputs isn&amp;#39;t the same as N, then print &amp;quot;Wrong Input&amp;quot; otherwise print the array. I&amp;#39;m not sure how I can check for the number of inputs separated by a newline character without causing the program to hault when too few inputs have been entered. If I check for inputs beyond N number of inputs and the number of inputs turns out to be less than that the program that keeps waiting for that input forever. Is there a way to like check for extra inputs but if there&amp;#39;s not there then to make the program continue executing? Program should ideally not use any special libraries as the inputs will be coming from standard io stream.
Shady
So I can&#39;t expect any extra \n characters
Shady
Yeah that&#39;s the thing, I can&#39;t control the user. The input would be coming from automated tests.
I could add a timer to the input function but the implementation for that seems a bit too excessive
Pavel
Yeah that&#39;s the thing, I can&#39;t control the user. The input would be coming from automated tests.
Ah, well, then I guess your stream will be closed I don&#39;t remember how to check for that properly (I remember it is tricky) but it is basically similar to reading from a file stream. It either related to std::cin.eof() or to std::getline(std::cin, line) returning false
Pavel
But again, I don&#39;t remember how to do it the proper way
Pavel
Assuming it is C++ you&#39;re talking about
Never Spam Bot
Chidera Emmanuel is now approved by the group admin and can send messages without any restrictions Program received signal SIGSEGV, Segmentation fault. 0x000055555555519e in main () Internet says , that its a trouble about allocate memory , but how i can change code for allocate memory? #include &amp;lt;stdio.h&amp;gt; int main(){ int *array_c=NULL,c,i,ce; i=0; while((c=getchar())!=EOF){ array_c[i++]=c; } for (ce=0;ce&amp;lt;i;ce++){ printf(&amp;quot;Yep: %d\n&amp;quot;,array_c[ce]); }} See spam? Quote it and send /spam
Pavel
Chidera Emmanuel is now approved by the group admin and can send messages without any restrictions Program received signal SIGSEGV, Segmentation fault. 0x000055555555519e in main () Internet says , that its a trouble about allocate memory , but how i can change code for allocate memory? #include &amp;lt;stdio.h&amp;gt; int main(){ int *array_c=NULL,c,i,ce; i=0; while((c=getchar())!=EOF){ array_c[i++]=c; } for (ce=0;ce&amp;lt;i;ce++){ printf(&amp;quot;Yep: %d\n&amp;quot;,array_c[ce]); }} See spam? Quote it and send /spam
My Ws I see that you address elements of an array, but your array pointer is nullptr (basically telling that there&#39;s no array to be addressed). You can create an array on the stack and address into it. int myArrayOnStack[200]; array_c = &amp;myArrayOnStack; Or you can allocate an array dynamically, but then you need to make sure to deallocate it after. In C: https://www.geeksforgeeks.org/dynamic-memory-allocation-in-c-using-malloc-calloc-free-and-realloc/ In C++: https://www.geeksforgeeks.org/how-to-dynamically-allocate-an-array-in-cpp/ Also in C++ there&#39;s std::vector that would take care of memory allocations for you and will let you concentrate more on the app logic. Specifically in this case when you may not know the size that you need in advance
Lineace
May I post bounty missions here?
Rose
User Jh has 1/2 warnings; be careful! Reason: offtop
Pavel
so i cant create undefiend size array?
You can allocate a specific amount of memory (memory for a specific amount of elements), then when you reach that limit and need more, you would need to allocate more memory, copy your data to the new memory and then deallocate the old memory (or use realloc in C). It is what std::vector does under the hood, whenever you push_back into a std::vector, it checks whether there&#39;s enough memory preallocated to fit one more element, and if there&#39;s not then it increases the size of the buffer to fit more elements (usually grows x2 of the previous size). That&#39;s also why iterators to std::vector can be invalidated on insertion/push_back, because if the growth of the buffer happens, then an old iterator would point to some old memory (that is already deallocated), meanwhile the element would be already in the memory of the new bigger buffer.
...
@K11M1 Do you know Dev C++ 6?
...
In the Dev C ++ 6 version, the quality of the user interface has been improved, and the latest version of gcc has been added, making the code helper high-quality