Jump to content

some computer term??

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
Guest_R3.RyozKidz_*

Guest_R3.RyozKidz_*
  • Guests
hopefully no one will laugh on me by not knowing this..hehe
can explain the following terms?
1.what is a platform in a computer??
2.Directory is wat? i usually see it in my C book
3.when will we use argc and argv as the parameter in int main()? Or only using when we write an OS?

#2
ZekeDragon

ZekeDragon

    Writes binary right handed and hex left handed

  • Moderators
  • 2,103 posts
1: A platform means the Operating System and chipset of the computer you're designing software for. For example, Windows/x86 is currently the most popular Personal computer platform available. Other OS's are different platforms, but technically also other chipsets, such as the difference between x86 and x64. A platform can encompass hardware architecture, Operating System, programming language, and runtime libraries in a liberal definition.

2: A directory is a folder in your file system. For example your /home/ folder would be a directory.

3: You use argc and *argv[] any time you want to accept command-line arguments, in fact they're the way you get them. argc means "ARGument Count", and argv means "ARGument Vector", and while you can actually have ANY two names for those, by convention they're argc and argv. In order to understand them, you must know that argc always counts the name of your program as the first argument, so argc will always be at least one, and argv[0] will always be the name of your program as it was typed into the command-line. For programs run from icons this usually means the absolute file name, which includes all directories the program is in. After that, if you have any additional argc's, for example argc == 3, that would mean you have two additional arguments, located in argv[1] and argv[2]. You treat these just like you treat any other array of char arrays, except that they're read-only.
Wow I changed my sig!

#3
Guest_R3.RyozKidz_*

Guest_R3.RyozKidz_*
  • Guests
haha..~ sure i wont use void main although i used it before ..~ haha..
thx~ and how to know my OS is x86 or x64?

#4
Guest_R3.RyozKidz_*

Guest_R3.RyozKidz_*
  • Guests
haha..~ sure i wont use void main although i used it before ..~ haha..
thx~ and how to know my OS is x86 or x64?

#5
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,717 posts
Depends on what operating system you have. In Windows, you can look at the computer settings in the Control Panel and it'll tell you the operating system version and the platform it was built for. I dunno about Macs. For Linux, type uname -a at the command line and press <enter>. I get this:

Linux dargueta-laptop 2.6.28-11-generic
#42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009
i686 GNU/Linux

This says I'm running Linux, kernel version 2.6.28-11, my operating system is Ubuntu, and I'm running on an i686-family processor. Note this does not say i686-64. This means that my processor is 32-bit (i.e. x86, not x86-64).
sudo rm -rf /