1. Create a UNIX account and log in
2. When you are in UNIX type in pico.
3. Once you have type pico you can put in your code
Example code:
#include <iostream>
using namespace std;
int main()
{
cout<<"League of Legends"<<endl;
cout<<"Counter Strike Global Offensive"<<endl;
}
4. Our task was to list our favorite games so we have the normal start of code as:
#include <iostream>
using namespace std;
int main()
{
5. To list your favorite games you can fill in the code
cout<<"Favorite game"<<endl;
and repeat for as many games you want:
6. Once you are done end the code with:
}
7. save your code by pressing control + O and save the name as something.c
8. Exit pico by pressing control + X
9. Type in g++ something.c --> if you have bugs debug your code if nothing happens type ./a.out to run your code.
No comments:
Post a Comment