C++ cout funktioniert nicht?
https://i.imgur.com/DP2mOFX.png
Warum funktioniert dieser Code nicht?
#include "pch.h"
#include <iostream>
using namespace std;
int main()
{
struct hello
{
std::string one;
std::string two;
int three;
};
hello newhello;
newhello.one = "Hello";
newhello.two = "World";
newhello.three = 1;
std::cout<<newhello.three + newhello.one <<endl;
}
Computer,
programmieren,
Cplusplus,
Informatik