Question:
c++ for beginners really desperate?
fvsdf s
2007-08-12 17:54:33 UTC
3) Read the following conditions, and then describe the permissions on a file with these conditions. You, the owner, can access the file with vi and write changes. The file contains a series of shell commands such as ls and who. When you enter the file’s name at the command line, the commands listed on the file are run. Members of your group cannot make changes to the file, but when they issue the file’s name to the shell, the internal commands do run. Other users can use pg and more on the file, but when they issue the filename to the shell, the internal commands do not run.


can someone please help me
Three answers:
Meggerz
2007-08-12 18:00:32 UTC
The above was correct, this is Unix and there isn't a way to run a Unix command thru standard code (Managed code, a newer, visual way to code C++ has abilities to link with a Unix server, which is why I asked).



Read this tutorial and it should explain to you how to run a Unix command quite clearly to change the permissions. Have you covered in your class about " drwxrwxrwx" ? Those are the "permissions" - the 1st "rwx" is for administrator, then the next "rwx" is for the members of a "group" and the last rwx is for guests or "public" users. R means read, W means write and X means executable. Using this info, you should be able to figure out , based on the conditions for your assignment, what the permissions should be. (It looks like you, the admin, is a full rwx.... the group members can read and execute (r-x) but not write. Other users, guests, can read the file but do nothing else (r--)). Hope this helps!



http://www.dartmouth.edu/~rc/help/faq/permissions.html
?
2007-08-12 17:59:41 UTC
That isn't C++, it is Unix . You need to look at Owner, Group, and Public file permission settings.
?
2016-10-15 06:54:19 UTC
A compiler blunders potential an blunders grew to become into got here across on a similar time as compilation which would be a syntax blunders (e.g. you forgot a semicolon) or a semantic blunders (e.g. you're making an equality between a string and an integer). A link blunders potential an blunders grew to become into got here across on a similar time as linking, evaluate here code: void Factorial(int num); void substantial() { printf("%d", Factorial(4)); } right here, you instructed the compiler which you have a function observed as "Factorial" and you tried to apply it on a similar time as you probably did not specify the way it works. --------------------------------------... attempt to attain "AND" and "OR" logically, case in point: AND potential that the two circumstances are real on a similar time as "OR" potential a minimum of between the circumstances is real. by utilising utilising such definition as bitwise operators: 5 and four = 4 in case you considered that "a million" potential "real" and 0 potential "fake" then by utilising changing 5 and four to binary values: a million 0 a million (5) a million 0 0 (4) -------- a million 0 0 (4) the main left bit interior the tip result's the only bit that's "a million" because of the fact the main left bit in the two "5" and "4" is "a million". by utilising ORing them: a million 0 a million (5) a million 0 0 (4) ------- a million 0 a million (5) because of the fact OR demands in straight forward terms between the bits to be "0" so the 1st and final bit have been "a million". ---------------------- 0 listed potential that "0" represents the 1st merchandise in a team. case in point once you prefer to get the fee of the 1st ingredient in an array you utilize here way: int x[4]; int y; y = x[0]; because of the fact arrays are 0 listed, so which you refered to the 1st merchandise by utilising "0" not "a million". ---------------------- The handle operator shows the place the variable is saved interior the memory not the fee. case in point: #incorporate void substantial() { int x = 5; printf("%p %d", &x, x); } This application will output the place "x" is residing interior the memory and the fee saved in that area. ------------------------------ UML is a modeling language that's used for designing classes, it stands for "Unified Modeling Language". that's especially composed of a few figures which represents the climate of that application and the relation between them. --------------------------------- regrettably i don't understand the final question, sorry.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...