Anonymous
you can make a webserver in prolog
Anonymous
so you should theoritically be able to make a torrent client
Anonymous
key word is theoritically
Vladimir
I had a prolog class in the university and what I learnt is that I totally don't like this language
Anonymous
i love prolog
Vladimir
Or may be just bad teaching
Anonymous
well logic programming
Anonymous
well logic programming
i try to involve this in every interview
Anonymous
in some way
Vladimir
Prolog is the only lang with 'logic programming' paradigm?
Anonymous
nope
Vladimir
Is it worth researching?
Anonymous
there are a few
Vladimir
Now I'm good with imperative C style
Vladimir
What's pros of 'logic style'?
Ravi
What is #pragma pack for structure in c
Jussi
Otherwise it will get aligned by cpu register width
Jussi
(Optimized)
Ravi
Means there no chances to weaste of bytes
Daniele°
What is #pragma pack for structure in c
http://www.catb.org/esr/structure-packing/
Anonymous
Can anyone help me with an program Question is suppose there is an array of a[5]
Anonymous
As {10,20,30,40,50}
Anonymous
Print a pattern which should have 30 as addition of two number from array
Anonymous
Including 30 too
Anonymous
what does it mean? like 10 20 30 ?
Rashi
Hey , can anyone tell me what does &arr+1 refer to where arr is an array name in C ... Like I have something like this - int arr[5]={1,2,3,4,5}; printf("%u %u",arr+1,&arr+1); I know arr+1 will print base address of 2nd element (i.e. index 1 element) , but what about &arr+1?
detergentTikiya
arr is nothing but a pointer to an array of 5
detergentTikiya
so, &arr+1 will point to the next array of 5
Link
how to solve this question
kλletaa
ching chong
detergentTikiya
kr4T0X
Which modern IDE should I use for C programes instead of TURBO C++?
klimi
Which modern IDE should I use for C programes instead of TURBO C++?
Some normal editor or ide. Anything is better than turbo cpp
klimi
Personally I use emacs
klimi
Msvc :/
klimi
Notepad++ :)
If you are on windows...
Zodiak
If you are on windows...
There is some editor, but I cant remember the name of it... For linux
András
Qtcreator
Elnee
Vim 😀
András
Visual Studio
Nonono, i think it's the worst IDE for c++
klimi
Okay, I think its enough
András
klimi
Move to #ot for further discussion
kr4T0X
Not for C++ but for C.
András
Zodiak
For me its good
klimi
#ot?
#ot
András
For me its good
When vs just stop response, or do not open the file just because file is already opened(when everything is closed), etc.
Zodiak
When vs just stop response, or do not open the file just because file is already opened(when everything is closed), etc.
If you set up everything correctly, or at least you will save the project every 10-20 minutes (if the search for such an error does not help, this is the only solution). But I have no troubles with VS.
András
If you set up everything correctly, or at least you will save the project every 10-20 minutes (if the search for such an error does not help, this is the only solution). But I have no troubles with VS.
Oh, so IDE, that is created for easy working with any language is so hard to setup? Interesting. Okay, let's imagine that I set up everything correctly, everything work perfect, but then u have to meet msvc(if you haven't choosed another compiler as default). After that u slowly decide to shoot your head becouse it's painful
Spark | fosslife.com
Sirom HDEV identity theft is not a joke 😂
Spark | fosslife.com
no? why would I follow you I don't even know you
Spark | fosslife.com
are you a rust developer?
Spark | fosslife.com
awesome! nice to meet you
Anonymous
What is purpose of do while statement ? I know what it does but have to write answer in my assignment and couldn't write well so if anyone can help...... Thanks in advance
Vladimir
When you need to do something at least once before loop
L
/get 'c++_isnt_c_with_classes'
L
/get c++_isnt_c_with_classes
L
/get cpp
L
/get 'c++_isnt_c_with_classes'
Why isn't one working?😅🤔
L
/get reference-the-standard
Anonymous
What are types of error do function prototype help to prevent?
Obakeng
Hi guys, I have a project and I need to sort data, where do I start to tackle a project like this?
klimi
That hurts my eyes
klimi
I'm in good mood so i wont warn you. But for your own safety read the rules again
Ибраги́м
https://www.reddit.com/r/cpp/comments/cfk9de/201907_cologne_iso_c_committee_trip_report_the/
Vipul
Given an array of n positive integers, for all i except when i= t, A[i]=i, and A[t]=t+1;find the value of t. (Not using brute force approach i.e O(n) ). Example Let 8 be the number of integers in an array so and let t=6 so array will be {0,1,2,3,4,5,7,7} . Now how to find t using binary search. I am confused plz help or tell me the approach