Diego
Diego
I'm still very new to the world of C++ programming, so I appreciate the patience you've had!
Diego
Diego
Well, other than the compiler itself but that's probably not what you mean
What kind of tools and respective use cases do you consider would be helpful in such a project? If you'd like to tell me
Diego
/get ide
Dennis
🥰🥰☺😛
Dominator
Azure and AWS Certification Group @awsexamdumps
yunal
I want 32bit compiler
yunal
can anybody help me
yunal
/get cppbookguide
Anonymous
Anonymous
Morning
J
Morning
J
🌅
Anonymous
My image????
J
Yes😃
Anonymous
Yes😃
Please i can not send it
J
🌅🌅🌅
Anonymous
I don't have good picture
Lim
@jeffreytse Are you a c programmer or c++ programmer?
J
Both
J
Any issues?
Anonymous
C++ am not a good am here for learning
Lim
Any issues?
So, how do you search keyword with VIM?
J
Global search you mean?
Lim
Lim
grep ?
Lim
Maybe I should ask this question in VIM group😂
J
Generally, if you search the keyword in the same file, you just use the / or ? or *. But if you search keyword globally, you can try fzf or rg or ...
AmR
Why std::thread is so hard ?!
Alex
Alex
find sample and modify it up to your needs
AmR
I try find any example work with gui but I can't find it.
AmR
I try get checksum for long files list. I want use std::thread to make app not freezing.
我是大娃
我是大娃
[ test_checktime]$ ./test
2021-01-25T16:35:52+08:00
Running ./test
Run on (6 X 3700 MHz CPU s)
CPU Caches:
L1 Data 32 KiB (x6)
L1 Instruction 32 KiB (x6)
L2 Unified 256 KiB (x6)
L3 Unified 9216 KiB (x1)
Load Average: 0.00, 0.00, 0.00
--------------------------------------------------------------
Benchmark Time CPU Iterations
--------------------------------------------------------------
BM_CHECKENTRUSTTIME 181712 ns 181561 ns 3861
[ test_checktime]$ ./test
2021-01-25T16:35:58+08:00
Running ./test
Run on (6 X 3700 MHz CPU s)
CPU Caches:
L1 Data 32 KiB (x6)
L1 Instruction 32 KiB (x6)
L2 Unified 256 KiB (x6)
L3 Unified 9216 KiB (x1)
Load Average: 0.07, 0.02, 0.00
--------------------------------------------------------------
Benchmark Time CPU Iterations
--------------------------------------------------------------
BM_CHECKENTRUSTTIME 988 ns 987 ns 706799s
AmR
AmR
It's files in local path for test
我是大娃
I find this function ‘mktime'
我是大娃
after I remove it
我是大娃
2021-01-25T18:07:53+08:00
Running ./test
Run on (6 X 3700 MHz CPU s)
CPU Caches:
L1 Data 32 KiB (x6)
L1 Instruction 32 KiB (x6)
L2 Unified 256 KiB (x6)
L3 Unified 9216 KiB (x1)
Load Average: 0.01, 0.06, 0.03
--------------------------------------------------------------
Benchmark Time CPU Iterations
--------------------------------------------------------------
BM_CHECKENTRUSTTIME 703 ns 702 ns 990583
我是大娃
benchmark test is stable
ㅤㅤㅤ
#include <iostream>
#include <string.h>
using namespace std;
int main()
{
int n;
cin>>n;
int x=0;
char bit[4];
for(int i=0;i<n;i++){
scanf("%s",&bit);
if(strcmp(bit,"++x" == 0) || strcmp(bit,"x++" == 0) || strcmp(bit,"X++" == 0) || strcmp(bit,"++X" == 0)){
x+=1;
}
else if(strcmp(bit,"--x" == 0) || strcmp(bit,"x--" == 0) || strcmp(bit,"X--" == 0) | strcmp(bit,"--X" == 0)){
x-=1;
}
x=x;
}
cout<<x;
return 0;
}
this works on devc++ but gives error on codeforces. Problem 282A
klimi
#include <iostream>
#include <string.h>
using namespace std;
int main()
{
int n;
cin>>n;
int x=0;
char bit[4];
for(int i=0;i<n;i++){
scanf("%s",&bit);
if(strcmp(bit,"++x" == 0) || strcmp(bit,"x++" == 0) || strcmp(bit,"X++" == 0) || strcmp(bit,"++X" == 0)){
x+=1;
}
else if(strcmp(bit,"--x" == 0) || strcmp(bit,"x--" == 0) || strcmp(bit,"X--" == 0) | strcmp(bit,"--X" == 0)){
x-=1;
}
x=x;
}
cout<<x;
return 0;
}
this works on devc++ but gives error on codeforces. Problem 282A
You are using string.h which is C library, and iostream, which is C++ library?
ㅤㅤㅤ
klimi
Anonymous
Anonymous
Well most of it. The only thing i can think of are unsafe operations that got obsolete
Anonymous
Like assingning pointer types without casting
Rama k
Hey
falcon
Hey 👋
falcon
Can anyone guide me for competitive programming
James©®
can anybody help me with installing vcpkg in vscode
Anonymous
Vcpkg and VSCode are separate things
James©®
i want to install c libraries in vs code
Anonymous
VSCode is just a text editor
James©®
have u used vs code earlier
Anonymous
Do you install C libraries in default Notepad? No
Same with VS Code
Anonymous
James©®
Diego
And that it doesn't do any package management on its own
Diego
https://docs.microsoft.com/en-us/cpp/build/vcpkg?view=msvc-160
Diego
You can try this, though; but it's a CLI
Maybe there's a plugin for VSCode that integrates vcpkg?
Anonymous
Marián
bruh vcpkg be like 182901828gb per package
Anonymous
Marián
gb?
meme ref to the size of vcpkg
Marián
it downloads and builds pkgs from source so it's huge
Marián
gtkmm is like 10gbs total lol