Talula
Pooja
I'm taking sentence by using array from that sentence want to print minimum length of a word.
Talula
Oh that is no issue, simply count the number of chars after space and record it, if the next count is more ignore the number, if next count is more, update the number.
Pooja
Ohh.. Ok thanks
Wojak
What is this nude dog doing on your bed?
That's his own bed And what do you mean by nude dog ?😂😂 Never seen a dog in tux.
Acidicboy
Hy everyone still new to telegram.. have patience on me.. happy to join you
sid
/get ide
Wojak
How can we auto_ptr class to save array in a container ? I tried it, didn't work.
Wojak
*how can we use
Anonymous
any body work with <openssl> library?
M.Khorram
M.Khorram
I'm not sure, however something this one might be what you want auto ptr = std::unique_ptr<int[]>(new int[10]);
M.Khorram
or something like this std::unique_ptr<std::vector<int>>
Anonymous
hi every one i hope u doing fine , well is there anyone here who understands french bcz i am verry stuck in a exercice but it is unfortunatlly in frensh
Anonymous
Please who here can guide me on my program personally?🙏
V01D
Please who here can guide me on my program personally?🙏
Waiting for someone to get personal about his program now
V01D
@admin @jerr_boss3243
V01D
/report @jerr_boss3243
Dima
lol
V01D
Bots Down?
V01D
/get cbook
V01D
No, I just cant use rose
Anonymous
/report
V01D
/report
DONT DM me
Dima
it works
Engineer
Anyone done fast kernel optimization techniques to load a large text file say above 24GB into memory? Quickly above and over conventional methods using C++/C?
Engineer
I understand but could I use interleaved reading of the data using multiple threads? Akin to doing this using channels in Golang? The data in memory can be processed odd and even respectively? * Reading a file in chunks * Reading file chunks concurrently * Reading the entire file into memory * Splitting a long string into words * Scanning word by word
Alex
I suppose mapping file to memory is the fastest way
Valentine
https://gist.github.com/qubal/11823b200ec1c5af37fa875fd3ae2194 Hi! Why does my program skip some indexes, it has to change all elements in matrix to -1, but as u can see it’s not working
𝖜𝖎𝖑𝖑𝖘𝖎𝖗
hi i am trying to execute sfml but i am getting linker error
𝖜𝖎𝖑𝖑𝖘𝖎𝖗
Konstantin
hi i am trying to execute sfml but i am getting linker error
Have you tried to perform search for that linker error in the Internet?
𝖜𝖎𝖑𝖑𝖘𝖎𝖗
it works on arch but getting error in manjaro kde
Konstantin
yes
Hmmm... I see few answers on the first page of search results. If one dose of Rebuildall will not help, I suggest to check the environment and understand what are you doing differently.
vinícius*
likely an issue with the -o flag
vinícius*
try putting obj/main.o right after -o
Talula
Read the title... Turbine Master.
Narendra Modi
sorry sorry
Anonymous
let's make a great app together
Pavel
Solve what? Can you explain your problem? (note that screen photos are not allowed here by the rules, use pastebin)
Roxifλsz 🇱🇹
/warn haram screen photos
Roxifλsz 🇱🇹
You have to define your variable first
Roxifλsz 🇱🇹
Like int a = 0;
Pavel
To use variables a and result you need to define them. Like this int a = 10; a = a + 20;to check that it's working you can use debugger and breakpoints and execute the program step by step or print values to console (you can google how to do it)
Mar!o
Aha
Easy to go solution: auto int x = 0; auto int *const a = &x; auto int r = 0; auto int *const result = &r; auto int q = 1; auto int *const $ = &q; *a+=*$; *result=*a;
Alex
what is auto int?
Alex
C69?
Mar!o
Easy to go solution: auto int x = 0; auto int *const a = &x; auto int r = 0; auto int *const result = &r; auto int q = 1; auto int *const $ = &q; *a+=*$; *result=*a;
or: xor eax, eax mov dword ptr [rbp - 4], 0 lea rcx, [rbp - 4] mov qword ptr [rbp - 16], rcx mov dword ptr [rbp - 20], 0 lea rcx, [rbp - 20] mov qword ptr [rbp - 32], rcx mov dword ptr [rbp - 36], 1 lea rcx, [rbp - 36] mov qword ptr [rbp - 48], rcx mov rcx, qword ptr [rbp - 48] mov edx, dword ptr [rcx] mov rcx, qword ptr [rbp - 16] add edx, dword ptr [rcx] mov dword ptr [rcx], edx mov rcx, qword ptr [rbp - 16] mov edx, dword ptr [rcx] mov rcx, qword ptr [rbp - 32] mov dword ptr [rcx], edx
Mar!o
what is auto int?
auto is a storage class in C like register - it's actually deprecated because auto is implicit for local variables - it meant "auto" storage because local variables are automatically popped off the stack when they leave their block :D
Mar!o
Yeah I know but sometimes it's fun to confuse unfriendly people
Mar!o
Meh C
You prefer an ugly C++ version instead? :D
Mar!o
I mean it's quite easy to make confusing code just with operators:
Mar!o
int main() { int a = !~!~!~!~!!!~~10; }
Mar!o
It's art 😍
V01D
Lol, yeah. Not a social person + I have two keyboards so dont become DONT by accident
V01D
Bruh.
V01D
You need a main function
Mar!o
Why would ya need your code to be confusing?
I don't want to - I just find it fascinating to make obfuscated code like in the IOCCC. If I write real code, I try to write clean and beautiful code. I think sometimes it's just interesting to play around in the other direction. As Terry Davis said "An idiot admires complexitiy, a genius simplicity"
𝖜𝖎𝖑𝖑𝖘𝖎𝖗
there is main function
Vlad
there is main function
It could be that your main signature is not conformant
𝖜𝖎𝖑𝖑𝖘𝖎𝖗
#include <SFML/Graphics.hpp> int main(int argv, char* argc) { sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!"); while (window.isOpen()) { sf::Event event; while (window.pollEvent(event)) { if (event.type == sf::Event::Closed) window.close(); } window.clear(); window.display(); } return 0; }