Running Our Project
At this point we should build our project (Ctrl+B — Build). Now
we can run the program, but if we want to try it in the IDE we will also need to define
the argument that is being passed to the main()
function. We can do that
in the menu by selecting the
item again. In the first tab, in the Command line box, enter the URL:
http://www.google.co.uk/search?hl=en&q=SIMPOL&btnG=Google+Search&meta=&aq=f&oq=
and then click
to close the dialog.Note | |
---|---|
It is always a good idea to click on the icon on the tool bar after making changes to the project's settings. This ensures that those changes are saved to the project file. If you don't, and the IDE crashes for some reason, you may lose the changes that you have made. |
Now to run the program, press Ctrl+E (Execute).
The result should be the page containing the Google search results for the key word
"SIMPOL
". The page will be messy and hard to read, since it normally
returns as an unformatted stream of characters without any new line characters. To see a page that
may look a little more familiar, try the URL "www.simpol.com
". That should look
like a fairly readable page of XHTML.