klimi
?
Anonymous
Ofstream o("out.txt");
Anonymous
o << "Салом олам";
Anonymous
In out.txt file nothing wrote
Morasaky
are u trying to write this "Салом олам" in a .txt file ?
Anonymous
Yes
klimi
i think there will be problem with locales
Morasaky
or are u trying to print it out on the screen ?
Anonymous
In utf8
Anonymous
Not only write to file
Satwinder
Sanam
Anonymous
With support utf8
Morasaky
ok sorry i dont think i can help u
Anonymous
Sanam
😂
Anonymous
😂
😐
Anonymous
i think there will be problem with locales
I used setlocale(LC_ALL, "rus");
rickyrick
@maxplatinum97 I can help you with that.
Dima
try setlocale(LC_ALL, "ru_RU")
Prince
hello friends send a program to print a table
BinaryByter
What school gave you that assignment?
Anonymous
hello friends send a program to print a table
I don't think anybody here will write it for you.. if you have some specific queries .. tell us
BinaryByter
Its Important to learn that programming isnt super easf
Anonymous
Anonymous
But we can definately help him if he is stuck somewhere
BinaryByter
Yea we car
BinaryByter
But only with specific questions
BinaryByter
Specific enough and not lacking context
Anonymous
I'm just wondering, what's the preferred OS on here. I personally use OpenBSD but I'm happy to use any BSD (apart from FreeBSD, I don't like their developers)
Anonymous
Is that the GNU on windows thing?
Anonymous
But yeah, I'm now using my C knowledge to try and teach myself OS internals
Anonymous
Is that the GNU on windows thing?
Nah .. an undergoing project
Anonymous
got a link?
Anonymous
got a link?
Clinl.org
Anonymous
Not usable rn
Anonymous
Interesting. I'm primarily interested in BSDs myself and I'm also not a massive fan of C++, but I'll watch the project
BinaryByter
Anonymous
Hey, I've even transcended Linux. I'm no NT babby
BinaryByter
:D
BinaryByter
Hi harsh
BinaryByter
Nikita
Try to crrate new linux
Nikita
But yeah, I'm now using my C knowledge to try and teach myself OS internals
Anonymous
The plan is to build a BSD based OS that's optimised for distributed workloads based on DragonflyBSD
Nikita
C is father of the currrntly fms c++ so if you understand how its working you could try to create smth like c-- (new language)
Nikita
Hi all, A quick question for all using C/C++. In which scenario is C preferred over C++? C++ is an OOP extension to C. But if I am not wrong it can be used as replacement of C as well right? (Like a functional programming language). So why C? I know C is heavily used in some places - Linux kernel, etc. But if I am not wrong the time linux kernel was originally written, C++ was not mature enough. But now its a different scenario. So why C now? Does it provide better memory management? Or any other reason?
BinaryByter
Or if you get paid for the amount of LoC you write
Nikita
C has good advantage.it know how to double your time work
Max
C is only better if your teacher forces you to use it
C is an instrument which can be fast-learned (compared to C++). C is close to hardware as possible, but still portable - that's why preffered by _any_ EE there over C++. C has standart ABI. C++ is almost a garbage without userland libraries, belive me, I'm making C++ project in embedded. C has lots of UB. C++ has tons more of UBs. After C++14/17 I'm attracted to it and many people too, but to make system-level job you need lot more knowledge of C++ than you would expect (compared to C).
Max
I like this language. As much as a hate it.
BinaryByter
C is hard to learn, while C++ is super easy with its stl
BinaryByter
C++ is as close to hardware and atleast as portable
BinaryByter
I dont get your ABI argument
BinaryByter
Where is the problem between C++ and C without userland libraries?
BinaryByter
What do you mean by UB?
Aman
C is hard to learn, while C++ is super easy with its stl
For getting the basics of C covered,how long will it take? Like is it possible to get the basic C in 12 days if one is giving 4-5 hours at home and 2 hours in college?
Max
What do you mean by UB?
so you are writing C++ code without knowing about ABI issues? wihtout knowing what UB is? are you kidding?
BinaryByter
Also, I dont see where there are ABI issues
BinaryByter
you are junior right?
Actually i'm lead dev at clinl
BinaryByter
What story?
C is really hard
Anonymous
My problem with C++ is it abstracts too much away from the user. I don't like how much the STL does for me
Anonymous
What do you mean by UB?
Undefined behaviour ig
Anonymous
C is really hard
No, the basis if really simple
Max
Actually i'm lead dev at clinl
http://lmgtfy.com/?q=C%2B%2B+UB