Mar 29, 2021 at 12:56pm Mar 29, 2021 at 12:56pm UTC
What do you mean 'compiles nothing'? Does it generate a compile error (compiles OK with VS2019)? Unless there is a stack error, there is no output from the program when it is run.
Mar 29, 2021 at 1:08pm Mar 29, 2021 at 1:08pm UTC
no error just nothing it shows execution time and press any key to continue
i added this:
cout<<A<<" "<<B<<" "<<C<<endl;
string z;
getline(cin,z);
before return 0; and it worked
Last edited on Mar 29, 2021 at 1:25pm Mar 29, 2021 at 1:25pm UTC
Mar 29, 2021 at 1:20pm Mar 29, 2021 at 1:20pm UTC
From the code, that is what is expected. What output do you want?
If you want to see the values of A B C then you need to display them with a cout statement.
Mar 29, 2021 at 1:27pm Mar 29, 2021 at 1:27pm UTC
okay i figured it out, thanks!