Artöm
Look, without profiling you should not think about it this far
Artöm
I disagree with first part
Brow
Geany is a good editor too
Artöm
I don't see any difference
Artöm
Where's the diiference between f(whatever); and lambda_1.operator()(whatever); ?
Daniel
Is there anyone having a error that’s unsupported 16bits. When running code lock
Anonymous
There is no, I think without captures assembly is the same
Artöm
How's avx affected by being a free function or a member function? Do you have a link to dive into?
Artöm
Thanks
Anonymous
Boys many thanks
Anonymous
I will watch the video, and for lambda, yes easy is better...
B.ı.b
✋ hello #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> typedef struct{ double x; double y; double z; } Vector; double dot_product(const Vector v1, const Vector v2) { double dot; dot=(v1.x*v2.x)+(v1.y*v2.y)+(v1.z*v2.z); return dot; } double angle(const Vector v1, const Vector v2) { } int main () { Vector v1 = {1, 2, 2}, v2 = {-1, 0, 2}, v3 = {0, 0, 1}; double k = 2; print_vector(cross_product(v1, v2)); printf("| v1 | = %.2lf\n", norm(v1)); printf("angle(v1, v2) = %.2lf\n", angle(v1, v2)); } I have this piece of code how can I write this double angle function ? How can I use the value of double dot_product function in the double angle function ?can you help me?
B.ı.b
B.ı.b
I dont know how can use they together . Im beginner 😌
B.ı.b
thank you for your help . can you recommend me any source it has strong examples and istructive? I usually encounter simple examples
B.ı.b
thanks a lot ☺️😇😇
Anonymous
How to return longest palindrome string in a word enter by user can anyone explain me the logic?
Google up Manacher’s algorithm if you in linear time. else you can try expand from center method which you find in leetcode as well
Anonymous
If lambda has no capture there's no overhead
Anonymous
Same here, goes tangential to my head, I prefer using expansion from center which is quadratic in complexity but saves my d-days.
Anonymous
Compilers are smart enough to inline them im most cases
Anonymous
Indeed
Anonymous
Yes
LM
Ping
Dima
Packet loss: 100%
Dima
format your code please or use pastebin
Dima
which error?
klimi
show command what you use for compile
klimi
uh you use iostream which is c++ library and yet you write that you want C programe... you will have to use C libraries if you want your code to be C
Dima
@K11M1 would take a care?:)
Anonymous
No
klimi
ill try
klimi
Copyright © 2013 by Pearson Education, Inc. All rights reserved. Printed in the United States of America. This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. To obtain permission to use material from this work, please submit a written request to Pearson Education, Inc., Permissions Department, One Lake Street, Upper Saddle River, New Jersey 07458, or you may fax your request to (201) 236-3290.
klimi
i wont be able to compile your C code
klimi
@K11M1 would take a care?:)
result: pirated copyrighted book
Dima
result: pirated copyrighted book
Rest in pepperoni 🍕
Dima
Agreed
klimi
i download books when i can c: and i don't break laws... also i dont redistribute so no copyright infrigement
Asad
At least, he did not try to sell it. Thanks
Dima
At least, he did not try to sell it. Thanks
That’s slavic and Indian manner lol
Miraç
Miraç
How can i solve this my project is must be C
klimi
@neko_cpp you have some work here to do
Dima
/warn read the rules
Anonymous
Ok no problem
YK Y
Anyone have done that problem rat in maze?
YK Y
I've some doubt.. If anyone have done this problem!
Anonymous
Which one? What do you mean?
the ones where they were selling a thinkpad or something
Asad
Any book suggestions for Data Structures in C?
Asad
/get cbook
Dima
#ot
Siddhant
sorry for going ot
Dima
/blue_Text_must_click
Dima
/I_am_silly
Anonymous
/blue_Text_must_click
klimi
/I_am_silly
Anonymous
Anonymous
🐢
Hello everyone. Have a nice day!
Dima
welcome!
Anonymous
Hello! I need replace method in C. I think that it should be smth like this char * replaceWord(const char *str, const char *oldWord, const char *newWord); How i can implement it? I didn`t find anything in google
Anonymous
Hi
Anonymous
Ok
Dima
lol
Dima
@K11M1 ?
klimi
idk
Dima
retards be like ‘okay.. *posted again*'
🐢
Hello i have a question I am doing my homework about first 100 Fibonacci series with using arrays. But even if I use long long I can't see the all digits. What should i do to see more than long long's digits
Ammar
Can it be shown?
🐢
Can it be shown?
354224848179261915075 this is the number i should print and I think ull isn't enough right?
Anonymous
354224848179261915075 this is the number i should print and I think ull isn't enough right?
floor (log of x to base b) + 1 is the number of digits you need to represent x in base b
Anonymous
in your case it's 69, nice.
Igor🇺🇦
Can it be shown?
It's better to use double for such huge numbers. You don't need it to be exact.
Anonymous
can I make isalpha as #define ?
Francisco
Anonymous
#define isAlpha(c) ((('a' <= (c)) && ((c) <= 'z')) || (('A' <= (c)) && ((c) <= 'Z')))
Anonymous
is it correct ?