Gnostic Trades |
Yep
Will it be any problem if I continue with C?
Manav
Javascript op😂
If you want to learn C++, stop finding excuses to compare it with C and just learn it. :)
Gnostic Trades |
Like less community support? Less problem solutions from online sites?
Anonymous
Gnostic Trades |
If you want to learn C++, stop finding excuses to compare it with C and just learn it. :)
I think I want to learn that. I have decided i will go with it
Manav
Like less community support? Less problem solutions from online sites?
The community support, well if you ask a question on stackoverflow or here. People will answer them
Anonymous
In my opinion i think c Is better than Cpp cuz cpp has different coding styles
Manav
I like the haskell syntax
Gnostic Trades |
Again confused 😵
Anonymous
Again confused 😵
Which high level language do u know?
Manav
Again confused 😵
Do you have to be told what to do every single thing? Just do what you want to do
Manav
Learning anything new will be helpful, 🤷‍♂️
Anonymous
different coding style doesn't make one better
Makes reading other open source code hard
Gnostic Trades |
Which high level language do u know?
Not any, I'm a 2nd year undergraduate studemt, don't have much exposer, i know python, javascript, somewhat c
Anonymous
documentation is important
Imagine working with someone with a different style
Gnostic Trades |
Thanks for you valuable opinion, I will do what ever suits my conditions.
Gnostic Trades |
Thanks again
dj
Imagine working with someone with a different style
🤔 c follows functional whereas c++ follows both functional and object oriented right
dj
Thanks again
A small advice, asking questions when you have fixed something on mind is not that good , i mean if you have decided and wont change it, then why ask :D
dj
as manav said, i think you have decided to go with C++
Manav
🤔 c follows functional whereas c++ follows both functional and object oriented right
I don't think so, both C and C++ don't have first class functions. Really essential for functional programming 🤔
dj
ah it is, then i meant procedural
Gnostic Trades |
A small advice, asking questions when you have fixed something on mind is not that good , i mean if you have decided and wont change it, then why ask :D
Sorry but things I got to know here like which language have more libraries that are helpful in C++,in which have to write less code and many more things I got to know here. And thanks to all for that
Pavel
procedural and functional are different ?
c is procedural, haskel is functional
Manav
procedural and functional are different ?
Yep, procedural is the top down approach as I know it. Like a list of instructions to do something you do the same when programming
Manav
If you code like when you can't have assignment statements. You'll largely follow functional programming.
Manav
C ++ follows bottom up approach right ?
Mostly yes, but it is kind of a multi paradigm language imo You can do OOP
dj
Mostly yes, but it is kind of a multi paradigm language imo You can do OOP
ah yes, btw now i understood that i am not familiar with functional programming
Manav
ah yes, btw now i understood that i am not familiar with functional programming
It has some very foreign concepts which makes your head spin for a while.
Manav
This is a good course on them, I feel nervous sharing it here in a C++ group but it is a very good resource to share: https://www.coursera.org/learn/programming-languages
Anonymous
Manav
@Indian1111111, here: https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list Btw I don't do programming related discussions on PMs so talk to me here if its C++ related
Pavel
Can you come up with an example of an object that is copyable but can't be movable? 🤔 I'm trying to imagine some realistic case and can't come up with one.
Pavel
Any object that doesn't have move constructor.
Yes, but my question is can there be a situation where you can't provide move constructor because it will screw up the logic. When copy won't.
Pavel
Ok there can be case when you can't do move chirper than the copy, but are there reasons that can actually affect the behavior?
Igor🇺🇦
Yes, but my question is can there be a situation where you can't provide move constructor because it will screw up the logic. When copy won't.
You may have an object that is identified by its address. Something like node in a list. If you move it - you break the list. Copy is fine though.
Pavel
You may have an object that is identified by its address. Something like node in a list. If you move it - you break the list. Copy is fine though.
Can't you then just copy the logic from copy constructor to move constructor (not change the moved-from object)?
Igor🇺🇦
Can't you then just copy the logic from copy constructor to move constructor (not change the moved-from object)?
If you move your node it will have a different address. Node that was pointing to it will point to some invalid address.
Pavel
If you move your node it will have a different address. Node that was pointing to it will point to some invalid address.
Ah, you mean if I make a move constructor for a node then the container itself can become movable and it can create problems?
Anonymous
hello
Igor🇺🇦
Ah, you mean if I make a move constructor for a node then the container itself can become movable and it can create problems?
Yes, it will "break logic". I know it's a contrived example, but still...
Vitalii
#define SIZE 5 .... scanf ("%d", &n); #if SIZE>n ... #endif Why it works no matter what I put into "n"? "n" should be only const meaning?
Anonymous
Mates, Is C++ an open source programming language?
Anonymous
I'm terribly sorry for silly question, but I haven't found C++ repository on github
Shvmtz
I'm terribly sorry for silly question, but I haven't found C++ repository on github
No, c++ is not an open source language. But some implementations of c++ like GNU C++(gcc) and Clang are open source.
Anonymous
Thanks
Sandeep kumar
Hi
Cool Guy
https://www.codechef.com/problems/COFI4001
Cool Guy
https://www.codechef.com/problems/COFI4001
Can anybody provide me pseudocode for this problem?
Anonymous
Thanks Rose,,
Anonymous
Can someone help me diferentiate,, call by value and call by reference in c programming
Iissoli
GUYS CAN YOU PLEASE HELP ME WITH AN EXERCISE???
Iissoli
Pls i don't know how to do it
Anonymous
Heya, so I have this code, and for some reason, append to map is fucking up without any noticeable causes
Anonymous
Yes
Printf("pliz do\n");
Anonymous
This is my method, and I can confirm this is where the problem is : template <class K, class V> void Map<K, V>::append(const K& k, const V& v) { cout << " Appending : " << k << " : " << v << endl; if(size == 0){ cout << "if" << endl; size++; A1 = new K[size]; A2 = new V[size]; A1[0] = k; A2[0] = v; } else { cout << "else" << endl; size++; A1[size-1] = k; A2[size-1] = v; } cout << A1[size-1]; cout << A2[size-1] << endl << endl; }
Anonymous
> Enrolling Student : 0 to Course 0 Appending : 0 : N if 0N > Enrolling Student : 0 to Course 5 Appending : 5 : N else 5N > Enrolling Student : 0 to Course 3 Appending : 3 : N else 5111811N ^^^^^^^ (should be 3) > Enrolling Student : 0 to Course 11 Appending : 11 : N else 11N > Enrolling Student : 0 to Course 4 Appending : 4 : N else 4N
Anonymous
can anyone guide me as to what I did wrong?
Anonymous
why my code just randomly decides to add integers which have no relation whatsoever?
Xudoyberdi
Xudoyberdi
I will explain
Anonymous
good morning everyone, someone at 10.00 mo could help with C ++?
Anonymous
I will explain
^^^ me too?