Jump to content

someboddy

Ultra Members
  • Posts

    1,661
  • Joined

  • Last visited

Posts posted by someboddy

  1. This flowing diagram can't actuly multipile's a number, but it can help us to create a program that can.

    Type this program to the C++ compiler:

     

    #include <iostream>

    using namespace std;

     

    void main(){

    int A;

    cin >>A;

    A=A*2;

    cout <<A;

    }

     

    now run it (press Ctrl+F9), enter a number, and press Enter. you will return to the editor. In order to see the program results, run the program again. (if you have visual C++, press F5 to run the program)

     

    now I will explain the program:

     

    #include <iostream>

    using namespace std;

    this part tells the program to use the file "iostream". this file contain's the basic commands you will need. every command in C++(and many another programming languages) must end with ";", so don't forget to put it.

     

    void main(){

    this command start's the program's boddy. after the program finish's the "include" part, it goes to the "main" part, and does the command's there. this line doesn't end with ";", becouse it's a function (I will explain about function's in more advance lesson's), and it will only end when it will reach to "}".

     

    int A;

    this command creates a new variable from the type integer, and give it the name "A". when we will want to use that variable, we use the name A. integer's are complete numbers, so you can't put fraction's in it.

     

    cin >>A;

    the "cin" command take's informatio from the users, and put it in variables. before every variable you want to put data in, you type ">>".

     

    A=A*2;

    this command put's the data in the right side ("A*2" in this case), to the variable in the left side ("A").

     

    cout <<A;

    the "cout" command print's data on the screen. the data can be variable, phrase, a number or text. before every data you want to print on the screen, you type "<<".

     

    }

    in order to end the "main" part (or any another block), you need "}". after the "}", you don't put ";".

  2. The first thing you need to know is how to use flowing diagrams. flowing diagrams are sample ways to show the program's guideline. flowing diagrams are written in normal language. for example, lets say we want towrite a program that get's a number, and multipile it by 2. so the flowing diagram goes like this.

     

     

    Start

    |

    read number to A

    |

    put A*2 in A

    |

    write A

    |

    End

     

     

    first, the program start's.

    than, the program take a number from the user, and put it on the variable A.

    than, the program change A to A*2/

    than, the program write A on the screen.

    than, the program end's.[/b]

  3. Emulation will never die. In 10 years time people will be searching for Xbox Gamecube and PS2 games and looking for ISOs for PS4, Nintendo Spankbox and the Microsoft Uberconsole 2010Xtreme l33t machine (or whatever thier real names are  :P )

     

    They may take our lives, but they will never take our EMULATION!!!!!!!

     

    In ten years, there will be a virtual reality, and the emulators will take you to a virtual world with a virtual console, a virtual TV, and virtual couch :D

  4. Thanks guys you made this poster   :P happy

    Dam i searched and searched.

    The games i were looking for were thusly

    Dungeon keeper 2

    blade runner [point and click]

    And the awsomely addictive black and white origanol.

    Im going to dig round see what i can find.

    thanks guys.

     

    I have both those games. I thought Blade runner was a great game. Plays just like being in the movie. DUngeon Keeper 2 is also a really excellent game. Black & White you either love or hate, but if you buy it make sure you get the patch. It fixes a lot of stupid bugs.

     

    Black & White 2 is out soon and it looks amazing. Huge battles with your creature leading thousands os soldiers and stuff. Nice :D

     

     

    black & white 2: creature isle is no big deal. the only improvement from the first game is the tike, and ofcorse new creatures and miricles. don't by it, unless it is burned(you didn't hered about burning games from me).

  5. When iam surfing the web, every now and then my pc just switches "off"

    and continues to re boot??????

    The xp error report comes up after the re boot and says your computer has revovered from a serious error??

    Any one have any ideas or do i need to get the professionals in?

    Scarey dairy!! :)

     

    I dont think I need to say more...

×
×
  • Create New...