KEKI
also you should consider NEVER using gets
You would recommend  scanf("%[^\n]%*c", str); right? .. or something else
Surya
#findprojects
Surya
#goodcodingmentality
Surya
#imhacker
Surya
#india
Surya
#rose_as_my_girlfriend
Surya
🤷‍♂
E
🤷‍♂
You want a bot like your gf hhhh
Anonymous
You would recommend  scanf("%[^\n]%*c", str); right? .. or something else
You never have an unlimited memory, so you have to consider limit your input size. For example: void main() { char x[100],y[100]; printf("enter string x : "); scanf("%99[^\n]%*c", x); printf("enter string y : "); scanf("%99[^\n]%*c", y); lcs(x,y); } this will ensure that you will not have a buffer overflow.
Anonymous
#define MAXSIZE 100
Chernykh
or bester , you can define array_size
Or better never use define
Chernykh
Only u want to use one as in GTest
Chernykh
For another cases exist constexpr (cpp17) and constinit(cpp20)
Anonymous
Okayyy
Anonymous
thanks you
Anonymous
In group ,How many people is in country Vietnam?
Ling
hello everyone. please tell what should I do with function to be able to call it from c# as external (DllImport)?
Dima
hello everyone. please tell what should I do with function to be able to call it from c# as external (DllImport)?
Actually nothing much, I had done something like that but I don’t remember
Lelouch
Should i learn PHP ? coz its not being used much 🙄🤔
MilkBeforeCereal
MilkBeforeCereal
imo, it's a major hassle learning a programming language if you have no project to try
Lelouch
Wanna start training So Node js or php and js?
Dima
Never go for js
Dima
Imo
Lelouch
Its a package of back end web development Html Css Js Php Framework....🤔
Dima
Try python/c#/rust/go
Lelouch
It’s more of a full stack
Then should i go 4 it?
Dima
If you want to be a fullstack yeah
Lelouch
If you want to be a fullstack yeah
If i learn back end Then how to time amd effort needs to do front end?
Anonymous
for opennig music in C which lib should i learn ?
Dima
openal
Dima
foss
Anonymous
thanks
HLEBR
https://youtu.be/IwEgK2rDgzE
HLEBR
?
Client and server (server sends messages to connected clients)
Dima
lmao
Dima
I think its good
Dima
at least tutor is not indian-accent
Dima
Anonymous
HLEBR
https://youtu.be/cvDEKY3-3mo
Dima
yeah I think that’s enough or someone may warn you
Mat
https://youtu.be/cvDEKY3-3mo
/warn stop promoting
Mat
At least introduce the video in a conversation or ask about sharing it
klimi
https://youtu.be/cvDEKY3-3mo
Look need to watch that
Dima
/warn stop promoting
these are good videos though
klimi
What about we dont warn this time?
klimi
Since dimka says its cool
klimi
Well if he explains
Mat
You can unwarn him 🤷‍♂
klimi
^
++
Mat
these are good videos though
I only want to avoid to watch every video to see if they're worth enough to be shared. Just introduce it for some reason and share it to do something useful without leaving them there alone
klimi
Its promo you are right
manas
What are the practical uses of const functions?
HLEBR
Try strlen() or sizeof()
Dima
lol
Dima
you are simply taking firs character and placing it in your char[]
HLEBR
Dima
you need to use memcpy with sizeof(char) * strlen(argv[1])
HLEBR
you need to use memcpy with sizeof(char) * strlen(argv[1])
I need not do it, this code gcc compiles without errors and warnings
Dima
he is trying to copy a string
HLEBR
HLEBR
Code of this program
Dima
Code of this program
anti copypaste protection:)?
HLEBR
#include<string.h> #include<stdio.h> int main(int argc, char *argv[]) { for(int i=0; i<argc; i++) { printf("size of argument:%lu\t", strlen(argv[i])); printf("argument: %s\n", argv[i]); } return 0; }
Yakov
Hey guys. Trying OOP, need to make different files for class and for main code. What's the problem over here?
Yakov
Yakov
Yakov
Dima
lol Xcode mac users overrun
Dima
class methods are not defined like that