#include <iostream>
#using namespace std;

int main(){
	cout << "Hello world" << endl;
	return 0;
}
#include <stdio.h>

int main(){
	printf("Hello world\\n");
	return 0;
}

Input in C++

#include <iostream>
using namespace std;

int main(){
	int value;
	cout << "Enter an integer" << endl;
	cin >> value:
	cout << "the integer is: " << value << end;
	return 0;
}
#include <stdio.h>

int main(){
	int value;
	printf("Enter an integer\\n");
	scanf("%d", &value);
	printf("The integer is: %d\\n", value);
	return 0;
}

Data types in C++

Strings

#include <iostream>
#strings <string>
using namespace std;

int main(){
	string CourseDept, CourseNum, CourseCode;
	cout << "Enter course department and code:" << endl;
	cin >> CourseDept >> CourseName;
	
	CourseCode = CourseDept + CourseNum;
	if (CourseCode == "ECE244"){
		cout << "That's us!" << endl;
	}
}

Expressions and Statements

Arithmetic x + y, x >= y
Logical `A
Control Statements - if and if/else conditions

Functions