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
Shvmtz
Anonymous
Anonymous
Anonymous
Anonymous
/unmute @amin_kzdn
Shvmtz
Anonymous
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?
Anonymous
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
Anonymous
Raven49
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
noop
Then how to write it
in c: include math.h and use remainder function
in c++: include cmath and use std::fmod function
Barak|ברק
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
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
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
Chernykh
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
Chernykh
Chernykh
I'm fully agree
Anonymous
Chernykh
United Independent Governments
Chernykh
UIG*
Anonymous
It is called CIS in English
Chernykh
U've got what I'm talking about :)
Chernykh
Barak|ברק
All these concepts you guys speak about, like llvm and stuff , you learned from cs classes?
Anonymous
Chernykh
Anonymous
Barak|ברק
Anyone looking for a student 😐
Anonymous
1) What mistakes?
2) You can understand what you're writing without CS classes :)
Chernykh
For example, u implement the move function (or allocate, or copy)
Lord P∆RTH
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
Anonymous
Chernykh
But CS knowledge is necessary here, I'm talking about it
Chernykh
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
Anonymous
They have a lot of learning materials
Anonymous
The topic is closed now
Anonymous
Lord P∆RTH
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