New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

C++ Syntax sheet

by: Joshua Notetaker

C++ Syntax sheet CSCI 1200

Joshua Notetaker
GPA 3.75
View Full Document for 0 Karma

View Full Document


Unlock These Notes for FREE

Enter your email below and we will instantly email you these Notes for Data Structures

(Limited time offer)

Unlock Notes

Already have a StudySoup account? Login here

Unlock FREE Class Notes

Enter your email below to receive Data Structures notes

Everyone needs better class notes. Enter your email and we will send you notes for this class for free.

Unlock FREE notes

About this Document

This is a start of a list of C++ Syntax items. I will continue to update this document as the semester progresses
Data Structures
No professor available
Class Notes
data structures




Popular in Data Structures

Popular in ComputerScienence

This 2 page Class Notes was uploaded by Joshua Notetaker on Tuesday February 2, 2016. The Class Notes belongs to CSCI 1200 at Rensselaer Polytechnic Institute taught by a professor in Fall 2015. Since its upload, it has received 13 views. For similar materials see Data Structures in ComputerScienence at Rensselaer Polytechnic Institute.


Reviews for C++ Syntax sheet


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 02/02/16
Lecture 1 C++ syntax introduced (see syntax sheet):  #include  // (comments)  int main()  variable naming  C-style arrays  if – else statements  function creation  for loops  while loops  std::string Programming concepts  Make variable names useful  C++ is a compiled language, which means it runs faster, but it is pickier about it’s syntax  In thinking about efficiency, pass certain variables by reference rather than by value. o To pass by reference, proceed the name with & o This means the program doesn’t have to copy everything over to the function, just the memory address, where the variable is located o This is especially useful for large variables like vectors and strings o You can then have the function change the variable, where it cannot when you pass by value  Functions are useful to break up code and make it easier to read Lecture 2 C++ syntax introduced (see syntax sheet):  std::vector Programming concepts  vectors have several useful functions o push_back puts a new element at the end of the array o size gives you the number of elements in the array o items can be accessed by indexing  vectors are useful in that they can dynamically allocate memory to change its size and capacity  also have a sort function which allows you to sort vectors, either alphabetically or numerically


Buy Material

Are you sure you want to buy this material for

0 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Amaris Trozzo George Washington University

"I made $350 in just two days after posting my first study guide."

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."


"Their 'Elite Notetakers' are making over $1,200/month in sales by creating high quality content that helps their classmates in a time of need."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.