Looking for some c++ definitions

Pages: 12
Hey im a student in Highschool learning c++. Im wondering if anyone can help me out with some c++ definitions cause I cant seem to find them anywhere on the net. They are as follows:

1. ./
2. Out files
3. Branch Statement
4. CD
5. Delimiters
6. Directory
7. GCC
8. If-else
9. if()
10. Index
11. Locate
12. Logical Operators
13. ls
14. Precedence Rule
15. Pwd
16. Switch()

If anyone could help me define any of the 16 id be really grateful.
I can do all of them, but if you had listened in class, you would be able to as well.
The snoipah is a spoy.
closed account (S6k9GNh0)
I wish my high school taught C++. I'm stuck over here learning the basics of Java such as basic input and output on the console :/.
They weren't explained in class. We were told to search the net for them and it seems the net isnt offering answers to these 16. I was able to figure out the other 30 but im having trouble with these 16. I got Branch Statement so I have to figure out 15 more.
closed account (S6k9GNh0)
1) I'm not sure what it's called to be honest but on *nix based computers with a shell, this returns the current directory.

gtg, bell rang...
While some of these terms have other definitions that might make it difficult to (easily) find answers, many of them are very simple and could be found on practically any C++ tutorial site (including this one). Even if a definition isn't explicitly given, you should be able to derive one from all the information.

./ would be the only one that might be fun because its difficulty to search for on Google, but I'll give you a hint and say it has to do with directories.

EDIT: There are a few that aren't part of C++, but they are pretty well-known and descriptions should be readily available. For something like "gcc," for example, my first result on Google had the answer.
Last edited on
I figured out number 1. Basically its the current directory that you are in. Anybody know some of the other ones? Im searching as we speak.
Pwd is leading me to believe it has something to do with passwords.
I know almost all of them (I'm not sure about no. 3), so I guess I could help.

You've already pretty much got no. 1. so I'll help you with that.

. is the current working directory (.. is the containing directory, so if you're in /usr/share, ./ is /usr/share, ../ is /usr and ../../ is /). ./ is
a. another way of writing .
b. a way of splitting the directory from the file, as in ./myFile

PWD has nothing to do with passwords. Thats passwd. PWD is a UNIX command... think acronyms.
Last edited on
Not all complete answers but:
2. Out files - I assume this means either output files or something like a.out
3. Branch Statement - a code statement that offers the opportunity to go to different pieces of code
4. CD - I assume they mean the command here
5. Delimiters - dictionary probably would have a good answer here
6. Directory - any computer dictionary ought to have this
7. GCC - mentioned above
8. If-else - type of statement
9. if() - pretty much the same as above
10. Index - I guess this is probably relating to arrays, look for something like "array index"
11. Locate - to be honest, I'm not sure
12. Logical Operators - give you Boolean results (true or false)
13. ls - I assume this means the command, you can man or Google it
14. Precedence Rule - I think this would be related to "operator precedence"
15. Pwd - another command
16. Switch() - another statement in C++

EDIT: and pwd, no it's actually an acronym
Last edited on
Yea i got the GCC ( thanks for the help on that one.) I also figured out Delimiters
Thanks alot Zhuge =). Those hints are helping alot. Appreciate it =)
Actually, my ego is getting the better of me.
1.
I wrote:
. is the current working directory (.. is the containing directory, so if you're in /usr/share, ./ is /usr/share, ../ is /usr and ../../ is /). ./ is
a. another way of writing .
b. a way of splitting the directory from the file, as in ./myFile

2. Concatenation of output and file
3. Not sure
4. Change Directory
5. In this sentence, whitespace delimits each word
6. A directory is a file in a file system (aka "folder") which can store other files. Usually on [UNIX-based] file systems, each directory entry consists of an inode number and a name. The inode contains other information such as file size, block list, etc.
7. GNU Compiler Collection, or gcc which is the GNU C Compiler (the capitalization is important here)
8. If-else is an if statement with an else clause, the else specifies what to do when the if's expression is false
9. An if is a conditional statement which allows you to specify what to do when an expression is true, e.g.
if (myFile exists)
open myFile
10. Kind of ambiguous, as it depends on context. In terms of arrays, and index would tell you which element you're accessing
11. Locate is a UNIX command. I'm not entirely sure what it does, but here's a man page (get used to looking for these if you're on UNIX) http://www.google.co.uk/search?q=man+1+locate
12. Like Zhuge said, a logical operator is a binary, unary or ternary operator that returns a true or false result, e.g. logical AND, OR or NOT
13. ls is short for "list", and is another UNIX command
14. The precedence rule is either programmatic operator precedence or mathematical precedence. Probably the former.
15. pwd is print working directory, it tells you where in the filesystem you are.
For example, `pwd`/myFile == ./myFile
16. A switch statement is another way of writing an if-else ladder, it's neater in some cases and might use less lines of code.
Last edited on
Thanks alot Chris. The man worked for 3 of the definitions lol. Now ive defined 40/200 words. Almost done >.<
40 out of 200? So there are more than these 16? That's good, now I don't feel bad about helping you.
Oh Definitely. I have to complete 16 projects. Each one has about 25-30 definitions. Ive done 50/200 now. So i have 150 to do then i have to list the literals, modifications, and variables used in each code. Why would you feel bad about helping me? I gave an attempt at finding the above 16. There was originally 30 so i defined 14 before posting this post.
Branch Statement maybe means nested statements??
Maybe ill list some more if i come across any trouble.
Why would you feel bad about helping me?

I felt like I was just giving you answers, although I suppose pointing you to the man pages helped you in a better way (in terms of giving hints rather than answers)?

If you're on using, just issue a
man <C function, POSIX header or UNIX command, among others>
into a terminal emulator like Terminal or xterm.
Last edited on
Yea i got 3 answers out of the terminal. Hints are fine. They help. But c++ is a really hard thing to search for in my opinion. I did get a few off dictionary.com but not many so i figured id try coming to one of these forums to see if i can find some extra help. It worked for 16 of them haha.
Pages: 12