C#

C++ read memory faild

I have 2 classes:
class b_class
{
public:
int time_viewed;
int parent_course;

b_class()=default;

b_class(int parent_course):time_viewed(0), parent_course(parent_course){
}
};

and:
class b_course
{
public:

int co…

How to scan a string from a structure?

i’m getting an error each time i try this help i’m new to programming :
#include <stdio.h>
#include <stdlib.h>
typedef struct {
char jour;
char mois;
char annee;
}date;

typedef struct {
char reference;
char nom;
char nom_…