Patrice
Freecodecamp on YouTube has great C++ & Python tutorials.
Dm
So plz can anyone help me
Just Google C++ roadmap and you will find GitHub with really big bunch of information
jaebie
how to have a non-recursive solution for fibonacci in c++
Ludovic 'Archivist'
how to have a non-recursive solution for fibonacci in c++
I'll give it to you in the wrong language, do the translation yourself: proc Fibonacci(n: int): int = var first = 0 second = 1   for i in 0 .. <n: swap first, second second += first   result = first
Ludovic 'Archivist'
`` 🇫🇷 ;; ce serai ta blonde ce soir, si c'est ce que tu aimes
Ludovic 'Archivist'
(I don't know anything about nim BTW, this is some copy-paste)
Dm
It is nim
Ow no. I spent lots lite to work with it hah
Ludovic 'Archivist'
I chose to send it in nim because it is close enough in terms of paradigm but far enough in terms of syntax. Looks easy enough tho (but I hate indent based languages with a passion)
Danial
Hey people dose enybidyknows a good book recommendation wich that book have exercises and problems to solve?! And answer too! And explanation! I will be thsnkful!
Ludovic 'Archivist'
I need to work out some sort of exercise list someday
the best for everyone
#include <stdio.h> #include <math.h> int getArmstrongNumber(int number); int isArmstrong(int ); int getArmstrongNumber(int number) { int count=0; while(number>0 ) { number=number/10; count++; } return count ; } int isArmstrong(int m){ int sum = 0; int count= getArmstrongNumber(m); int temp=m; while (0>m){ sum = sum+ pow(m%10,count); // it should be two argument الأس والذي هو الرقم الأساسي مع الأس m=m/10; } return temp == sum ; } int main() { // printf("%d /n", getArmstrongNumber(1234 == 4)); for (int i = 0; i <50000 ; ++i) { if(isArmstrong(i)) printf("%d is Armstrong number \n",i); } }
the best for everyone
what is the mistake in this
olli
what is the mistake in this
while (0>m){ this doesn't look right, did you mean while(m > 0)? Also, getArmstrongNumber seems like a bad name to get the number of digits of a number in base 10.
ɛ n h ᴀ n c ɛ ґ 🧟‍♂️
class SinglyLinkedList { private: struct Node{ int Value; int key; Node *next; }; Node *Head; }; I have this code in a header file and I’m trying to return a pointer of type Node with a function in my implementation file but it doesn’t seem to work (the code works fine if i implement it in the header file). Error says Node doesn’t name a type Can someone explain to me why it isn’t working?
labyrinth
if b, c inherit baseA and d inherits both b and c, is there a way to avoid ambiguity that arise from members in baseA?
Anonymous
If you can't do that, then specifically qualify the member in baseA using b:: or c:: to specify the path in which it should be resolved
labyrinth
If you can't do that, then specifically qualify the member in baseA using b:: or c:: to specify the path in which it should be resolved
what if i were to use a member in baseA, I think i tried that but vscode gave me warning of ambiguity
labyrinth
oh i tried again it worked
labyrinth
If you can't do that, then specifically qualify the member in baseA using b:: or c:: to specify the path in which it should be resolved
can i get away with using member = b::member? i still got warning but i think it should compile
jaebie
How to create a c++ program where you need to swap two numbers in different variables
jaebie
How to create a c++ program where there is a functiom that will calculate the distance between two points
klimi
How to create a c++ program where you need to swap two numbers in different variables
Think about the task in head what needs to be done and how it could be done. Open your editor. Write the code. Try running it. If it runs correctly, congratulations, if not, go through the code and check for any mistakes. if that doesn't help, look into your design if you haven't overlooked something.
ɛ n h ᴀ n c ɛ ґ 🧟‍♂️
ɛ n h ᴀ n c ɛ ґ 🧟‍♂️
try SinglyLinkedList::Node
Node was not declared in this scope
ɛ n h ᴀ n c ɛ ґ 🧟‍♂️
try SinglyLinkedList::Node
SinglyLinkedList::Node SinglyLinkedList::*chechNodeExists(Node *obj){ Node *temp = nullptr; Node *ptr = Head; while(ptr){ if (ptr->key == obj->key){ temp = ptr; } ptr = ptr->next; } return temp; }
mj12
Anurag
/rules
Anurag
Hello, I Need To Improve my C language skills.. Are There Any Beginner Pet Projects i can Do? thanks
Anurag
Software renderer, neural network, block chain
That Sounds Too Advanced 😨... But Don't These Require Multiple Devs
Компьютер
That Sounds Too Advanced 😨... But Don't These Require Multiple Devs
There are tutorials for each of these. 1 dev is enough.
Компьютер
Anurag
Sure
just.. wondering have you done.. any of these projects?
Anurag
Yes
github link pls?
Dima
this is suspicious
mito
github link pls?
lol, I hope you don't copy and paste.
AZHAR
can i get c++ and c from beggining
AZHAR
notes and easy way to learn
Dumb
Software renderer, neural network, block chain
I think those are huge for a beginner just an opinion
Dumb
maybe something intermediate
Anurag
no
what..😨 but that pro coder said i can
Anurag
I think those are huge for a beginner just an opinion
can u help out?😅... what passes as intermediate
Dima
no “pro coder” exists
Anurag
no “pro coder” exists
most of the admins here are PROS
Dumb
can u help out?😅... what passes as intermediate
you could check some instagram pages which talks about c and c++ programming they often post some "idea projects" for any coding level
Anurag
Dumb
I didn't code in C or C++ for so long, I could not tell you clearly what's a good or bad project
Dumb
Instagram.. no instagram is bad.. only distraction
ofc but with some good feed and only a 1 min read time it could help a lot
Dumb
In C you can make a file parser or, if you like harder challenges, a very simple Operative System I'd go for that way
Anurag
Dumb
Operation System yes that is good
you could work with pointers and memory management as well it ould be interesting And maybe could be better than some commercialized one 🫢
Anurag
you could work with pointers and memory management as well it ould be interesting And maybe could be better than some commercialized one 🫢
yes it does sound intresting . .. i don't know pointers and mem management... properly.. but I'll learn using this project
the best for everyone
sorry the while loop I meant
the best for everyone
thank you so much for reminding me
the best for everyone
sometimes like those mistakes cant get them the compiler even the iintellj
s
/rules
/
Hi i need help