Horje
c++ 20 struct initialization Code Example
c++ 20 struct initialization
#include <iostream>
#include <filesystem>

struct hello_world {
    const char* hello;
    const char* world;
};

int main () 
{
    hello_world hw = {
        .hello = "hello, ",
        .world = "world!"
    };

    std::cout << hw.hello << hw.world << std::endl;
    return 0;
}




Cpp

Related
insert vector to end of vector c++ Code Example insert vector to end of vector c++ Code Example
how to return 2d array from function c++ Code Example how to return 2d array from function c++ Code Example
std::queue Code Example std::queue Code Example
Modulo Exponentiaon,Iteratve Modulo Exponentiation Code Example Modulo Exponentiaon,Iteratve Modulo Exponentiation Code Example
binary exponentiation Code Example binary exponentiation Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9