Anonymous
Is cin << is outdated ?
BinaryByter
but its not part of conio
Bhupesh
https://github.com/Bhupesh-V/30-seconds-of-cpp
Elnee
Is it planned to support utf8 string in C++?
Elnee
std::string doesn't support utf8, or does?
Anonymous
Is cin << is outdated ?
Yeah.... Its cin>>
Mat
Yeah.... Its cin>>
It remains std::cin. Without std:: you're not referring to the standard cin implementation
Elnee
olli
std::string doesn't support utf8, or does?
std::string is std::basic_string<char>, a single char is not always enough to store an UTF-8 character. Depending on your platform utf-8 is more or less supported. E.g. on Linux you basically can use std::string and UTF-8, size() might however not report what you would expect, it will report the number of char required to store the text, not the number of characters in your string.
Mat
I think he was talking about the operator hahaha
Just to be sure we're talking about the same cin. Sometimes here pops up strange libraries with some esoteric implementations 😂
Mat
English, please
Anonymous
Why <iostream.h> is not in use While <stdio.h> is in C
Anonymous
Anonymous
No indians in this channel.yes I am an Indian
Mat
No indians in this channel.yes I am an Indian
Because usually questions about outdated stuff come from indians
D
Hi
D
Why is it necessary to setup stack n bss
D
Before executing C code ??
D
Isn that compilers job ??
D
Like executing on bare metal !!
J
Jm
Anonymous
Hello friends which best book for learning about c libraries
BinaryByter
kek
BinaryByter
bad question
BinaryByter
very bad question
Anonymous
why
BinaryByter
you don't tell us which libraries you want to learn
Anonymous
networks and process
BinaryByter
btw: most libraries have sections with books where you can learn about that lib
Anonymous
can you give me link plzz
BinaryByter
nope
MᏫᎻᎯᎷᎷᎬᎠ
Anonymous
Ok thanks
many
good luck keeping your python projects organized
I'm working on python projects and python libs are kind of loosy (no offense: python & js communities don't do things in a strict way). Backward compatibility and cross platform are what python and JS famous for but they are not guaranteed.
BinaryByter
> python & js communities don't do things in a strict way this is exactly the reason why python is not fit for bigger projects
BinaryByter
you are kinda forced to do everything in a lose way
many
> python & js communities don't do things in a strict way this is exactly the reason why python is not fit for bigger projects
I and my colleagues did encounter backward compatibility problems and cross platform problems, especially for those low level stuff. (Stereotype) I've been working with other python developers and I guess some of them are not aware of/don't have the knowledge of how things work
BinaryByter
the two things that destroy easy languages more are indeed lack of knowledge and lack of competence
BinaryByter
but backwards compatibility is really IMPORTANT
Dima
Let’s talk about that disgusting stuff (js, python) in the ot chat
A
Write a c program to print each letter after full stop to upper case....(strings) 👆Plz can anyone see send programme .....for the above
BinaryByter
google ADL
A
No. Have you tried doing it?
Ya i tried i am not able to If u can then plz send....
Nikolas
What have you tried?
Nikolas
show us
A
👆
Nikolas
ok now I've seen everything.
Nikolas
A picture of handwritten code.
A
A picture of handwritten code.
I executed but its showing error
Nikolas
anyway, that code has some errors
Nikolas
where do you get the string to modify?
Nikolas
your variable "string" is never initialized
Nikolas
also, think what happens when the last character of the string is a .
Prateek
@MissRose_bot I want to Learn everything in C and C++
Prateek
From Beginning
Daniel
Hi, guys. I need your help. Why temp print works but timeArray.substraction not? Substraction returns Time. What's wrong and how to solve it? If needed there is a code https://github.com/RXDYE/oopLab3
Dima
you need to implement operator << in Time class
Dima
ostream I think
Daniel
yes, it's overloaded so temp(is TIme object) prints ok
Daniel
is there possibly a problem with operators priority? i did not realize what's not okay
Daniel
i made the function returning a link to Time and it's fixed. But why?
olli
I would still prefer not to use the whole namespace but rather using std::sqrt; instead
Raul
This is a different application because you have used it within a scope. And that is fine. However you would confuse people with that line of code and you should leave a comment explaining why you are using namespace std; there. using namespace std; is bad within a global workspace. In this case, you know exactly what you want, so that is fine.
Raul
I would still prefer not to use the whole namespace but rather using std::sqrt; instead
Typing std:: is the best way to go in my opinion. I would prefer to know exactly what library I am using.
olli
Typing std:: is the best way to go in my opinion. I would prefer to know exactly what library I am using.
But sometimes you need ADL, typing std:: however does not allow for these lookups. Hence you should be using the functions you want to lookup by it's argument type