Anonymous
Anonymous
Hllo
Anonymous
I want to do training to get experience in the related field of c /c++ as per university curriculum
Anonymous
Anyone else who can suggest or help me
Anonymous
Iam pursuing bca
Anonymous
And it will be my 1st training
Anonymous
😢😢😢😢
Anonymous
Iam doing BCA (bachelor of computer applications)
Anonymous
数学の恋人
Zero
I need a little help in my c++ project any expert c++ programmer here?
数学の恋人
Zero
https://github.com/jaskaranSM/Database_Manager?files=1
Zero
Here's the source code
Anonymous
Igor🇺🇦
Zero
Zero
Anonymous
Zero
Dima
use it
Dima
nothings wrong, unless T-Rex appears right behind you
Igor🇺🇦
Yeah cuz i like it
using goto for C/C++ programmer is like eating pork Muslim/Jew halaljal/not kosher unless that saves someones life . In this case it certainly doesn't . what's wrong with using "while"?
Zero
Anonymous
Jussi
Ofc you can use goto if you know what you're doing 😂 it's just a jmp instruction
Jussi
Some people say that using continue is bad too
Dima
What if I use goto in ucontext
Dima
o.O
Dima
that coroutine stuff (fibers in winapi)
Zero
Anybody helping me?
Jussi
where do you need help?
Igor🇺🇦
How?
int needToContinue =1 ; while ( needToContinue ) { ...} and change value of needToContinue when you want to stop the loop
Igor🇺🇦
and it's better to use "switch" instead of multiple "else if". That will make your code more readable
Anonymous
Hi
Ибраги́м
Anonymous
Aye true enough.
Dima
for many years of writing code in c/c++ I've noticed some people write for loops like this
for (int i = 0, c = size; i < c; i++)
instead of
for (int i = 0; i < size; i++)
maybe I don't get something, but why? like size cant be changed while its iterating? as I understand there's no difference lol
Jussi
it might change in some applications
Jussi
for example if you need to send 100 megabytes with sockets, you call write with 100000000 as write size
Jussi
but most likely it wont write all 100000000 at once, but I agree, there's better approaches for that
Jussi
for example
while(size>0)
{
size -=write(...);
}
Anonymous
Jussi
yeah indeed
Jussi
or not the function, but inside the loop
Anonymous
But you still want the loop to run based on intial value
Anonymous
Dima
I know I am just curious about that second variable in loop
Dima
yeah then I guessed it right
Jussi
there are many ways to do it ofc :)
Jussi
you have always done with your way so it is unfamiliar
Jussi
some people define functions like
int
function(int a,
int b,
int c)
{
}
and this is weird imo
Dima
if size can be changed while its iterating, put mutex on it 😹🤔
Dima
(outside)
Jussi
yeah but if the loop itself modifies the size
klimi
@Neko_cpp I like your nick and pfp uwu they are pretty
Jussi
if you dont know how the size is affected beforehand, if there is some randomness
Dima
yeah got it now, thanks
Jussi
for example some sorting function loop might look like that
Dima
klimi
Anonymous
Can't tell if this is a bot or not but will do thank you
Anonymous
Nvm it's a bot
Anonymous
New to telegram
Anonymous
It's a bot lol
Dima
it's a bot but she's blushin now
Anonymous
Neko neko
klimi
I like aria too
klimi
Dima
Anonymous
Does anyone here need their website to be pentested?
Anonymous
Any similair telegram groups
Anonymous
Or is it taboo to adv other groups on here
Anonymous
Read the rules
Anonymous
I have