Err0rX
void property_init() { mkdir("/dev/properties", S_IRWXU | S_IXGRP | S_IXOTH); CreateSerializedPropertyInfo(); if (__system_property_area_init()) { LOG(FATAL) << "Failed to initialize property area"; } if (!property_info_area.LoadDefaultPath()) { LOG(FATAL) << "Failed to load serialized property info file"; }
Err0rX
but i didn't understand this line mkdir("/dev/properties", S_IRWXU | S_IXGRP | S_IXOTH);
Err0rX
please help me to understand this line
Err0rX
that i known , but what's the mean of this S_IRWXU | S_IXGRP | S_IXOTH
Raul
Have you tried using the almighty google?
Err0rX
yes but no luck
Raul
Google S_IRWXU
Err0rX
yeah i google it and i thing this is the read and write permission which need to set on that folder which is created by the mkdir am i right??
Err0rX
linux
Err0rX
thanks for your help😄
Raul
Something like that. I don't really know all of the details.
olli
need one more help guys in this funtion , in this statement if (__system_property_area_init()), here __system_property_area_init() what's this?
A function declared here https://android.googlesource.com/platform/bionic/+/master/libc/include/sys/_system_properties.h#71
Anonymous
Hi, I don't know why, but my file (EZRLoggerPlatformServiceImpl) was not found when i compile an iOS app with my library: Undefined symbols for architecture arm64: "_OBJC_CLASS_$_EZRLoggerPlatformServiceImpl", referenced from: objc-class-ref in AppDelegate.o "_OBJC_CLASS_$_EZRSharedDataPlatformServiceImpl", referenced from: objc-class-ref in AppDelegate.o "_OBJC_CLASS_$_EZRFileHelperPlatformServiceImpl", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) But on log it was compiled with success: [ 68%] Building C object CMakeFiles/Ezored.dir/Users/paulo/Developer/workspaces/cpp/ezored/files/src/logger/objc/ezored/util/EZRLoggerPlatformServiceImpl.m.o [ 92%] Building C object CMakeFiles/Ezored.dir/Users/paulo/Developer/workspaces/cpp/ezored/files/src/file-helper/objc/ezored/io/EZRFileHelperPlatformServiceImpl.m.o Can anyone help me?
Anonymous
Because when I compile the program in Visual studio it says Error: Can not open the file
🐰🐾 سمیه
🐰🐾 سمیه
Hi, would you please explain me the highlighted section?
BinaryByter
read it and ask specific questions, please
🐰🐾 سمیه
I don't understand the highlighted part, all of it. Just need a better and broader explanation.
BinaryByter
Ask specific questions, please
BinaryByter
If you say 'all of it' that implies that you dont understand ANY word in that sentence
Anonymous
Any group for CSharp??
Shreehari
elaborate
🐰🐾 سمیه
elaborate
If we undef getchar and putchar, and then use them in the program, what happens to their functionality compared to when we don't undef them.
🐰🐾 سمیه
@linuxer4fun The last sentence, to avoid the runtime overhead of a function all call per character processed. What it implies?
klimi
Welcome
Daniele°
@linuxer4fun The last sentence, to avoid the runtime overhead of a function all call per character processed. What it implies?
Preprocessor is simple text replacement #define one 1 ... ... int i = one; Before building int i = 1; Now build. On gcc you can view preprocessor output with $ gcc -E file.c -o output.c
Anonymous
Thnk you
klimi
yw
Anonymous
int a[] is same int *a sizeof a == 8 sizeof a[0] == 4 8/4=2
Array without fixed number is condinsered as pointer ?
Anonymous
any solution?
klimi
any solution?
thats very descriptive
Anonymous
I use the MinGW compiler
Anonymous
Where would I have to save the projects so that the error does not come out?
Anonymous
klimi
read the log
Anonymous
Anonymous
I only get that error window
klimi
weird
Anonymous
I am new to eclipse
Anonymous
In C/C++
klimi
hm
klimi
so you have project
klimi
you compile it
klimi
and then run?
Anonymous
olli
have you compiled your program?
Anonymous
does not enter a number 🤔
Anonymous
Why we use -- (using namespace std;)
olli
Why we use -- (using namespace std;)
https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice
wa_le
I am
Daniele°
I am new to eclipse
Enable -Wall and -Wextra in your compiler options.
Daniele°
change %i with %d and scanf("%d",&a);
CM
Why did you use %i? Use %d as said above
Anonymous
hello
Anonymous
Hey guys
Anonymous
I’ve got this command line argument program but I dont know how to open it
Anonymous
Could you help me please :(
Anonymous
How can I execute it in cmd
Anonymous
Is there someone who shows me the requirements to enter artificial intelligence or learn machine ... and thank you in advance
Azrul
Azrul
Azrul
Do anyone know the problem??
Azrul
Hehehehe
Anonymous
in language C
klimi
good luck
klimi
صباح
using namespace std; #include <iostream> //Sample class to demonstrate operator overloading class Sample { //private data members private: int value; public: //default constructor Sample() { value = 0;} //Parameterized constructor Sample(int c) { value = c;} //making operator overloading declaration as //friend function friend Sample operator+(Sample &S1, Sample &S2); //printing value void printValue() { cout<<"Value is : "<<value<<endl; } }; //overator overloading function definition Sample operator+(Sample &S1, Sample &S2) { Sample S; S = S1.value+S2.value; return S; } //main program int main() { int i = 0; //object declaration by calling parameterized constructor Sample S1(100); Sample S2(200); Sample S3; //adding objects (Binary + operator overloading) S3 = S1 + S2; cout<<"S1 :"<<endl; S1.printValue(); cout<<"S2 :"<<endl; S2.printValue(); cout<<"S3 :"<<endl; S3.printValue(); return 0; }
miko
what's that?
klimi
miko
really?
Nikolas
hey random code
Nikolas
nice