Barak|ברק
Is there any place that has those idioms organized well for learning ?
Евгений
Yes. If you will search "Clean Code c++", there should be books about it
Anonymous
/unmute @amin_kzdn
Anonymous
Ok
It's not for you
Anonymous
Output please
Shvmtz
Awsm Thanks
Anonymous
#include <stdio.h> int main() { int a= -1,b = -a; int x,y; x = (a> 0) && (b < 0) || (a< 0) && (b > 0); y = (a<= 0) || (b >= 0) && (a>= 0) || (b <= 0); printf("%d\n",x == y); return 0; }
Anonymous
Output please
Raven49
What is wrong with line 13 ? X is a float value
Barak|ברק
Does learning computer science theory is necessary for writing good code?
noop
What is wrong with line 13 ? X is a float value
modulo(%) is not applicable to float and double numbers.
Barak|ברק
Thanks danya, I went through some job posts and it seems that not all of them asks for a degree but they all want a lot of experience, how a self taught can get hired this way?
Anonymous
okay. thanks
Somaly
Hello guys I’d like to ask if there’s anyway way of printing the title which isn’t matched to the title of the array? I’ve got two text files.The title which is available for the order works fine but when I add the else statement everything just mess up. Thanks.
Anonymous
Hı can o ask onu question
Anonymous
1-Search for letters or words in the file and find out how many. 2-Replace one letter or word in the file with another letter or word. 3-Printing the contents of one file "in reverse and capital letters" to another file. 4-Find how many times each letter or word appears in the file, and sort it from very low to low. 5-Encryption of the file, decryption. 6-View file 7- Exit. Note: Prepare using functions, pointers, dynamic array and filing (STRTOK function).
Anonymous
Please help me
Chernykh
It is not but it helps
Don't agree, if u write code on c++ computer science is necessary
noop
Then how to write it
in c: include math.h and use remainder function in c++: include cmath and use std::fmod function
Girish Kumar
Hi, as you said, I modified append() function. After all append() calls from main() functon, the printList() function call should output 100 2 3 500 5. But it is giving output seg fault. As per my understanding I wrote code correctly. The latest code is in below link. If possible please let me know where I made a mistake. I added comments for Sentinel node in code. https://paste.ubuntu.com/p/PWPRGNz2rd/
Raven49
in c: include math.h and use remainder function in c++: include cmath and use std::fmod function
Please tell the exact statement in c I don't know how to use the remainder function
Chernykh
And why is that?
Because this's C++, not Java or C#. This language is about low level mechanisms as C but unlike to C give u instruments to make abstractions - OOP. Without knowledge and understanding computer science u can't programming on C++ effectively and also can make more mistakes in ur code which 'll be harder to fix by own.
Anonymous
Because this's C++, not Java or C#. This language is about low level mechanisms as C but unlike to C give u instruments to make abstractions - OOP. Without knowledge and understanding computer science u can't programming on C++ effectively and also can make more mistakes in ur code which 'll be harder to fix by own.
1) Object-Oriented Programming is not the only language feature to write abstractions in C++ 2) Object Oriented Programming is main language feature to make abstractions in C# or Java 3) Object Oriented is not such a hard concept to learn without taking CS classes 4) You can do a lot of low level stuff in C# (pointers, SSE/AVX operations)
Anonymous
All C++ knowledge I have I didn't get from my university I learnt myself
Anonymous
Of course CS classes can help to write better C++ code and understand how it works better
Anonymous
But it can be learnt without university
Anonymous
It's better to have some CS knowledge to write a better code (like Discrete math)
Anonymous
But again it can be learnt individually
Chernykh
Anonymous
But Java 'n C# is VM dependent and if there's not JIT this two 'll be very slow
C# Mono compiler uses LLVM as C++ clang compiler as a head of time compiler and also have JIT compiler.. so in some cases it can be faster than C++ :) Not in general case sure
Chernykh
I'm fully agree
Chernykh
United Independent Governments
Chernykh
UIG*
Anonymous
It is called CIS in English
Chernykh
U've got what I'm talking about :)
Anonymous
Because most of universities in UNG are bullshits
I do not like this statement If you want to learn, you'll get knowledge in the world worse uni
Barak|ברק
All these concepts you guys speak about, like llvm and stuff , you learned from cs classes?
Chernykh
Chernykh
You didn't provide ANY reason why :)
1) Mistakes. 2) If u don't understand what are u doing u can't write code effectively
Barak|ברק
Anyone looking for a student 😐
Anonymous
1) What mistakes? 2) You can understand what you're writing without CS classes :)
Chernykh
1) What mistakes? 2) You can understand what you're writing without CS classes :)
1) Memory management, if u don't know what is mostly use runtime time (what?) how u can write code effectively
Chernykh
For example, u implement the move function (or allocate, or copy)
Chernykh
And do one byte operation by interation instead of cast pointer to 4 or 8 byte in parallel maping memory as it do OS
Chernykh
But CS knowledge is necessary here, I'm talking about it
Chernykh
Everything you are talking about can be learnt without CS classes
Without classes of course can be learnt anything
Barak|ברק
Like ?
I won't learn cs in University because where I live it's too expensive but I really want to learn,it's very hard to sort your learning map without any advices
Anonymous
They have a lot of learning materials
Anonymous
The topic is closed now
noop
Please tell the exact statement in c I don't know how to use the remainder function
#include <stdio.h> #include <math.h> main() { double x=2.5, y=1.1; printf("rem:%f\n", remainder(x, y)); return 0; }
Asdew
%s/remainder/fmod
I think you're not supposed to put a '%' there.
Anonymous
Hii guys
Asdew
Well, hii to to you, too!
Anonymous
Hi, does anyone know any good libraries for neural networks? For C++
Serenity
Is it possible to initialize an integer in Hexa or binary base ?
Serenity
For instance int x = 0xAF
Serenity
or int y = 0b110101011
Anonymous
#include <stdio.h> int main() { int a= -1,b = -a; int x,y; x = (a> 0) && (b < 0) || (a< 0) && (b > 0); y = (a<= 0) || (b >= 0) && (a>= 0) || (b <= 0); printf("%d\n",x == y); return 0; }
Anonymous
Anybody can explain it plz