#include <iostream>
#include <string>
using namespace std;
struct car{
string name;
string color;
int maxSpeed;
int model;
};
int main(){
car c1 = {"BMW", "Red", 250, 2022};
car c2 = c1; //assigning struct c1 to struct c2
}
Code Example |
---|
Cpp :: hi cpp |
Cpp :: qt qmessagebox |
Cpp :: prints all the keys and values in a map c++ |
Cpp :: c++ nodiscard |
Cpp :: regex for phone number c++ |
Cpp :: extern shared memory |
Cpp :: reverse an array using pointers in c++ |
Cpp :: HOW TO TURN LINK TO BUTTON IN MVC |
Cpp :: capacity() in c++ |
Cpp :: qstring insert character |
Cpp :: note++ |
Cpp :: c++ std::fmin |
Cpp :: Vector2 c++ |
Cpp :: cpp float to int |
Cpp :: how to make crypto |
Cpp :: declare dynamic array c++ |
Cpp :: OPA in expanse |
Cpp :: structure and function c++ |
Cpp :: print in c++ |
Cpp :: sum of vector elements c++ |
Cpp :: how to read a comma delimited file into an array c++ |
Cpp :: vector to string c++ |
Cpp :: c++ open all files in directory |
Cpp :: reverse string c++ |
Cpp :: iterate over map c++17 |
Cpp :: how to check if a number is prime c++ |
Cpp :: c++ fizzbuzz |
Cpp :: c++ get environment variable |
Cpp :: convert string toupper and tolower in cpp |
Cpp :: c++ load file as vector |