Φ ☭
Yup
They're great dude :)
数学の恋人
like using can be used in various manners like for namespaces, is that what you meant?
Pavel
so do you mean if not for this case they are different too?
For example typedef doesn't work well with templated classes (you can't create aliases with templated parameters), also I remember it works worse with namespaces. I stopped using typedef some years ago in C++, I think syntax of using is also clearer
Anonymous
https://gist.github.com/mgood7123/06477b23692112d488b91d2462e64bb5 why isnt this keeping all the symbols in my .a archives ?
nm freetype-2.10.4/libfreetyped.a | wc 3010 8199 114661 nm libFREETYPE_CMAKE_LIB_FREETYPE.dylib | wc 1 2 36
Anonymous
🙁
Pavel
🙁
But you can test it, I may be wrong
Ka. LOVE |• kalhim ng ilaw • TSV: Lokal ng SUCAT
Hi I'm a 1st year college students. And I'm studying associate in computer technology.
Ka. LOVE |• kalhim ng ilaw • TSV: Lokal ng SUCAT
Hoping to learn more here💚
mito
I have noticed this a lot in some cpp projects, why do they put two underscores in the beginning and end in their identifier, like __foo__ Is there a reason or just they like it?
Ehsan
https://www.doc.ic.ac.uk/lab/cplus/c%2B%2B.rules/chap5.html
mito
https://www.doc.ic.ac.uk/lab/cplus/c%2B%2B.rules/chap5.html
"Rule 16 Do not use identifiers which begin with one or two underscores (`_' or `__')." Then, why do they use it in some projects ?
Ehsan
“The use of two underscores (`__') in identifiers is reserved for the compiler's internal use according to the ANSI-C standard. Underscores (`_') are often used in names of library functions (such as "_main" and "_exit"). In order to avoid collisions, do not begin an identifier with an underscore.”
mito
/report @trade_elena is pm me about some trading without my permission.
Anonymous
Does any one know what is Tower of haoin?
Anonymous
How it works?
Anonymous
Do you know much about it?
Anonymous
Does any one know what is Tower of haoin?
https://en.wikipedia.org/wiki/Tower_of_Hanoi
Anonymous
Do you know how to code it?
Garima
Yes
Yes I know but it will be more clear to you if you look out through the videos available on youtube
Anonymous
Using C compiler
Garima
Using C compiler
U can code it with any compiler only the thing which matter is the logic
Anonymous
Yes
Anonymous
Hey i am beginner of c programming can anyone give me tips?
Anonymous
Thanks rose😊😊😊
Parin
Hey i am beginner of c programming can anyone give me tips?
See codeforces and solve some. Codes with c++ Learn c++ after c
Anonymous
scanf("%[^\n]s",student[i].name) ; This is incorrect..
Anonymous
Anonymous
scanf(" %s",&student[i].name) ;
GHAMDAN_NSHWAN
Anonymous
What's sapce?
Garima
U can use gets() function
Anonymous
Does that program even compile? It didn't compile for me when I tried.
Anonymous
Ohh wait nvm , yes it compiled.
Garima
Through gets()
Anonymous
May be indentation error
Garima
Okay so which command you used
klimi
Please could you stop spamming? Thanks
Anonymous
Anonymous
No all this I tried
No , I just now tried now works for string with spaces.
Sachin
no it doesnt
klimi
If you want to load the whole line you can use other functions for that...
Sachin
what others?
klimi
Like fgets
Anonymous
klimi
I'll pass
klimi
I'll pass
Parin
Yaa but first i have to become good in c
No you get better only by using c
klimi
No, no... You didn't get me, I'm not looking into it
Anonymous
ok wait
Hmm , maybe why not just have something like, struct student_info { char firstname[27]; char lastname[27]; int roll_no; int submarks[5]; }; scanf("%s%s",student[i].firstname, student[i].lastname); Most online answers suggested fgets and something like %[^\n]s which you said didn't work for you..
Divya
Hi
@@♥️P...A..♥️
Hi
Hello
Φ ☭
Hello
https://nohello.com
Anonymous
Don't give bullshit advices please
Anonymous
1. Codeforces doesn't teach C++ 2. To learn C++ you don't have to learn C first. Learning C first is basically useless and even harmful.
Anonymous
If you don't know what C++ is and how to teach it — keep your mouth shut