Ludovic 'Archivist'
how it count?
Code units of the form 0b01xxxxxx are continuations of a code point representation, so it counts every other code units
Prince Of Persia
(*s++ & 0xc0) != 0x80 if this true it mean it's first of a utf-8 char yes?
Ludovic 'Archivist'
Yes
Prince Of Persia
thank you
Ludovic 'Archivist'
(*s++ & 0xc0) != 0x80 if this true it mean it's first of a utf-8 char yes?
For more details on utf8, you may want to look at this implementation a friend of mine made: https://github.com/Emil-Jarosz/CppUnicode/blob/main/include/bigj/unicode/utf8.hpp
Prince Of Persia
thank you a lot I should see it
mov $22, %rax
Do you know a bit of assembly to check a code I've written?
mov $22, %rax
https://paste.ubuntu.com/p/t59cnMkYvv/ It causes "segmentation fault"... do you know why?
mov $22, %rax
Do you know a bit of assembly to check a code I've written?
If you don't, could you tell me if there's a group done on purpose?
数学の恋人
If you don't, could you tell me if there's a group done on purpose?
I know a group, but I can't post the link here as I'll be warned
数学の恋人
mov $22, %rax
thank you
Prince Of Persia
why clion is slow after including boost libraries?
Alex
maybe because of heavy indexing
Prince Of Persia
Alex
yes but how to fix?
disable indexing
Prince Of Persia
is there any way??
Prince Of Persia
disable indexing
so no reason to use clion after doing this
Alex
maybe its possible to disable it for boost
Alex
I don`t use clion
Prince Of Persia
I don`t use clion
can you say what you use?
Prince Of Persia
I will switch from clion
Alex
emacs, not sure is the best option to switch from clion
Alex
however its fast, but I don`t use heavy index
Prince Of Persia
who have know a good ide for c/c++?
mov $22, %rax
who have know a good ide for c/c++?
visual studio or visual studio code
Alex
visual studio or visual studio code
I am not sure this is faster than clion
mov $22, %rax
I am not sure this is faster than clion
visual studio code is surely faster
Prince Of Persia
visual studio or visual studio code
I using linux and I use VSCode at some times like using boost libraries but vscode not as good as CLion
Prince Of Persia
sure it isn't
but I need something like CLion or fixing CLion
mov $22, %rax
but I need something like CLion or fixing CLion
I really don't think there is somethink like CLion, but I may be wrong
Igor🇺🇦
yes but how to fix?
It should finish at some point. In general more features your IDE has more resources are required
Anonymous
hello
Anonymous
How should I code this ?...
Anonymous
: The initial value of the radius of a circle is equal to one unit and each succeeding radius is one unit greater than the value before it. Draw a flowchart and write the pseudocode to compute for the area of a circle starting with r = 1 up to r = 10, then print out each radius and the corresponding area of the circle.
Igor🇺🇦
oh
2 most popular IDE (proper use, not text editor with plug ins) are Clion and Eclipse. Try Eclipse.
Prince Of Persia
Ruslan
Hello! Anyone here can help me figure out the build of the boost?
Ruslan
Hello! Anyone here can help me figure out the build of the boost?
There is a problem. I need to use the 1.74 boost with the vc12 (msvc) tools (the boost site says it has been tested on them). I build it together with them, but when i using it, the compiler swears at unsupported features e.g. noexcept vc12 has cropped version c++11 what could I be missing?
Manav
How is Eclipse not useful? 🤔
Probably because with clang tools, text editors now are more performant with near IDE like features
Manav
This is a curious thing: https://github.com/MaskRay/ccls Quite fast and accurate
Igor🇺🇦
Probably because with clang tools, text editors now are more performant with near IDE like features
Code completion and and navigation is not in the same league. I use Vscode with ccls and C++ plugin and still Eclipse works better.
Manav
Code completion and and navigation is not in the same league. I use Vscode with ccls and C++ plugin and still Eclipse works better.
Yeah, that's why I said near IDE like features. An IDE will obviously have better features
Manav
Except maybe visual studio, it is shitty
Manav
Only the debugger is good
Manav
Code completion and and navigation is not in the same league. I use Vscode with ccls and C++ plugin and still Eclipse works better.
Btw I agree with code completion but navigation works flawlessly, never had any false positives.
Prince Of Persia
If you have wrapped char with your own Char class like this: class Char { char base; public: Char(char c) { base = c } } Then you could just return char& inside the operator [] in your string class. The default constructors created for the Char class would take care of creating a Char object from char for you If you want more control you can override char() operator https://del.dog/efeckenayl.cpp
#include <iostream> using namespace std; class Char{ public: char base = 0; Char& operator=(char&c){base = c;return *this;} operator char(){return base;} }; int main(){ Char* cp = NULL; char s = '1'; cp = (Char*) &s; cp->base = '2'; cout << s << endl; return 0; }
Prince Of Persia
Work fine
数学の恋人
who have know a good ide for c/c++?
well use whatever suits you best, my personal favourites are neovim and clion
Prince Of Persia
数学の恋人
CLion is bad with boost c++
why would it be affected by some library?
Prince Of Persia
Boost cpp_int have more than thousands line and include many file
数学の恋人
Slow analyze
hmm... I didn't know as i never used any boost libraries while on clion
Prince Of Persia
hmm... I didn't know as i never used any boost libraries while on clion
Use And that time is the last time you use clion😅
数学の恋人
well I don't use clion primarily, I use neovim for all my dev
ברני
Hey.. I'm still stuck on the same task from yesterday,,, I can't figure out what is wrong...
ברני
https://onlinegdb.com/Bd4-iTSRM
PaAaAria
Hi I have a problem with calculating the root of Function by newton-raphson method It shows the correct root when the point of origin is 1 and it doesn't calculate the other root Here is the code Would anybody help me to solve this problem?
PaAaAria
#include <iostream> #include <cmath> using namespace std; int main() { double h,k1,k2,g,height; double m=pow(9.5,-4);k1= 30; k2=40;g=9.8;height=0.43; h=0.1; double dj,fj,fm,f0,root,df,d0,d,t; cout<<"insert the point of origin="<<endl; cin>>d0;t=fabs(dj-d0); do { f0=(-0.4)*k2*d0+0.5*k1*pow(d0,2)-m*g*d0-m*g*height; d=d0+h; fm= (-0.4)*k2*d+0.5*k1*pow(d,2)-m*g*d-m*g*height; df=(1/h)*(fm-f0); dj=d0-(f0/fm); fj= (-0.4)*k2*dj+0.5*k1*pow(dj,2)-m*g*dj-m*g*height; if (abs(fj)<=0.00000001) { cout<<"root="<<dj<<endl; break; } else d0=dj; } while (t>=0.00000001); return 0;}
PaAaAria
use something like pastebin or ubuntu paste
I didn't Get your point, is that a command? Where should I put it?
数学の恋人
I didn't Get your point, is that a command? Where should I put it?
use some online paste service instead of pasting in chat
PaAaAria
use some online paste service instead of pasting in chat
I think this one is better https://pastebin.com/W3YGBSwf
Manav
I think this one is better https://pastebin.com/W3YGBSwf
Format the code properly please, it is difficult to read
PaAaAria
Format the code properly please, it is difficult to read
actually I'm a beginner at C++, and I don't how I should do it
Manav
actually I'm a beginner at C++, and I don't how I should do it
Code formatting, proper indentation. We are only human. How do you expect us to read your code if it isn't properly indented