Lesson 2: Soft debugging

[spoiler title=”Lesson Video”]
Direct Download of Video (For mobile / offline viewing)(right click > save target as)


[/spoiler]

[spoiler title=”Lesson Source Code”]

#include <iostream>
#include <string>
 
using namespace std;
 
 
int main(){
  int userValue = 0;
  cout < < "Enter a value for userValue: ";
  cin >> userValue;
 
  cout < < "userValue = " << userValue << endl;
 
 
 
  system("PAUSE");
  return 0;
}

[/spoiler]

Camelback Notation
Camelback Notation is a naming scheme in which you use a lowercase word, and then capitalize every word thereafter. Some examples of phrases in camelback would be:

  • costOfItems
  • itemQuantity
  • purchaseOrders
  • customerFirstName
  • customerLastName
  • currentStreetAddress