C++ is a general-purpose programming language created by Bjarne Stroustrup as an extension of the C programming language, or "C with Classes".
Companies and DAOs like Solana Labs, Findora Foundation, Fuel Labs, Status, Zama, Fluence Labs, WalletConnect, Ethereum Foundation, Unruly Technologies and Decenter use C++ to work on Findora, Sway, Status, Zama, WalletConnect, Fluence, Spacemesh, DeFi Saver, Avalanche and Internet Computer.
Conquer the basics of C++ here and go pro once you get the hang of it. Average salaries for C++ developers are approximately $85k-115k/yr.
Variables are declared like this:
int port = 8333;
You can create one and assign a value later:
int port;
port = 8333;
To make a constant variable whose value cannot change:
const int port = 8333;
There are several variable types:
int, float, double, char, bool
Functions are declared like this:
void hello() {
cout << "Hello World"; // print a string to output
}
Functions are declared like this:
// `void` means the function does not return anything
void hello() {
cout << "Hello World"; // print a string to output
}
You can use them like this:
int add(int a, int b) {
return (a + b);
}
cout << "The sum of 1 + 2 = " << add(1, 2);
You can create more complex data types:
class Blockchain {
public:
string name;
int port;
}
// create an object
Blockchain bitcoin;
// assign values to it
bitcoin.name = "Bitcoin";
bitcoin.port = 8333;
Company | Using | Activity | Looking For | |
---|---|---|---|---|
Company | Using | Activity | Looking For | |
C++, Azure, GCP, AWS, … | apply | |||
C++, Rust, Docker, … | apply | |||
C++, Rust, Solidity, … | apply | |||
C++, Rust, C, Go, Nim, … | apply | |||
C++, Rust, C, Scala, … | apply | |||
C++, Rust, Tokio | apply | |||
JS, C++, Rust, … | apply | |||
C++, Rust, C, Arkworks | apply | |||
C++, Rust, Go | apply | |||
C++, Solidity, Rust, C, … | apply |