OOP344 Student Resources
OOP344 | Weekly Schedule | Student List | Teams | Project | Student Resources
Contents
- 1 Quick Link
- 2 Standards
- 3 Webpages (Useful links)
- 4 SVN
- 5 Creating Projects in Visual Studio for Console Applications
- 6 IRC
- 6.1 The Basics of IRC
- 6.2 IRC Clients
- 6.3 Basic Commands
- 6.4 Protecting your Nickname
- 6.5 Seneca @ Freenode
- 6.6 How To Log IRC Conversations on mIRC
- 6.7 How To Identify on IRC Automatically via mIRC (and Join #Seneca-OOP344 Channel)
- 6.8 How To Identify on IRC Automatically via XChat (linux) and Join #Seneca-OOP344 Channel)
- 6.9 Some IRC short cuts for xchat
- 6.10 Hiding or Cloaking your IP Address
- 6.11 Useful Links
- 7 Online C++ tutorials
- 8 Linked List Explained
- 9 Practice Questions/Solutions
- 10 C++ Casts Explained By Fardad 14/04/2011
- 11 OS Key-Codes
Quick Link
This page will serve as a hub for all OOP344 students to create wiki pages related to the course for the purpose of aiding their fellow students. Got a handy trick that makes programming easier? Feel free to build a page about it and link it here for all your classmates to use!
Standards
To add a new page, simply put a link at the top of the page and a section below with a link and short description of what the page is about. Simple enough?
Webpages (Useful links)
- https://scs.senecac.on.ca/~btp300 <-- the degree version of oop344. Good for an indepth look at the material. Includes Workshops and Walkthroughs
- https://cs.senecac.on.ca/~fardad.soleimanloo/oop344/notes/ <-- Notes only up to Oct 28, 2009. Includes past tests
- svn://zenit.senecac.on.ca/oop344 <-- Up to Date Notes shown in all lectures
- Changing Tab Key Behaviour in Certain IDEs
SVN
Development and submission steps using SVN - OOP344 20121 This is a quick way to get everyone familiar with SVN in a brain friendly manner without the need to sift through pages of unnecessary documentation.
What is SVN? Subversion or SVN is a control system where it allows you to properly organize and manage files and directories and the changes to them over time. SVN allows you to recover older versions of your data, or examine the history of how your data changed. In this regard, many people think of a version control system as a sort of “time machine”. [1]
GIT
Creating Projects in Visual Studio for Console Applications
Visual Studio is available for download from ACS
To create a new project for console applications:
- From the File menu, select New > Project
- Select Project Type as Visual C++ > Win32
- Select template Win32 Console Application
- Assign project name and choose local directory
- Uncheck the box Create directory for solution
- In the wizard, click on Application Settings
- Application type of Console application should be selected
- Check the box beside Empty project
In "Solution Explorer", add new item to Header Files or Source Files.
IRC
The Basics of IRC
IRC is also known as Internet Relay Chat. The principal of it is essentially to provide accessible chat rooms for people over the internet over multiple operating systems. To be able to connect and interact with IRC, one must first have an IRC client of some sort.
IRC Clients
There is a wide variety of different IRC clients on all platforms. Here is a list of just a few:
- Chatzilla (Add-on for Firefox)
- mIRC (Windows)
- HydraIRC (Windows)
- Colloquy (MacOS)
- xIRC (MacOS)
- Babbel (Windows/MacOS)
- XChat (Windows/Linux)
- irssi (Windows/MacOS/Linux)
- Freenode (Windows/MacOS/Linux (Web Based IRC)
- HexChat (Windows)
Once installed and running, you will have such options as connecting to various servers. We're particularly interested in the one which the seneca chatroom is located.
Basic Commands
Command | Description |
---|---|
/server irc.freenode.net |
Connects your client to an IRC server. In this case, it is the freenode server |
/join #seneca |
Join #seneca channel |
/nick YOURNEWNICKNAME |
Change your nickname |
/leave #seneca |
Leave #seneca channel |
/part #seneca |
Another fancy (more elegant) way of leaving |
/query NICKNAME |
Open a private chat with someone |
See this for more advanced (and fun) IRC commands that works at Freenode.
Protecting your Nickname
Once connected to the server, it is a good idea to register your nick, otherwise someone can impersonate you and steal your nick -- Forcing you to change your name again.
To register, one uses the following command:
/msg nickserv REGISTER foo foo@bar.com
This will associate your account with the e-mail foo@bar.com, as well as have your password be foo.
To identify yourself, you do a similar command:
/msg nickserv IDENTIFY foo
If someone has taken your registered nick, or you have a zombie in the channel (Where you drop connection but you still appear in the channel), there is a command to fix that.
Command | Description |
---|---|
/msg NickServ RECOVER [nick] [personal password] |
RECOVER Kill another user who has taken your nick (leave out the brackets [])
|
/msg NickServ GHOST [nick] [personal password] |
GHOST Kills the nickname (NOTE: Please use the Ghost command instead for now and leave out the brackets [])
|
NOTE: Stick with GHOST
for now, as RECOVER
is becoming more obsolete.
Seneca @ Freenode
Freenode is an IRC server/network. It is the largest free and open source software-focused IRC network.
Seneca's official IRC channels such as #seneca, #seneca-social, #seneca-oop344 and more are all at Freenode.
To connect to Freenode, one has to have an IRC client. If you are too lazy to download and install an IRC client, Freenode has an alternate way to connect to their network called freenode Web IRC. It is an IRC webapp client written in javascript. You will not need to install anything, just visit http://webchat.freenode.net/ and follow instructions. Everything will work in your browser as if it's magic.
How To Log IRC Conversations on mIRC
To log conversations on mIRC, you need to :
- Right click on the channel on the Switchbar (The bar with the channel names on it)
- Select Logging
- Select On
To view a logged conversation:
- Click on Tools
- Click on Log Files...
- Find you log file and double click it
How To Identify on IRC Automatically via mIRC (and Join #Seneca-OOP344 Channel)
If you are using mIRC to connect to IRC and wish to automatically identify your nickname after its been registered so you do not have to type it out every time you connect to Freenode do the following:
- . In the mIRC GUI, go to Tools > Script Editor
- . Click on the Remote tab
- . Add the following code to the page and click OK. (Remember to replace your PASSWORD with your password you set when you registered)
ON 1:NOTICE:*registered*identify*:?:{ /msg nickserv identify PASSWORD /join #seneca-oop344 }
How To Identify on IRC Automatically via XChat (linux) and Join #Seneca-OOP344 Channel)
If you are using linux, the best IRC client I can find is xchat, but identiy and join every time you log in became a hassle, here is the fix:
- Click on the xchat option on the menu bar > Server list (ctrl+s)
- Type in your nickname, registered ID and information on freenode
- In Networks, scroll down and select freenode
- On the right side, click on "edit"
- Under connecting, check the option "auto connect to this network at startup"
- Type your password in "Nickserv password"
- close the window and click "connect"
Some IRC short cuts for xchat
If you use xchat these short cuts will save you from having to type a lot.
- /ns identify "password" = /msg nickserv identify "password"
- /id "password" = /msg nickserv identify "password"
- /j "channel name" = /join "channel name"
- /cs = /msg chanserv
Hiding or Cloaking your IP Address
One of the ways is to simply send an email to support@freenode.net with a request to hide your IP Address. Make sure to provide your registered nickname on the freenode IRC server. Your will get a reply in couple of days, so be patient. Another way, is to join #freenode chat and try to contact a chat moderator there.
Useful Links
Online C++ tutorials
FAQs (Really great site)
C++ tutorial site1
C++ tutorial site2
C++ tutorial site3
C/C++ tutorial site
Linked List Explained
Linked List
If you don't really understand how linked lists work or why we should even use them then this page is made for you!
Another Linked List Tutorial
This is another tutorial for linked lists that will walk you through how to program one.
Practice Questions/Solutions
- q1 A linked list question - q1sol the solution
- q2 A binary file question - q2sol the solution
- walk1 a walkthrough with templates - walk1sol the solution
C++ Casts Explained By Fardad 14/04/2011
For those that did not attend Thursday's class the week before the exam, Fardad explained how to use C++ casting
that can also be found in OOP244's notes by C++ Wizard Chris Szalwinski.
[https://cs.senecac.on.ca/~oop244/pages/content/ansis.html Chris Szalwinski's OOP244 Notes
OS Key-Codes
Mac OS X
- #define UP_KEY 259
- #define DOWN_KEY 258
- #define LEFT_KEY 260
- #define RIGHT_KEY 261
- #define PGUP_KEY 6 /* Control + f */
- #define PGDN_KEY 2 /* Control + b */
- #define ENTER_KEY 10
- #define TAB_KEY 9
- #define BACKSPACE_KEY 127
- #define DEL_KEY 330 /* FN + Delete */
- #define HOME_KEY 1 /* Control + a */
- #define END_KEY 5 /* Control + e */
- #define ESCAPE_KEY 27
- #define INSERT_KEY 16 /* Control + p */
- #define SPACE_KEY 32
FN + ALT + Function Keys with Mac Special Function Key Setup
ALT + Function Keys as Standard Function Keys Setup
- #define F1_KEY 270
- #define F2_KEY 271
- #define F3_KEY 272
- #define F4_KEY 273
- #define F5_KEY 274
- #define F6_KEY 275
- #define F7_KEY 276
- #define F8_KEY 277
- #define F9_KEY 278
- #define F10_KEY 279
- #define F11_KEY 280
- #define F12_KEY 281