Anonymous
General learning Python is good
Anonymous
Than C++
Anonymous
Gotcha
Avezy
I seldomly hear about applications with GUI completely written in python
Anonymous
You need not to much worry on great learning curve which is in C++
Avezy
In Web Development maybe with Django
Anonymous
Thank you guys.
Anonymous
:)
Francisco
Hello everyone! I've in plans to learn Pure C (Maybe some C++). Currently, I'm an Android developer. Have good knowledge in Java. Also, I know a bit of Python. I'm using Linux as my main operating system. I want something fast and simple because the overhead that we have in using Java is pretty big. I really need advice from people who are working with C, how to learn it better and more practical. There will be few points and I will really appreciate if you'll share any of your ideas about them. 1. I've heard a lot about that is better to use old C90 standard. Correct me if I'm wrong. 2. I'm interested in writing good quality code from the beginning, so I will appreciate any checkstyles or checkstyle checkers what people use. 3. Also, I have a question about what IDE is better to use. I've used CLion a bit and also used vim but without any additional plugins. 4. Probably I will start my learning by creating some game on SDL (probably second version). If it's a bad idea tell me why. P.S. Also if you have any information or ideas that are not about something in this list, share them, please. Thank you in advance.
I don't know who told you that old C90 is better, but don't do it. If you want to use C, use C11 (I think it's the last revision). But, if you're doing game development, just use C++, and the latest standar you can (C++17 or even C++20/2a if you want). But please, don't use old revisions of any language, and even less in a new project
Anonymous
Sounds like a job for a loop, I bet.
No, the question is we put 6 value in one array, and send it in [2][3] array.
Anonymous
Maybe nested loops then. 😆
Well yeah but how :/?
Jeremy
Read values from one array, check counter condition, loop through second array and set values
Jeremy
Unless I've done so much Python that I forget C++ rules.
Mihail
Hello everyone! I've in plans to learn Pure C (Maybe some C++). Currently, I'm an Android developer. Have good knowledge in Java. Also, I know a bit of Python. I'm using Linux as my main operating system. I want something fast and simple because the overhead that we have in using Java is pretty big. I really need advice from people who are working with C, how to learn it better and more practical. There will be few points and I will really appreciate if you'll share any of your ideas about them. 1. I've heard a lot about that is better to use old C90 standard. Correct me if I'm wrong. 2. I'm interested in writing good quality code from the beginning, so I will appreciate any checkstyles or checkstyle checkers what people use. 3. Also, I have a question about what IDE is better to use. I've used CLion a bit and also used vim but without any additional plugins. 4. Probably I will start my learning by creating some game on SDL (probably second version). If it's a bad idea tell me why. P.S. Also if you have any information or ideas that are not about something in this list, share them, please. Thank you in advance.
> I've heard a lot about that is better to use old C90 standard. Correct me if I'm wrong. well you're very very very wrong. yes there are these people who find it cool to hate on new features, but you'll just have to learn to ignore those. also if you're looking for anything game related C++ will likely be better (and for most things C++ would be better, so idk why you want to learn C, which is better than C++ only is select few cases). and for ide just use whatever suits you, CLion will work, so will vim (but some plug-ins would be handy)
joel
yes
Pavel
Yeah, I want to learn C. Then I realize how quickly something could go wrong with code that doesn't look problematic. It's not such a safe language, unless you learn from your mistakes and don't repeat them. If you can get through C, you can probably make it through most other things, right?
Well, languages are different, they use different concepts on the level of the language (classes, functional objects, coroutines, lazy evaluation). You can use some of such concepts in C as well, but it would be much harder as you need to implement them and be consistent, because there's no compiler to help you with this (because it cares only about C syntax). Usually, if you know C well, but know only C.. then you know only C.
Anonymous
can anyone help me to remove this error "runtime error: member access within null pointer of type 'struct ListNode'"
Francisco
Anonymous
can i pm?
Anonymous
or should i paste code here
Mihail
or should i paste code here
pastebin if it's long
Anonymous
32 lines
Pavel
BTW, they fixed this in C++17?
Anonymous
'''class Solution { public: ListNode* reverseBetween(ListNode* head, int m, int n) { ListNode *cur=head,*prev=head,*pre=head,*post=head; for(int i=0;i<m-2;i++) { prev=prev->next; } pre=prev->next; cur=pre->next; for(int i=m;i<n;i++) { if(post!=NULL) { post=cur->next;} cur->next=pre; pre=cur; cur=post; } prev->next=pre; for(int i=m;i<n;i++) { pre=pre->next; } pre->next=cur; return head; } };'''
Anonymous
C++ 17.... Means..?
Anonymous
Line 20: Char 4: runtime error: member access within null pointer of type 'struct ListNode' (solution.cpp)
Dima
People can’t run code these days 😕
Anonymous
Opps
Anonymous
Actually this was a question from leetcode
Pavel
Does it delete links to online compilers and pastebin too? :)
I_Interface
People can’t run code these days 😕
nah, they're trying write it on mobile 😂
Anonymous
It works fine in my compiler but giving an runtime error on their plateform
Anonymous
Does it delete links to online compilers and pastebin too? :)
So how should i share code beacuse bot is removing pastebin link
Mihail
Does it delete links to online compilers and pastebin too? :)
only in the first 24h, it's always been like this
Mihail
https://pastebin.com/5p3NQjwY
Mihail
here's the link
Mihail
but like i said that's not all your code
Mihail
https://pastebin.com/dze6vPE4
Dima
Lol. Can’t you see?
Anonymous
what ?
Dima
Anonymous
https://pastebin.com/dze6vPE4
this is complete code
Mihail
on which line was the error?
Anonymous
Line 20 char 4
Anonymous
Cur=pre->next
Mihail
that's not line 20 and the code compiles for me
Anonymous
But gives runtime error on leetcode plateform
Anonymous
I have shared question link also
Anonymous
Error is last code.. Pre = pre->next;
Anonymous
http://this.is-a-professional-domain.com/8V3z3AE.png
Anonymous
Somehow my texture has no color and look weird
Anonymous
nvm fixed it
Dima
Good job
Anonymous
Still got an issue tho that when the img has transparance it makes it go do crash
Anonymous
http://this.is-a-professional-domain.com/4cL4eHE.png
Anonymous
http://this.is-a-professional-domain.com/9H4zLnb.png
Dima
What the fuuu
Dima
it’s an assignment operator ‘=‘, you need equality operator ‘=='
Anonymous
wait wt
Anonymous
did i rlt...
I_Interface
lol
Anonymous
Whooops
Anonymous
NOPE
Anonymous
still vrash
I_Interface
Whooops
even VS marked it :D
Anonymous
http://this.is-a-professional-domain.com/6Uw92nX.png
Anonymous
Still that access violation
Dima
how do you read rgba files?
Anonymous
http://this.is-a-professional-domain.com/7N6zXP9.png
Anonymous
sbt
Anonymous
https://github.com/nothings/stb/blob/master/stb_image.h
Anonymous
stb*
Dima
hmm desired channels settings.. feels like it should be 4